| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
ve.ui.MWMobileSaveDialog = function VeUiMwMobileSaveDialog() { |
| 21 |
|
| 22 |
ve.ui.MWMobileSaveDialog.super.apply( this, arguments ); |
| 23 |
|
| 24 |
|
| 25 |
this.$element.addClass( 've-ui-mwMobileSaveDialog' ); |
| 26 |
}; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
OO.inheritClass( ve.ui.MWMobileSaveDialog, ve.ui.MWSaveDialog ); |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
ve.ui.MWMobileSaveDialog.prototype.initialize = function () { |
| 38 |
|
| 39 |
ve.ui.MWMobileSaveDialog.super.prototype.initialize.call( this ); |
| 40 |
|
| 41 |
this.$reviewVisualDiff.addClass( 'content' ); |
| 42 |
this.previewPanel.$element.addClass( 'content' ); |
| 43 |
|
| 44 |
mw.loader.using( 'mobile.startup' ).then( ( req ) => { |
| 45 |
const licenseMsg = req( 'mobile.startup' ).license(); |
| 46 |
if ( licenseMsg ) { |
| 47 |
|
| 48 |
this.$license.html( licenseMsg ); |
| 49 |
} |
| 50 |
} ); |
| 51 |
}; |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
ve.ui.windowFactory.register( ve.ui.MWMobileSaveDialog ); |