forked from I2P_Developers/i2p.i2p
0 disables refresh on /configsidebar disable ajax if refresh disabled change refresh default to 15 sec
12 lines
492 B
Plaintext
12 lines
492 B
Plaintext
<%
|
|
if (!intl.getDisableRefresh()) {
|
|
%><script src="/js/ajax.js?<%=net.i2p.CoreVersion.VERSION%>" type="text/javascript"></script>
|
|
<script nonce="<%=cspNonce%>" type="text/javascript">
|
|
var failMessage = "<hr><b><%=intl._t("Router is down")%><\/b>";
|
|
function requestAjax1() { ajax("/xhr1.jsp?requestURI=<%=request.getRequestURI()%>", "xhr", <%=intl.getRefresh()%>000); }
|
|
function initAjax() { setTimeout(requestAjax1, <%=intl.getRefresh()%>000); }
|
|
initAjax();
|
|
</script><%
|
|
}
|
|
%>
|