// Define global shortcuts
- key('s', function(e) { //
+ key('s', function() {
jQuery('#searchInput').focus();
return false;
});
NavigatorApp.addInitializer(function () {
var that = this;
jQuery('body')
- .on('mousemove', function (e) { that.processResize(e); })
- .on('mouseup', function (e) { that.stopResize(); });
- jQuery('.navigator-resizer').on('mousedown', function (e) { that.startResize(e); });
+ .on('mousemove', function (e) {
+ that.processResize(e);
+ })
+ .on('mouseup', function () {
+ that.stopResize();
+ });
+ jQuery('.navigator-resizer').on('mousedown', function (e) {
+ that.startResize(e);
+ });
var resultsWidth = localStorage.getItem('issuesResultsWidth');
if (resultsWidth) {
initialize: function() {
- var openIssue = function(el) { el.click(); };
+ var openIssue = function(el) {
+ el.click();
+ };
this.openIssue = _.debounce(openIssue, 300);
},
bindShortcuts: function () {
var that = this;
- key('up', 'list', function() { that.selectPrev(); });
- key('down', 'list', function() { that.selectNext(); });
+ key('up', 'list', function() {
+ that.selectPrev();
+ });
+ key('down', 'list', function() {
+ that.selectNext();
+ });
}
});