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