Moved search hotkey to search.js

pull/4/head
Mark McDowall 11 years ago
parent f32cbbb224
commit 283cd36db8

@ -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 () {

@ -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;
});

Loading…
Cancel
Save