Browse files

fixed timepickr issue #35, thanks to koystinen! (http://code.google.c…

  • Loading branch information...
1 parent a14efb3 commit c915992d9ebe2db79d36b49287cb4ae6f162b785 haineault committed Mar 24, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 standalone/ui-timepickr/src/ui.timepickr.js
View
6 standalone/ui-timepickr/src/ui.timepickr.js
@@ -78,8 +78,10 @@ $.widget('ui.timepickr', {
_setVal: function(val) {
val = val || this._getVal();
- this.element.data('timepickr.initialValue', val);
- this.element.val(this._formatVal(val));
+ if (!(val.h==='' && val.m==='')) {
+ this.element.data('timepickr.initialValue', val);
+ this.element.val(this._formatVal(val));
+ }
if(this._dom.menu.is(':hidden')) {
this.element.trigger('change');
}

0 comments on commit c915992

Please sign in to comment.