From 1391bea690d42096f4ff2056c939882c5b3ca833 Mon Sep 17 00:00:00 2001 From: Andrew Kim Date: Wed, 11 Sep 2013 18:12:47 -0500 Subject: [PATCH] Fix modal session timeout Change-Id: Id5a402860ecb597489bab1d3d2b45ce8a7cbd9aa Signed-off-by: Andrew Kim --- opendaylight/web/root/src/main/resources/js/lib.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opendaylight/web/root/src/main/resources/js/lib.js b/opendaylight/web/root/src/main/resources/js/lib.js index bc922106ec..d32f60e68b 100644 --- a/opendaylight/web/root/src/main/resources/js/lib.js +++ b/opendaylight/web/root/src/main/resources/js/lib.js @@ -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); -- 2.36.6