Index: trunk/extensions/LiquidThreads/lqt.js |
— | — | @@ -52,10 +52,12 @@ |
53 | 53 | |
54 | 54 | 'injectEditForm' : function(query, container, preload) { |
55 | 55 | var url = wgServer+wgScript+'?lqt_inline=1&title='+encodeURIComponent(wgPageName)+ |
56 | | - query |
| 56 | + query; |
57 | 57 | |
58 | 58 | liquidThreads.cancelEdit( container ); |
59 | 59 | |
| 60 | + var isIE7 = $j.browser.msie && $j.browser.version.substr(0,1) == '7'; |
| 61 | + |
60 | 62 | var loadSpinner = $j('<div class="mw-ajax-loader"/>'); |
61 | 63 | $j(container).before( loadSpinner ); |
62 | 64 | |
— | — | @@ -86,7 +88,11 @@ |
87 | 89 | $j("textarea", container)[0].value = preload; |
88 | 90 | } |
89 | 91 | |
90 | | - $j(container).slideDown( 'slow', finishShow ); |
| 92 | + if ( isIE7 ) { |
| 93 | + setTimeout( finishShow, 500 ); |
| 94 | + } else { |
| 95 | + $j(container).slideDown( 'slow', finishShow ); |
| 96 | + } |
91 | 97 | |
92 | 98 | var cancelButton = $j(container).find('#mw-editform-cancel'); |
93 | 99 | cancelButton.click( liquidThreads.cancelEdit ); |
— | — | @@ -113,8 +119,16 @@ |
114 | 120 | |
115 | 121 | $j.getScript( stylepath+'/common/edit.js', |
116 | 122 | function() { |
117 | | - $j(container).load(wgServer+wgScript, 'title='+encodeURIComponent(wgPageName)+ |
| 123 | + if ( isIE7 ) { |
| 124 | + $j(container).empty().show(); |
| 125 | + $j(container).load(wgServer+wgScript, |
| 126 | + 'title='+encodeURIComponent(wgPageName)+ |
118 | 127 | query+'&lqt_inline=1', finishSetup ); |
| 128 | + } else { |
| 129 | + $j(container).load(wgServer+wgScript, |
| 130 | + 'title='+encodeURIComponent(wgPageName)+ |
| 131 | + query+'&lqt_inline=1', finishSetup ); |
| 132 | + } |
119 | 133 | } ); |
120 | 134 | |
121 | 135 | }, |