mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Using faster entwine selectors (class/attr rather than CSS3 pseudo selectors)
This commit is contained in:
parent
e20304276f
commit
2170835aeb
@ -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
|
||||
|
@ -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');
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user