diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2012-12-07 15:16:39 -0500 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2012-12-07 15:16:39 -0500 |
commit | b449d81653388eb0221442d5e6997fb1b46147a0 (patch) | |
tree | 02ff76fd9b5d675b4e9523933ed3ffc76d63ff49 | |
parent | 7318a3dabf8c1c1e431590af767e07a3bb418636 (diff) | |
download | jQuery-Timepicker-Addon-b449d81653388eb0221442d5e6997fb1b46147a0.zip jQuery-Timepicker-Addon-b449d81653388eb0221442d5e6997fb1b46147a0.tar.gz jQuery-Timepicker-Addon-b449d81653388eb0221442d5e6997fb1b46147a0.tar.bz2 |
Fix spinner event in example
-rw-r--r-- | index.html | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -663,13 +663,15 @@ $('#slider_example_4').datetimepicker({ max: max, step: step, change: function(e,ui){ // key events - tp_inst._onTimeChange(); + // don't call if api was used and not key press + if(e.originalEvent !== undefined) + tp_inst._onTimeChange(); tp_inst._onSelectHandler(); }, spin: function(e,ui){ // spin events tp_inst.control.value(tp_inst, obj, unit, ui.value); tp_inst._onTimeChange(); - tp_inst._onSelectHandler(); + //tp_inst._onSelectHandler(); } }); return obj; |