Permalink
Browse files

Fixes an error that occurs on some showAnim effects like 'blind'

  • Loading branch information...
1 parent d425f9e commit 289a6989bf8c90dd5e1eeff640ed6e42c550de15 @fgelinas committed Oct 27, 2012
Showing with 4 additions and 2 deletions.
  1. +3 −1 index.html
  2. +1 −1 jquery.ui.timepicker.js
View
@@ -128,7 +128,9 @@
<input type="text" style="width: 70px;" id="timepicker.[1]" value="" />
<script type="text/javascript">
$(document).ready(function() {
- $('#timepicker\\.\\[1\\]').timepicker();
+ $('#timepicker\\.\\[1\\]').timepicker( {
+ showAnim: 'blind'
+ } );
});
</script>
View
@@ -408,7 +408,7 @@
inst.tpDiv.show(showAnim, $.timepicker._get(inst, 'showOptions'), duration, postProcess);
}
else {
- inst.tpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);
+ inst.tpDiv.show((showAnim ? duration : null), postProcess);
}
if (!showAnim || !duration) { postProcess(); }
if (inst.input.is(':visible') && !inst.input.is(':disabled')) { inst.input.focus(); }

0 comments on commit 289a698

Please sign in to comment.