Fix modal session timeout
[controller.git] / opendaylight / web / root / src / main / resources / js / lib.js
index bc922106eccc00274f3db94b0ca648b4512d8f4f..d32f60e68b46e6764e2cccb4555dda62c9d0c9e2 100644 (file)
@@ -226,7 +226,10 @@ one.lib.modal = {
         return $clone;
     },
     // populate modal
-    populate : function($modal, header, $body, footer) {
+    populate : function($modal, header, $body, footer, ajax) {
+      if (ajax === undefined && ajax !== false) {
+        $.getJSON('/web.json'); // session check per modal
+      }
         var $h3 = $modal.find("h3");
         $h3.text(header);