| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
ve.ui.MWExtensionInspector = function VeUiMWExtensionInspector() { |
| 20 |
|
| 21 |
ve.ui.MWExtensionInspector.super.apply( this, arguments ); |
| 22 |
|
| 23 |
|
| 24 |
ve.ui.MWExtensionWindow.call( this ); |
| 25 |
}; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
OO.inheritClass( ve.ui.MWExtensionInspector, ve.ui.NodeInspector ); |
| 30 |
|
| 31 |
OO.mixinClass( ve.ui.MWExtensionInspector, ve.ui.MWExtensionWindow ); |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
ve.ui.MWExtensionInspector.prototype.initialize = function () { |
| 39 |
|
| 40 |
ve.ui.MWExtensionInspector.super.prototype.initialize.call( this ); |
| 41 |
|
| 42 |
|
| 43 |
ve.ui.MWExtensionWindow.prototype.initialize.call( this ); |
| 44 |
|
| 45 |
|
| 46 |
this.$element.addClass( 've-ui-mwExtensionInspector' ); |
| 47 |
this.form.$element.append( this.input.$element ); |
| 48 |
}; |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
ve.ui.MWExtensionInspector.prototype.getSetupProcess = function ( data ) { |
| 54 |
data = data || {}; |
| 55 |
|
| 56 |
const process = ve.ui.MWExtensionInspector.super.prototype.getSetupProcess.call( this, data ); |
| 57 |
|
| 58 |
return ve.ui.MWExtensionWindow.prototype.getSetupProcess.call( this, data, process ); |
| 59 |
}; |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
ve.ui.MWExtensionInspector.prototype.getReadyProcess = function ( data ) { |
| 65 |
data = data || {}; |
| 66 |
|
| 67 |
const process = ve.ui.MWExtensionInspector.super.prototype.getReadyProcess.call( this, data ); |
| 68 |
|
| 69 |
return ve.ui.MWExtensionWindow.prototype.getReadyProcess.call( this, data, process ).next( () => { |
| 70 |
|
| 71 |
this.input.focus(); |
| 72 |
} ); |
| 73 |
}; |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
ve.ui.MWExtensionInspector.prototype.getTeardownProcess = function ( data ) { |
| 79 |
data = data || {}; |
| 80 |
|
| 81 |
const process = ve.ui.MWExtensionInspector.super.prototype.getTeardownProcess.call( this, data ); |
| 82 |
|
| 83 |
return ve.ui.MWExtensionWindow.prototype.getTeardownProcess.call( this, data, process ); |
| 84 |
}; |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
ve.ui.MWExtensionInspector.prototype.getActionProcess = function ( action ) { |
| 90 |
|
| 91 |
const process = ve.ui.MWExtensionInspector.super.prototype.getActionProcess.call( this, action ); |
| 92 |
|
| 93 |
return ve.ui.MWExtensionWindow.prototype.getActionProcess.call( this, action, process ); |
| 94 |
}; |