Permalink
Browse files

MINOR Less specific button selectors in CMS JavaScript to cover <butt…

…on> tags as well
  • Loading branch information...
1 parent ddf4791 commit 9465df6fb4c2f4e3c7485a93793d4e5add58d0bf @chillu chillu committed Feb 23, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 admin/javascript/LeftAndMain.EditForm.js
  2. +1 −1 admin/javascript/ModelAdmin.js
  3. +1 −1 javascript/HtmlEditorField.js
@@ -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
@@ -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?'))) {
@@ -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;

0 comments on commit 9465df6

Please sign in to comment.