mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Merge "Drop unused "Restore parameter" messages and code"
This commit is contained in:
commit
3cb1b9ef25
|
@ -144,7 +144,6 @@
|
|||
"templatedata-modal-button-importParams",
|
||||
"templatedata-modal-button-map",
|
||||
"templatedata-modal-button-removemap",
|
||||
"templatedata-modal-button-restoreparam",
|
||||
"templatedata-modal-button-saveparam",
|
||||
"templatedata-modal-confirmcancel",
|
||||
"templatedata-modal-current-language",
|
||||
|
|
|
@ -70,7 +70,6 @@
|
|||
"templatedata-modal-button-map": "Edit maps",
|
||||
"templatedata-modal-button-importParams": "Import parameters",
|
||||
"templatedata-modal-button-removemap": "Remove map",
|
||||
"templatedata-modal-button-restoreparam": "Restore parameter",
|
||||
"templatedata-modal-button-saveparam": "Save",
|
||||
"templatedata-modal-confirmcancel": "Are you sure you want to discard your changes?",
|
||||
"templatedata-modal-current-language": "Current language: $1",
|
||||
|
|
|
@ -83,7 +83,6 @@
|
|||
"templatedata-modal-button-map": "{{technical}}\nLabel of the Edit maps button. See [[:mw:Extension:TemplateData#Maps object]].",
|
||||
"templatedata-modal-button-importParams": "Label of the import button",
|
||||
"templatedata-modal-button-removemap": "{{technical}}\n\nLabel of the remove map button. See [[:mw:Extension:TemplateData#Maps object]].",
|
||||
"templatedata-modal-button-restoreparam": "Label for the button to restore a previously deleted parameter in the edit dialog.",
|
||||
"templatedata-modal-button-saveparam": "Label for the button to save parameter details in the templatedata edit dialog.\n{{Identical|Save}}",
|
||||
"templatedata-modal-confirmcancel": "Prompt shown to the user when they attempt to cancel the templatedata edit dialog after making changes.",
|
||||
"templatedata-modal-current-language": "Label displaying the current language in the edit dialog. Parameters:\n* $1 - currently showing language\n{{Identical|Current language}}",
|
||||
|
|
|
@ -783,23 +783,6 @@ Model.prototype.deleteParam = function ( paramKey ) {
|
|||
this.emit( 'change' );
|
||||
};
|
||||
|
||||
/**
|
||||
* Restore parameter by unmarking it as deleted.
|
||||
*
|
||||
* @param {string} paramKey Parameter key
|
||||
* @fires add-param
|
||||
* @fires change
|
||||
*/
|
||||
Model.prototype.restoreParam = function ( paramKey ) {
|
||||
if ( this.params[ paramKey ] ) {
|
||||
this.params[ paramKey ].deleted = false;
|
||||
// Add back to paramOrder
|
||||
this.addKeyTemplateParamOrder( paramKey );
|
||||
this.emit( 'add-param', paramKey, this.params[ paramKey ] );
|
||||
this.emit( 'change' );
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Delete all data attached to a parameter
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue