MINOR Exclude buttons from focusing first elements in CMS edit form, as it stuffs up the layout engine

This commit is contained in:
Ingo Schommer 2011-09-19 21:34:03 +02:00
parent b4fd20dc3c
commit 8adb259555

View File

@ -45,7 +45,7 @@
window.onbeforeunload = function(e) {return self._checkChangeTracker(false);};
// 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()
for(var overrideAttr in {'action':true,'method':true,'enctype':true,'name':true}) {