1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-29 19:26:06 +00:00

Moved search hotkey to search.js

This commit is contained in:
Mark McDowall 2013-09-23 22:27:51 -07:00
parent f32cbbb224
commit 283cd36db8
2 changed files with 11 additions and 11 deletions

View file

@ -4,6 +4,17 @@ define(
'app',
'Series/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 () {
$(this).typeahead({
source : function () {

View file

@ -230,16 +230,5 @@ define(
'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;
});