mirror of https://github.com/Jackett/Jackett
Manual search: Focus text field when opened (#568)
This commit is contained in:
parent
0c02c22654
commit
5a04e66abe
|
@ -467,6 +467,10 @@ function bindUIButtons() {
|
||||||
var releaseDialog = $(releaseTemplate({ indexers: indexers }));
|
var releaseDialog = $(releaseTemplate({ indexers: indexers }));
|
||||||
$("#modals").append(releaseDialog);
|
$("#modals").append(releaseDialog);
|
||||||
releaseDialog.modal("show");
|
releaseDialog.modal("show");
|
||||||
|
|
||||||
|
releaseDialog.on('shown.bs.modal', function() {
|
||||||
|
releaseDialog.find('#searchquery').focus();
|
||||||
|
});
|
||||||
|
|
||||||
var setCategories = function (tracker, items) {
|
var setCategories = function (tracker, items) {
|
||||||
var cats = {};
|
var cats = {};
|
||||||
|
@ -666,4 +670,4 @@ function bindUIButtons() {
|
||||||
doNotify("Request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
|
doNotify("Request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue