r114974 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114973‎ | r114974 | r114975 >
Date:19:30, 19 April 2012
Author:foxtrott
Status:new
Tags:
Comment:

fix bug 34361 (Timepicker: The second click on "clock" button.)
Modified paths:
  • /trunk/extensions/SemanticFormsInputs/libs/timepicker.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticFormsInputs/libs/timepicker.js
@@ -57,7 +57,12 @@
5858 } else {
5959
6060 button.click( function(){
61 - jQuery( '#' + inputID + '_tree>ul' ).fadeToggle();
 61+ if ( jQuery( '#' + inputID + '_tree>ul' ).is(':visible') ) {
 62+ inputShow.blur();
 63+ } else {
 64+ inputShow.focus();
 65+ }
 66+
6267 } );
6368
6469 }