diff options
author | Trent Richardson <trentrichardson@users.noreply.github.com> | 2014-08-21 11:33:46 -0400 |
---|---|---|
committer | Trent Richardson <trentrichardson@users.noreply.github.com> | 2014-08-21 11:33:46 -0400 |
commit | 62efd45915cc6fae0a7d5042359eb8b15acb2ee2 (patch) | |
tree | d9ebb7ce93045f0b7394a0aecd47fceac008db5c /dist/jquery-ui-timepicker-addon.js | |
parent | 4996a225d27ad7e14c707d6472751e84bf2eeeb9 (diff) | |
parent | 88f24348a0828cf187c250dce4794e3db8b89e95 (diff) | |
download | jQuery-Timepicker-Addon-62efd45915cc6fae0a7d5042359eb8b15acb2ee2.zip jQuery-Timepicker-Addon-62efd45915cc6fae0a7d5042359eb8b15acb2ee2.tar.gz jQuery-Timepicker-Addon-62efd45915cc6fae0a7d5042359eb8b15acb2ee2.tar.bz2 |
Merge pull request #751 from brian-rowe/dev
Fixes #639 - MinDate Limits Minutes/Seconds...
Diffstat (limited to 'dist/jquery-ui-timepicker-addon.js')
-rw-r--r-- | dist/jquery-ui-timepicker-addon.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dist/jquery-ui-timepicker-addon.js b/dist/jquery-ui-timepicker-addon.js index 16ced27..381e43d 100644 --- a/dist/jquery-ui-timepicker-addon.js +++ b/dist/jquery-ui-timepicker-addon.js @@ -1065,7 +1065,10 @@ o[opts] = val; } else { o = opts; } - return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step')); + /* + * Check for existence of properties when determining which value to use instead of just truthiness to avoid o.min evaulating to false when its value is 0 + */ + return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), ('min' in o) ? o.min : $t.data('min'), ('max' in o) ? o.max : $t.data('max'), ('step' in o) ? o.step : $t.data('step')); }, value: function (tp_inst, obj, unit, val) { var $t = obj.children('select'); |