forked from I2P_Developers/i2p.i2p
Insert routerconsole.summaryRefresh config value into Ajax script
This way, both Ajax and IFrame get their refresh time from config (though IFrame one can still be modified live).
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
<script src="/js/ajax.js" type="text/javascript"></script>
|
<script src="/js/ajax.js" type="text/javascript"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var failMessage = "<hr><b><%=intl._("Router is down")%><\/b>";
|
var failMessage = "<hr><b><%=intl._("Router is down")%><\/b>";
|
||||||
function requestAjax1() { ajax("/xhr1.jsp", "xhr", 15000); }
|
function requestAjax1() { ajax("/xhr1.jsp", "xhr", <%=intl.getRefresh()%>000); }
|
||||||
function initAjax() { setTimeout(requestAjax1, 15000); }
|
function initAjax() { setTimeout(requestAjax1, <%=intl.getRefresh()%>000); }
|
||||||
</script>
|
</script>
|
||||||
</head><body onload="initAjax()">
|
</head><body onload="initAjax()">
|
||||||
<%
|
<%
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
<script src="/js/ajax.js" type="text/javascript"></script>
|
<script src="/js/ajax.js" type="text/javascript"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var failMessage = "<hr><b><%=intl._("Router is down")%><\/b>";
|
var failMessage = "<hr><b><%=intl._("Router is down")%><\/b>";
|
||||||
function requestAjax1() { ajax("/xhr1.jsp", "xhr", 15000); }
|
function requestAjax1() { ajax("/xhr1.jsp", "xhr", <%=intl.getRefresh()%>000); }
|
||||||
function initAjax() { setTimeout(requestAjax1, 15000); }
|
function initAjax() { setTimeout(requestAjax1, <%=intl.getRefresh()%>000); }
|
||||||
</script>
|
</script>
|
||||||
</head><body onload="initAjax()">
|
</head><body onload="initAjax()">
|
||||||
<%
|
<%
|
||||||
|
Reference in New Issue
Block a user