mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Remove text for LeftAndMain.EditForm.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92663 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
371abfdd1d
commit
d03eb541ef
@ -11,8 +11,16 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @type String HTML text to show when the form has been deleted.
|
* @type String HTML text to show when the form has been deleted.
|
||||||
|
* @todo i18n
|
||||||
*/
|
*/
|
||||||
RemoveHtml: null,
|
RemoveHtml: 'Removed',
|
||||||
|
|
||||||
|
onmatch: function() {
|
||||||
|
// Don't bind any events here, as we dont replace the
|
||||||
|
// full <form> tag by any ajax updates they won't automatically reapply
|
||||||
|
|
||||||
|
_super();
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Suppress submission unless it is handled through ajaxSubmit()
|
* Suppress submission unless it is handled through ajaxSubmit()
|
||||||
@ -103,10 +111,11 @@
|
|||||||
* Remove everying inside the <form> tag
|
* Remove everying inside the <form> tag
|
||||||
* with a custom HTML fragment. Useful e.g. for deleting a page in the CMS.
|
* with a custom HTML fragment. Useful e.g. for deleting a page in the CMS.
|
||||||
*
|
*
|
||||||
* @param {String} removeText
|
* @param {String} removeText Short note why the form has been removed, displayed in <p> tags.
|
||||||
|
* Falls back to the default RemoveText() option (Optional)
|
||||||
*/
|
*/
|
||||||
remove: function(removeHTML) {
|
remove: function(removeText) {
|
||||||
|
this.html('<p>' + removeText + '</p>');
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user