Prevent sidebar clicks to be halted

Change-Id: I29c083bbf260057bb136b164cd3e9a86b403fd33
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 1ff4c73..16a58ff 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -147,6 +147,9 @@
 
     if (aside && aside.classList.contains('active') == false) {
 
+      // Horrible lock to deal with sidebar clicks
+      var asideClicked = false;
+      
       // Make aside active on focus
       aside.addEventListener('focus', function(e) {
         this.classList.add('active');
@@ -156,7 +159,12 @@
       var body = document.getElementsByTagName('body')[0];
       if (body !== null) {
         body.addEventListener('click', function() {
-          aside.classList.remove('active');
+          if (!asideClicked) {
+            aside.classList.remove('active');
+          }
+          else {
+            asideClicked = false;
+          };
         });
       };
 
@@ -164,8 +172,7 @@
        * (to not trickle down to body)
        */
       aside.addEventListener('click', function(e) {
-        // TODO: This prevents the form submission!
-        e.halt();
+        asideClicked = true;
       });
     };