Move focussing code to proper .js file
This commit is contained in:
parent
439f34171c
commit
609a639129
@ -257,6 +257,10 @@ HistoryPanel.prototype._showExtractOperationsDialog = function(json) {
|
|||||||
|
|
||||||
var level = DialogSystem.showDialog(frame);
|
var level = DialogSystem.showDialog(frame);
|
||||||
|
|
||||||
|
function setFocusToTextBox() {
|
||||||
|
document.getElementById("filterInput").focus();
|
||||||
|
}
|
||||||
|
|
||||||
elmts.textarea[0].select();
|
elmts.textarea[0].select();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -305,6 +305,10 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
var level = DialogSystem.showDialog(frame);
|
var level = DialogSystem.showDialog(frame);
|
||||||
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
||||||
|
|
||||||
|
function setFocusToTextBox() {
|
||||||
|
document.getElementById("separatorInput").focus();
|
||||||
|
}
|
||||||
|
|
||||||
elmts.cancelButton.click(dismiss);
|
elmts.cancelButton.click(dismiss);
|
||||||
elmts.okButton.click(function() {
|
elmts.okButton.click(function() {
|
||||||
var mode = $("input[name='split-by-mode']:checked")[0].value;
|
var mode = $("input[name='split-by-mode']:checked")[0].value;
|
||||||
|
@ -278,6 +278,10 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
var level = DialogSystem.showDialog(frame);
|
var level = DialogSystem.showDialog(frame);
|
||||||
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
var dismiss = function() { DialogSystem.dismissUntil(level - 1); };
|
||||||
|
|
||||||
|
function setFocusToTextBox() {
|
||||||
|
document.getElementById("separatorInput").focus();
|
||||||
|
}
|
||||||
|
|
||||||
elmts.cancelButton.click(dismiss);
|
elmts.cancelButton.click(dismiss);
|
||||||
elmts.okButton.click(function() {
|
elmts.okButton.click(function() {
|
||||||
var mode = $("input[name='split-by-mode']:checked")[0].value;
|
var mode = $("input[name='split-by-mode']:checked")[0].value;
|
||||||
|
Loading…
Reference in New Issue
Block a user