Index: branches/salvatoreingala/Gadgets/ui/resources/jquery.formBuilder.css |
— | — | @@ -10,6 +10,8 @@ |
11 | 11 | margin-right: 2%; |
12 | 12 | width: 45%; |
13 | 13 | vertical-align: middle; |
| 14 | + /* IE7 */ |
| 15 | + *width: 42%; |
14 | 16 | } |
15 | 17 | |
16 | 18 | .formbuilder label.error { |
— | — | @@ -30,6 +32,9 @@ |
31 | 33 | vertical-align: middle; |
32 | 34 | display: inline-block; |
33 | 35 | width: 50%; |
| 36 | + /* IE7 */ |
| 37 | + zoom: 1; |
| 38 | + *display: inline; |
34 | 39 | } |
35 | 40 | |
36 | 41 | .formBuilder-slider-tooltip { |
Index: branches/salvatoreingala/Gadgets/ui/resources/ext.gadgets.preferences.js |
— | — | @@ -43,7 +43,19 @@ |
44 | 44 | styleSheet.ownerNode : //not-IE or IE >= 9 |
45 | 45 | styleSheet.owningElement; //IE < 9 |
46 | 46 | owner.parentNode.removeChild( owner ); |
47 | | - } |
| 47 | + } |
| 48 | + |
| 49 | + //Function to set/remove "wait" cursor for all elements |
| 50 | + var toggleWaitCursor = ( function() { |
| 51 | + var waitCSS = null; |
| 52 | + return function() { |
| 53 | + if ( waitCSS === null ) { |
| 54 | + waitCSS = mw.util.addCSS( '* { cursor: wait !important; }' ); |
| 55 | + } else { |
| 56 | + waitCSS.disabled = !waitCSS.disabled; |
| 57 | + } |
| 58 | + }; |
| 59 | + } )(); |
48 | 60 | |
49 | 61 | //Shows a message in the bottom of the dialog, with fading |
50 | 62 | function showMsg( msg ) { |
— | — | @@ -63,13 +75,13 @@ |
64 | 76 | //disable all dialog buttons |
65 | 77 | $( '#mw-gadgets-prefsDialog-close, #mw-gadgets-prefsDialog-save' ).button( 'disable' ); |
66 | 78 | |
67 | | - //Set cursor to "wait" for all elements; save the stylesheet so it can be removed later |
68 | | - var waitCSS = mw.util.addCSS( '* { cursor: wait !important; }' ); |
| 79 | + //Set "wait" cursor |
| 80 | + toggleWaitCursor(); |
69 | 81 | |
70 | 82 | //just to avoid code duplication |
71 | 83 | function error() { |
72 | 84 | //Remove "wait" cursor |
73 | | - removeStylesheet( waitCSS ); |
| 85 | + toggleWaitCursor(); |
74 | 86 | |
75 | 87 | //Warn the user |
76 | 88 | showMsg( mw.msg( 'gadgets-save-failed' ) ); |
— | — | @@ -92,7 +104,7 @@ |
93 | 105 | success: function( response ) { |
94 | 106 | if ( typeof response.error == 'undefined' ) { |
95 | 107 | //Remove "wait" cursor |
96 | | - removeStylesheet( waitCSS ); |
| 108 | + toggleWaitCursor(); |
97 | 109 | |
98 | 110 | //Notify success to user |
99 | 111 | showMsg( mw.msg( 'gadgets-save-success' ) ); |
— | — | @@ -189,7 +201,10 @@ |
190 | 202 | create: function() { |
191 | 203 | //Remove styles to dialog buttons |
192 | 204 | $( this ).dialog( 'widget' ).find( '.ui-button' ) |
193 | | - .removeClass().unbind( 'mouseover' ).unbind( 'mousedown' ); |
| 205 | + .removeClass().addClass( 'ui-button-text-only' ) |
| 206 | + .unbind( 'mouseover' ) |
| 207 | + .unbind( 'mousedown' ) |
| 208 | + .unbind( 'focus' ); |
194 | 209 | }, |
195 | 210 | close: function() { |
196 | 211 | $( this ).remove(); |