MINOR Less specific button selectors in CMS JavaScript to cover <button> tags as well

This commit is contained in:
Ingo Schommer 2012-02-23 18:35:04 +01:00
parent ddf4791708
commit 9465df6fb4
3 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@
* We need this onclick overloading because we can't get to the
* 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

View File

@ -175,7 +175,7 @@
*
* RHS panel Delete button
*/
$('.cms-edit-form input[name=action_doDelete]').entwine({
$('.cms-edit-form :submit[name=action_doDelete]').entwine({
// Function: onclick
onclick: function(e) {
if(!confirm(ss.i18n._t('ModelAdmin.REALLYDELETE', 'Really delete?'))) {

View File

@ -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) {
this.parents('form:first').removeLink();
return false;