Search autofocus element in DOM, instead of defining function
This commit is contained in:
parent
609a639129
commit
200d11cbef
@ -257,9 +257,7 @@ HistoryPanel.prototype._showExtractOperationsDialog = function(json) {
|
||||
|
||||
var level = DialogSystem.showDialog(frame);
|
||||
|
||||
function setFocusToTextBox() {
|
||||
document.getElementById("filterInput").focus();
|
||||
}
|
||||
elmts.getElementById("filterInput").focus();
|
||||
|
||||
elmts.textarea[0].select();
|
||||
};
|
||||
|
@ -305,9 +305,7 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
||||
var level = DialogSystem.showDialog(frame);
|
||||
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
||||
|
||||
function setFocusToTextBox() {
|
||||
document.getElementById("separatorInput").focus();
|
||||
}
|
||||
elmts.getElementById("separatorInput").focus();
|
||||
|
||||
elmts.cancelButton.click(dismiss);
|
||||
elmts.okButton.click(function() {
|
||||
|
@ -278,9 +278,7 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
||||
var level = DialogSystem.showDialog(frame);
|
||||
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
||||
|
||||
function setFocusToTextBox() {
|
||||
document.getElementById("separatorInput").focus();
|
||||
}
|
||||
elmts.getElementById("separatorInput").focus();
|
||||
|
||||
elmts.cancelButton.click(dismiss);
|
||||
elmts.okButton.click(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user