Move focussing code to proper .js file

This commit is contained in:
Katrin Leinweber 2019-08-28 19:35:33 +02:00
parent 439f34171c
commit 609a639129
3 changed files with 12 additions and 0 deletions

View File

@ -256,6 +256,10 @@ HistoryPanel.prototype._showExtractOperationsDialog = function(json) {
});
var level = DialogSystem.showDialog(frame);
function setFocusToTextBox() {
document.getElementById("filterInput").focus();
}
elmts.textarea[0].select();
};

View File

@ -304,6 +304,10 @@ 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.cancelButton.click(dismiss);
elmts.okButton.click(function() {

View File

@ -277,6 +277,10 @@ 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.cancelButton.click(dismiss);
elmts.okButton.click(function() {