mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Exclude buttons from focusing first elements in CMS edit form, as it stuffs up the layout engine
This commit is contained in:
parent
b4fd20dc3c
commit
8adb259555
@ -45,7 +45,7 @@
|
|||||||
window.onbeforeunload = function(e) {return self._checkChangeTracker(false);};
|
window.onbeforeunload = function(e) {return self._checkChangeTracker(false);};
|
||||||
|
|
||||||
// focus input on first form element
|
// focus input on first form element
|
||||||
this.find(':input:visible:first').focus();
|
this.find(':input:visible:not(:submit):first').focus();
|
||||||
|
|
||||||
// Optionally get the form attributes from embedded fields, see Form->formHtmlContent()
|
// Optionally get the form attributes from embedded fields, see Form->formHtmlContent()
|
||||||
for(var overrideAttr in {'action':true,'method':true,'enctype':true,'name':true}) {
|
for(var overrideAttr in {'action':true,'method':true,'enctype':true,'name':true}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user