Fixed infinite reload loop

This commit is contained in:
Raphael Michel
2016-06-07 11:55:00 +02:00
parent 511ea66858
commit d3e4941a58
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
window.setInterval(function () {
var intId = window.setInterval(function () {
$.get(location.href + '?ajax=1', function (data, status) {
if (data === "1") {
window.clearInterval(intId);
location.reload();
}
});