Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.special.js |
— | — | @@ -178,17 +178,8 @@ |
179 | 179 | } |
180 | 180 | |
181 | 181 | // }}} |
182 | | - // {{{ toggleToolbox |
183 | 182 | |
184 | | - // Display/hide the toolbox |
185 | | - $.articleFeedbackv5special.toggleToolbox = function( container ) { |
186 | | - var id = $.articleFeedbackv5special.stripID(container, 'articleFeedbackv5-feedback-tools-'); |
187 | | - $( '#articleFeedbackv5-feedback-tools-list-' + id ).slideToggle( 300 ); |
188 | | - } |
189 | | - |
190 | 183 | // }}} |
191 | | - |
192 | | - // }}} |
193 | 184 | // {{{ Process methods |
194 | 185 | |
195 | 186 | // {{{ flagFeedback |
— | — | @@ -273,8 +264,15 @@ |
274 | 265 | // set effects on toolboxes |
275 | 266 | $( '.articleFeedbackv5-feedback-tools > ul' ).hide(); |
276 | 267 | $( '.articleFeedbackv5-feedback-tools' ).hover( |
277 | | - function( eventObj ) { $.articleFeedbackv5special.toggleToolbox( this ); }, |
278 | | - function( eventObj ) { $.articleFeedbackv5special.toggleToolbox( this ); } |
| 268 | + function( eventObj ) { |
| 269 | + //alert(this); |
| 270 | + var id = $.articleFeedbackv5special.stripID( this, 'articleFeedbackv5-feedback-tools-' ); |
| 271 | + $( '#articleFeedbackv5-feedback-tools-list-' + id ).slideDown( 200 ); |
| 272 | + }, |
| 273 | + function( eventObj ) { |
| 274 | + var id = $.articleFeedbackv5special.stripID( this, 'articleFeedbackv5-feedback-tools-' ); |
| 275 | + $( '#articleFeedbackv5-feedback-tools-list-' + id ).slideUp( 200 ); |
| 276 | + } |
279 | 277 | ); |
280 | 278 | } else { |
281 | 279 | $( '#articleFeedbackv5-show-feedback' ).text( mw.msg( 'articlefeedbackv5-error-loading-feedback' ) ); |