Skip to content

Commit

Permalink
Fixes an error that occurs on some showAnim effects like 'blind'
Browse files Browse the repository at this point in the history
  • Loading branch information
fgelinas committed Oct 27, 2012
1 parent d425f9e commit 289a698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.html
Expand Up @@ -128,7 +128,9 @@ <h2>What is this?</h2>
<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>

Expand Down
2 changes: 1 addition & 1 deletion jquery.ui.timepicker.js
Expand Up @@ -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(); }
Expand Down

0 comments on commit 289a698

Please sign in to comment.