Browse files

BUGFIX Using faster entwine selectors (class/attr rather than CSS3 ps…

…eudo selectors)
  • Loading branch information...
1 parent e203042 commit 2170835aeb580d8489c96e070ad037410f2ddb57 @chillu chillu committed Dec 12, 2011
View
2 admin/javascript/LeftAndMain.EditForm.js
@@ -175,7 +175,7 @@
* We need this onclick overloading because we can't get to the
* clicked button from a form.onsubmit event.
*/
- $('.cms-edit-form .Actions :submit').entwine({
+ $('.cms-edit-form .Actions input, .cms-edit-form .Actions button').entwine({
/**
* Function: onclick
View
2 admin/javascript/LeftAndMain.Tree.js
@@ -303,7 +303,7 @@
}
});
- $('.cms-tree-view-modes :input[name=view-mode]').entwine({
+ $('.cms-tree-view-modes input.view-mode').entwine({
onmatch: function() {
// set active by default
this.trigger('click');
View
2 admin/javascript/LeftAndMain.js
@@ -180,7 +180,7 @@
* Also sets the clicked button on a form submission, making it available through
* a new 'clickedButton' property on the form DOM element.
*/
- $('.cms-container :submit, .cms-container button, .cms-container :reset').entwine({
+ $('.cms-container input[type="submit"], .cms-container button, .cms-container input[type="reset"]').entwine({
onmatch: function() {
// TODO Adding classes in onmatch confuses entwine
var self = this;

0 comments on commit 2170835

Please sign in to comment.