From ee709258b366f6924b9b4a4f7e6050a981add98d Mon Sep 17 00:00:00 2001 From: Arpad Csanyi Date: Thu, 16 Jun 2016 00:32:03 +0200 Subject: [PATCH] When removing a keymap jump to the factory one. --- app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.js b/app.js index f27061e2..4dbc14e6 100644 --- a/app.js +++ b/app.js @@ -118,6 +118,12 @@ $(function() { } }); + $('.keymap__remove').on('click', function(e) { + // Show the factory keymap after removal of a keymap. + $('.sidebar__level-2--item:first').click(); + $('.notification').show(); + }); + $('.notification').on('click', '.notification__dismiss', function(e) { $('.notification').hide(); });