summaryrefslogtreecommitdiffstats
path: root/client/lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/lib')
-rw-r--r--client/lib/keyboard.js7
-rw-r--r--client/lib/utils.js18
2 files changed, 1 insertions, 24 deletions
diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js
index c1267938..8601e623 100644
--- a/client/lib/keyboard.js
+++ b/client/lib/keyboard.js
@@ -19,12 +19,7 @@ Mousetrap.bind('esc', function() {
});
Mousetrap.bind('w', function() {
- if (! Session.get('currentCard')) {
- Sidebar.toogle();
- } else {
- Utils.goBoardId(Session.get('currentBoard'));
- Sidebar.hide();
- }
+ Sidebar.toogle();
});
Mousetrap.bind('q', function() {
diff --git a/client/lib/utils.js b/client/lib/utils.js
index 9e92e999..7c117d4b 100644
--- a/client/lib/utils.js
+++ b/client/lib/utils.js
@@ -18,18 +18,6 @@ Utils = {
};
},
- Warning: {
- get: function() {
- return Session.get('warning');
- },
- open: function(desc) {
- Session.set('warning', { desc: desc });
- },
- close: function() {
- Session.set('warning', false);
- }
- },
-
// XXX We should remove these two methods
goBoardId: function(_id) {
var board = Boards.findOne(_id);
@@ -49,12 +37,6 @@ Utils = {
});
},
- liveEvent: function(events, callback) {
- $(document).on(events, function() {
- callback($(this));
- });
- },
-
capitalize: function(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
},