| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
ve.ui.MWParameterCheckboxInputWidget = function VeUiMWParameterCheckboxInputWidget() { |
| 17 |
|
| 18 |
ve.ui.MWParameterCheckboxInputWidget.super.apply( this, arguments ); |
| 19 |
}; |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
OO.inheritClass( ve.ui.MWParameterCheckboxInputWidget, OO.ui.CheckboxInputWidget ); |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
ve.ui.MWParameterCheckboxInputWidget.prototype.getValue = function () { |
| 31 |
return this.isSelected() ? '1' : '0'; |
| 32 |
}; |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
ve.ui.MWParameterCheckboxInputWidget.prototype.setValue = function ( value ) { |
| 38 |
return this.setSelected( value === '1' ); |
| 39 |
}; |