Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…on> tags as well
  • Loading branch information...
commit 9465df6fb4c2f4e3c7485a93793d4e5add58d0bf 1 parent ddf4791
@chillu chillu authored
View
2  admin/javascript/LeftAndMain.EditForm.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
View
2  admin/javascript/ModelAdmin.js
@@ -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
2  javascript/HtmlEditorField.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.