Bind keyboard shortcut 'n' to the right view (refactoring)
This commit is contained in:
parent
4c733eb715
commit
45f21e1cd8
File diff suppressed because one or more lines are too long
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue