| 1 |
'use strict'; |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
ve.ui.MWCitationAction = function VeUiMWCitationAction() { |
| 18 |
|
| 19 |
ve.ui.MWCitationAction.super.apply( this, arguments ); |
| 20 |
}; |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
OO.inheritClass( ve.ui.MWCitationAction, ve.ui.Action ); |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
ve.ui.MWCitationAction.static.name = 'mwcite'; |
| 29 |
|
| 30 |
ve.ui.MWCitationAction.static.methods = [ 'open' ]; |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
ve.ui.MWCitationAction.prototype.open = function ( windowData ) { |
| 42 |
windowData = Object.assign( { |
| 43 |
inDialog: this.surface.getInDialog() |
| 44 |
}, windowData ); |
| 45 |
|
| 46 |
this.surface.execute( 'window', 'open', 'cite', windowData ); |
| 47 |
return true; |
| 48 |
}; |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
ve.ui.actionFactory.register( ve.ui.MWCitationAction ); |