mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Less specific button selectors in CMS JavaScript to cover <button> tags as well
This commit is contained in:
parent
ddf4791708
commit
9465df6fb4
@ -172,7 +172,7 @@
|
|||||||
* We need this onclick overloading because we can't get to the
|
* We need this onclick overloading because we can't get to the
|
||||||
* clicked button from a form.onsubmit event.
|
* clicked button from a form.onsubmit event.
|
||||||
*/
|
*/
|
||||||
$('.cms-edit-form .Actions input, .cms-edit-form .Actions button').entwine({
|
$('.cms-edit-form .Actions :button').entwine({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function: onclick
|
* Function: onclick
|
||||||
|
@ -175,7 +175,7 @@
|
|||||||
*
|
*
|
||||||
* RHS panel Delete button
|
* RHS panel Delete button
|
||||||
*/
|
*/
|
||||||
$('.cms-edit-form input[name=action_doDelete]').entwine({
|
$('.cms-edit-form :submit[name=action_doDelete]').entwine({
|
||||||
// Function: onclick
|
// Function: onclick
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
if(!confirm(ss.i18n._t('ModelAdmin.REALLYDELETE', 'Really delete?'))) {
|
if(!confirm(ss.i18n._t('ModelAdmin.REALLYDELETE', 'Really delete?'))) {
|
||||||
|
@ -577,7 +577,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('form.htmleditorfield-linkform input[name=action_remove]').entwine({
|
$('form.htmleditorfield-linkform :submit[name=action_remove]').entwine({
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
this.parents('form:first').removeLink();
|
this.parents('form:first').removeLink();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user