Permalink
Browse files

BUGFIX: add missing onunmatches

  • Loading branch information...
1 parent bbb08df commit 8d469b66c892111fbf4bff1c6c8c0efb6fcef46f @mateusz mateusz committed with halkyon May 13, 2012
@@ -59,7 +59,6 @@
onunmatch: function() {
this._super();
},
-
/**
* Function: onsubmit
*
@@ -60,7 +60,9 @@
this._super();
},
-
+ onunmatch: function() {
+ this._super();
+ },
/**
* Updates the select box state according to the current view mode.
*/
@@ -292,7 +294,9 @@
this.trigger('change');
this._super();
},
-
+ onunmatch: function() {
+ this._super();
+ },
/**
* Function: onchange
*
@@ -209,6 +209,9 @@
var tabs = this.find("ul:first").children('li');
if(tabs.length == 1) this.find('ul:first').hide();
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -105,7 +105,9 @@
this._super();
},
-
+ onunmatch: function() {
+ this._super();
+ },
updateItems: function() {
// Hide "edit page" commands unless the section is activated
var editPageItem = this.find('#Menu-CMSMain');
@@ -152,6 +154,9 @@
}
this._super();
},
+ onunmatch: function() {
+ this._super();
+ },
toggle: function() {
this[this.hasClass('opened') ? 'close' : 'open']();
},
@@ -62,7 +62,9 @@
this._super();
},
-
+ onunmatch: function() {
+ this._super();
+ },
/**
* @param {Boolean} TRUE to expand, FALSE to collapse.
* @param {Boolean} TRUE means that events won't be fired, which is useful for the component initialization phase.
@@ -138,4 +140,4 @@
}
});
});
-}(jQuery));
+}(jQuery));
@@ -16,7 +16,10 @@
//
// this._setupPinging();
// },
-
+ // onunmatch: function() {
+ // this._super();
+ // }
+
/**
* Function: _setupPinging
*
@@ -47,4 +50,4 @@
}
});
});
-}(jQuery));
+}(jQuery));
@@ -89,8 +89,10 @@
this._super();
},
-
- loadUrl: function(url) {
+ onunmatch: function() {
+ this._super();
+ },
+ loadUrl: function(url) {
this.find('iframe').attr('src', url);
},
@@ -201,6 +203,9 @@
onmatch: function() {
this.find('a').text('<');
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -219,6 +224,9 @@
onmatch: function() {
this.find('a').text('>');
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -256,6 +264,9 @@
this.find('.cms-preview-watermark').show();
this.find('.active .cms-preview-watermark').hide();
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -332,6 +332,9 @@
this.redraw();
this._super();
},
+ onunmatch: function() {
+ this._super();
+ },
onclick: function(e) {
this.redraw();
},
@@ -120,6 +120,9 @@ jQuery.noConflict();
this._super();
},
+ onunmatch: function() {
+ this._super();
+ },
redraw: function() {
// Move from inner to outer layouts. Some of the elements might not exist.
@@ -314,6 +317,9 @@ jQuery.noConflict();
if(!this.hasClass('ss-ui-button')) this.addClass('ss-ui-button');
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -322,6 +328,9 @@ jQuery.noConflict();
if(!this.data('button')) this.button();
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -401,6 +410,9 @@ jQuery.noConflict();
this._super();
this.setUUID(new Date().getTime());
},
+ onunmatch: function() {
+ this._super();
+ },
onclick: function() {
this._super();
@@ -437,6 +449,9 @@ jQuery.noConflict();
this.redraw();
this._super();
},
+ onunmatch: function() {
+ this._super();
+ },
redraw: function() {
// Remove whitespace to avoid gaps with inline elements
this.contents().filter(function() {
@@ -476,6 +491,9 @@ jQuery.noConflict();
// this.next('button').button('option', 'icons', {primary : 'ui-icon-calendar'});
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -506,8 +524,11 @@ jQuery.noConflict();
applyChosen(this);
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
- });
+ });
$(".cms-panel-layout").entwine({
redraw: function() {
@@ -573,6 +594,9 @@ jQuery.noConflict();
$(this.attr('href')).hide();
},
+ onunmatch: function() {
+ this._super();
+ },
onclick: function(e) {
$(this.attr('href')).toggle();
e.preventDefault();
@@ -11,6 +11,9 @@
this._super();
this.hide();
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -29,4 +32,4 @@
});
});
-}(jQuery));
+}(jQuery));
@@ -26,7 +26,10 @@
});
this._super();
+ },
+ onunmatch: function() {
+ this._super();
}
});
});
-})(jQuery);
+})(jQuery);
@@ -28,6 +28,9 @@
// TODO entwine can't seem to bind to iframe load events
$(this).bind('load', refreshAfterImport);
+ },
+ onunmatch: function() {
+ this._super();
}
});
});
@@ -46,6 +49,9 @@
this._super();
},
+ onunmatch: function() {
+ this._super();
+ },
/**
* Function: onclick
*/
@@ -75,4 +81,4 @@
});
});
-}(jQuery));
+}(jQuery));
@@ -13,7 +13,6 @@
onunmatch: function() {
this._super();
},
-
redraw: function() {
this.addClass('ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-panel ui-corner-bottom');
this.find('ul').addClass('ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all');
@@ -6,12 +6,14 @@
// Hide the "second step" part until we're actually uploading
this.find('.ss-uploadfield-editandorganize').hide();
},
+ onunmatch: function() {
+ this._super();
+ },
onfileuploadadd: function(e) {
this.find('.ss-uploadfield-editandorganize').show();
},
onfileuploadstart: function(e) {
this.find('.ss-uploadfield-editandorganize').show();
}
-
});
-}(jQuery));
+}(jQuery));
View
@@ -152,6 +152,9 @@
this._super();
this.setUUID(new Date().getTime());
},
+ onunmatch: function() {
+ this._super();
+ },
onclick: function(e){
var btn = this.closest(':button'), grid = this.getGridField(),
form = this.closest('form'), data = form.find(':input').serialize();
@@ -172,12 +175,14 @@
$('.ss-gridfield-print-iframe').entwine({
onmatch: function(){
- this.hide().bind('load', function()
- {
+ this.hide().bind('load', function() {
this.focus();
var ifWin = this.contentWindow || this;
ifWin.print();
});;
+ },
+ onunmatch: function() {
+ this._super();
}
});
@@ -247,7 +252,7 @@
* rather than the whole form.
*/
$('.ss-gridfield .filter-header :input').entwine({
- onmatch: function(){
+ onmatch: function() {
var filterbtn = this.closest('.fieldgroup').find('.ss-gridfield-button-filter'),
resetbtn = this.closest('.fieldgroup').find('.ss-gridfield-button-reset');
@@ -257,6 +262,9 @@
}
this._super();
},
+ onunmatch: function() {
+ this._super();
+ },
onkeydown: function(e) {
// Skip reset button events, they should trigger default submission
if(this.closest('.ss-gridfield-button-reset').length) return;
Oops, something went wrong.

0 comments on commit 8d469b6

Please sign in to comment.