Skip to content

Commit 0d11a16

Browse files
committed
Disable refreshing for easier debugging
1 parent f756089 commit 0d11a16

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

webapp/public/js/domjudge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ function enableRefresh($url, $after, usingAjax) {
617617
}
618618
};
619619
refreshHandler = setTimeout(refresh, $after * 1000);
620-
refreshEnabled = true;
620+
refreshEnabled = false;
621621
setCookie('domjudge_refresh', 1);
622622

623623
if(window.location.href == localStorage.getItem('lastUrl')) {

webapp/templates/base.html.twig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,6 @@
4848
{% endif %}
4949
var markdownPreviewUrl = "{{ path('markdown_preview') }}";
5050
$(function () {
51-
/* toggle refresh if set */
52-
{% if refresh is defined and refresh %}
53-
$('#refresh-navitem').on('click', function () {
54-
toggleRefresh('{{ refresh.url | raw }}', {{ refresh.after }}, {{ refresh.ajax | default(0) }});
55-
});
56-
{% endif %}
57-
/* Enable page refresh if set if wanted by the page, and wanted by the user */
58-
{% if refresh is defined and refresh and refresh_flag %}
59-
enableRefresh('{{ refresh.url | raw }}', {{ refresh.after }}, {{ refresh.ajax | default(0) }});
60-
{% endif %}
61-
6251
initializeAjaxModals();
6352
});
6453
</script>

0 commit comments

Comments
 (0)