Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -61,11 +61,10 @@ |
62 | 62 | $j( '#contentSub' ).append( $j( '<span style="margin-right: 0.5em;"></span>' ).msg( 'mwe-upwiz-subhead-message' ) ); |
63 | 63 | // feedback request |
64 | 64 | if ( mw.UploadWizard.config['feedbackPage'] !== undefined && mw.UploadWizard.config['feedbackPage'] !== '' ) { |
65 | | - var feedback = new mw.Feedback( |
66 | | - _this.api, |
67 | | - new mw.Title( mw.UploadWizard.config['feedbackPage'] ), |
68 | | - 'mwe-upwiz-feedback-title' |
69 | | - ); |
| 65 | + var feedback = new mw.Feedback( { |
| 66 | + 'title': new mw.Title( mw.UploadWizard.config['feedbackPage'] ), |
| 67 | + 'dialogTitleMessageKey': 'mwe-upwiz-feedback-title' |
| 68 | + } ); |
70 | 69 | var feedbackLink = $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-feedback-prompt', |
71 | 70 | function() { |
72 | 71 | feedback.launch(); |
Index: trunk/extensions/VisualEditor/modules/sandbox/special.js |
— | — | @@ -3,19 +3,12 @@ |
4 | 4 | $(document).ready( setupSpecial ); |
5 | 5 | |
6 | 6 | function setupSpecial() { |
7 | | - |
8 | | - var api = new mw.Api( { |
9 | | - url: mw.config.get( 'wgServer' ) + mw.config.get( 'wgScriptPath' ) + '/api.php' |
| 7 | + |
| 8 | + var feedback = new mw.Feedback( { |
| 9 | + 'title': new mw.Title( 'Visual editor/Feedback' ), |
| 10 | + 'dialogTitleMessageKey': 'visualeditor-feedback-dialog-title' |
10 | 11 | } ); |
11 | 12 | |
12 | | - var title = new mw.Title( 'Visual editor/Feedback' ); |
13 | | - |
14 | | - var feedback = new mw.Feedback( |
15 | | - api, |
16 | | - title, |
17 | | - 'visualeditor-feedback-dialog-title' |
18 | | - ); |
19 | | - |
20 | 13 | $feedbackLink = $( '<a></a>' ) |
21 | 14 | .attr( { 'href': '#' } ) |
22 | 15 | .text( mw.msg( 'visualeditor-feedback-prompt' ) ) |