Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js |
— | — | @@ -2149,7 +2149,6 @@ |
2150 | 2150 | |
2151 | 2151 | // Add the help tooltip |
2152 | 2152 | $wrapper.find( '.articleFeedbackv5-tooltip-link' ) |
2153 | | - .attr( 'href', mw.msg( 'articlefeedbackv5-help-tooltip-linkurl' ) ) |
2154 | 2153 | .click( function ( e ) { |
2155 | 2154 | e.preventDefault(); |
2156 | 2155 | window.open( $( e.target ).attr( 'href' ) ); |
— | — | @@ -2238,6 +2237,10 @@ |
2239 | 2238 | $.articleFeedbackv5.$dialog.dialog( 'option', 'title', bucket.getTitle() ); |
2240 | 2239 | } |
2241 | 2240 | |
| 2241 | + // Set the tooltip link |
| 2242 | + $.articleFeedbackv5.find( '.articleFeedbackv5-tooltip-link' ) |
| 2243 | + .attr( 'href', mw.msg( 'articlefeedbackv5-help-tooltip-linkurl' )); |
| 2244 | + |
2242 | 2245 | // Do anything special the bucket requires |
2243 | 2246 | if ( 'afterBuild' in bucket ) { |
2244 | 2247 | bucket.afterBuild(); |
— | — | @@ -2375,6 +2378,10 @@ |
2376 | 2379 | $.articleFeedbackv5.find( '.articleFeedbackv5-title' ).html( cta.getTitle() ); |
2377 | 2380 | } |
2378 | 2381 | |
| 2382 | + // Set the tooltip link |
| 2383 | + $.articleFeedbackv5.find( '.articleFeedbackv5-tooltip-link' ) |
| 2384 | + .attr( 'href', mw.config.get( 'wgArticleFeedbackv5LearnToEdit' ) ); |
| 2385 | + |
2379 | 2386 | // Add a close button to clear out the panel |
2380 | 2387 | var $close = $( '<a class="articleFeedbackv5-clear-trigger">x</a>' ) |
2381 | 2388 | .click( function (e) { |