Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX: Buttons in the cms that didnt have .ss-ui-button werent becom…

…ing buttons because we changed buttons to trigger on onadd, but the ss-ui-button class was being added dynamically
  • Loading branch information...
commit acee026875351122f6fc8fc686fd43e7bf52871e 1 parent 8ae4597
@hafriedlander hafriedlander authored chillu committed
Showing with 3 additions and 18 deletions.
  1. +3 −18 admin/javascript/LeftAndMain.js
View
21 admin/javascript/LeftAndMain.js
@@ -444,26 +444,11 @@ jQuery.noConflict();
}
});
- /**
- * Make all buttons "hoverable" with jQuery theming.
- * Also sets the clicked button on a form submission, making it available through
- * a new 'clickedButton' property on the form DOM element.
- */
- $('.cms input[type="submit"], .cms button, .cms input[type="reset"]').entwine({
- onmatch: function() {
- if(!this.hasClass('ss-ui-button')) this.addClass('ss-ui-button');
-
- this._super();
- },
- onunmatch: function() {
- this._super();
- }
- });
-
- $('.cms .ss-ui-button').entwine({
+ /** Make all buttons "hoverable" with jQuery theming. */
+ $('.cms input[type="submit"], .cms button, .cms input[type="reset"], .cms .ss-ui-button').entwine({
onadd: function() {
+ this.addClass('ss-ui-button');
if(!this.data('button')) this.button();
-
this._super();
},
onremove: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.