FIX Skip autofocus on TreeDropdownField

To avoid (visually) unsetting the selected value if the drop down
is the first form field on the page (see LeftAndMain.EditForm.js)
This commit is contained in:
Ingo Schommer 2013-04-04 23:59:54 +02:00 committed by Will Rossiter
parent f296439a24
commit da87614d8f

View File

@ -255,7 +255,7 @@
var title = decodeURIComponent(this.data('title'));
this.find('.treedropdownfield-title').replaceWith(
$('<input type="text" class="treedropdownfield-title search" />')
$('<input type="text" class="treedropdownfield-title search" data-skip-autofocus="true" />')
);
this.setTitle(title ? title : strings.searchFieldTitle);