From: Andrew Kim Date: Wed, 11 Sep 2013 23:12:47 +0000 (-0500) Subject: Fix modal session timeout X-Git-Tag: releasepom-0.1.0~96 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=1391bea690d42096f4ff2056c939882c5b3ca833;ds=sidebyside Fix modal session timeout Change-Id: Id5a402860ecb597489bab1d3d2b45ce8a7cbd9aa Signed-off-by: Andrew Kim --- 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);