Toggle KQ and reopen after page turn

Change-Id: Ib2bdd9a3818bf217bca6be2e7ccf8ed4f321c662
diff --git a/dev/js/src/view.js b/dev/js/src/view.js
index 4a4dc03..946cdd3 100644
--- a/dev/js/src/view.js
+++ b/dev/js/src/view.js
@@ -67,7 +67,9 @@
     shown : function () {
       return this._shown;
     },
-    
+
+    // onClose : function () {},
+
     /**
      * Close the view.
      */
@@ -76,6 +78,8 @@
       e.parentNode.removeChild(e);
       this.panel.delView(this);
       this._shown = false;
+      if (this.onClose)
+        this.onClose();
     },