Mercurial > hg > LGServices
diff src/main/webapp/pages/branchPage.jsp @ 60:90d5e86c157d
new: auto refresh page when there's new version saved from Ext-Interface
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 25 May 2016 11:11:32 +0200 |
parents | bc0219c2600b |
children | 824b808a7481 |
line wrap: on
line diff
--- a/src/main/webapp/pages/branchPage.jsp Mon May 09 16:02:32 2016 +0200 +++ b/src/main/webapp/pages/branchPage.jsp Wed May 25 11:11:32 2016 +0200 @@ -55,6 +55,23 @@ dialog.dialog( "open" ); }); }); + + + function updatePage() { + var text = getCookie(); + + if (text == "1") { + setCookie("0"); + setAction('forceReloadBranch', 'branchForm'); + + document.forms['branchForm'].submit(); + } + + setTimeout(updatePage, 1000); + } + updatePage(); + + </script> </head>