Bind keyboard shortcut 'n' to the right view (refactoring)
This commit is contained in:
@@ -21,7 +21,9 @@ Kanboard.BoardTask.prototype.listen = function() {
|
||||
Kanboard.BoardTask.prototype.keyboardShortcuts = function() {
|
||||
var self = this;
|
||||
|
||||
Mousetrap.bind("n", function() {
|
||||
self.app.get("Popover").open($("#board").data("task-creation-url"));
|
||||
});
|
||||
if (self.app.hasId("board")) {
|
||||
Mousetrap.bind("n", function () {
|
||||
self.app.get("Popover").open($("#board").data("task-creation-url"));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -16,8 +16,6 @@ Kanboard.Search.prototype.focus = function() {
|
||||
};
|
||||
|
||||
Kanboard.Search.prototype.listen = function() {
|
||||
var self = this;
|
||||
|
||||
// Filter helper for search
|
||||
$(document).on("click", ".filter-helper", function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user