mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-01 12:45:03 +00:00
Moved search hotkey to search.js
This commit is contained in:
parent
f32cbbb224
commit
283cd36db8
2 changed files with 11 additions and 11 deletions
|
@ -4,6 +4,17 @@ define(
|
||||||
'app',
|
'app',
|
||||||
'Series/SeriesCollection'
|
'Series/SeriesCollection'
|
||||||
], function (App, SeriesCollection) {
|
], function (App, SeriesCollection) {
|
||||||
|
$(document).on('keydown', function (e){
|
||||||
|
if ($(e.target).is('input')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (e.keyCode === 84) {
|
||||||
|
$('.x-series-search').focus();
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$.fn.bindSearch = function () {
|
$.fn.bindSearch = function () {
|
||||||
$(this).typeahead({
|
$(this).typeahead({
|
||||||
source : function () {
|
source : function () {
|
||||||
|
|
11
UI/app.js
11
UI/app.js
|
@ -230,16 +230,5 @@ define(
|
||||||
'jQuery/TooltipBinder'
|
'jQuery/TooltipBinder'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$(document).on('keydown', function (e){
|
|
||||||
if ($(e.target).is('input')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (e.keyCode === 84) {
|
|
||||||
$('.x-series-search').focus();
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return app;
|
return app;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue