aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/common.js
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2016-02-02 14:48:00 +0800
committeryiminghe <yiminghe@gmail.com>2016-02-02 14:48:00 +0800
commit0afde9e82d2042249eff1e5c8dcbc38469e32884 (patch)
treed2fdf9bc122a8791b9775e746cc005c5e926dd78 /examples/common.js
parent51da635dcab3c92193dd35ba0667b317d14a3e97 (diff)
downloadtime-picker-0afde9e82d2042249eff1e5c8dcbc38469e32884.tar.gz
time-picker-0afde9e82d2042249eff1e5c8dcbc38469e32884.tar.zst
time-picker-0afde9e82d2042249eff1e5c8dcbc38469e32884.zip
Updates
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);