Mercurial > hg > LGServices
comparison 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 |
comparison
equal
deleted
inserted
replaced
59:bc0219c2600b | 60:90d5e86c157d |
---|---|
53 | 53 |
54 $( "#addContributors" ).button().on( "click", function() { | 54 $( "#addContributors" ).button().on( "click", function() { |
55 dialog.dialog( "open" ); | 55 dialog.dialog( "open" ); |
56 }); | 56 }); |
57 }); | 57 }); |
58 | |
59 | |
60 function updatePage() { | |
61 var text = getCookie(); | |
62 | |
63 if (text == "1") { | |
64 setCookie("0"); | |
65 setAction('forceReloadBranch', 'branchForm'); | |
66 | |
67 document.forms['branchForm'].submit(); | |
68 } | |
69 | |
70 setTimeout(updatePage, 1000); | |
71 } | |
72 updatePage(); | |
73 | |
74 | |
58 </script> | 75 </script> |
59 | 76 |
60 </head> | 77 </head> |
61 | 78 |
62 <body> | 79 <body> |