BUGFIX Using faster entwine selectors (class/attr rather than CSS3 pseudo selectors)

This commit is contained in:
Ingo Schommer 2011-12-12 18:35:25 +01:00
parent e20304276f
commit 2170835aeb
3 changed files with 3 additions and 3 deletions

View File

@ -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 File

@ -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 File

@ -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;