aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/common.js')
-rw-r--r--examples/common.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/common.js b/examples/common.js
index a73dbc7..be1ccf2 100644
--- a/examples/common.js
+++ b/examples/common.js
@@ -27635,7 +27635,12 @@
27635 27635
27636 if (originalValue && value) { 27636 if (originalValue && value) {
27637 if (originalValue.getHourOfDay() !== value.getHourOfDay() || originalValue.getMinutes() !== value.getMinutes() || originalValue.getSeconds() !== value.getSeconds()) { 27637 if (originalValue.getHourOfDay() !== value.getHourOfDay() || originalValue.getMinutes() !== value.getMinutes() || originalValue.getSeconds() !== value.getSeconds()) {
27638 onChange(value); 27638 // keep other fields for rc-calendar
27639 var changedValue = originalValue.clone();
27640 changedValue.setHourOfDay(value.getHourOfDay());
27641 changedValue.setMinutes(value.getMinutes());
27642 changedValue.setSeconds(value.getSeconds());
27643 onChange(changedValue);
27639 } 27644 }
27640 } else if (originalValue !== value) { 27645 } else if (originalValue !== value) {
27641 onChange(value); 27646 onChange(value);