forked from CGM_Public/pretix_original
Moved static files and celery.py
This commit is contained in:
7
src/pretix/static/pretixbase/js/ajaxpending.js
Normal file
7
src/pretix/static/pretixbase/js/ajaxpending.js
Normal file
@@ -0,0 +1,7 @@
|
||||
window.setInterval(function () {
|
||||
$.get(location.href + '?ajax=1', function (data, status) {
|
||||
if (data === "1") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}, 500);
|
||||
5
src/pretix/static/pretixbase/js/errors.js
Normal file
5
src/pretix/static/pretixbase/js/errors.js
Normal file
@@ -0,0 +1,5 @@
|
||||
document.getElementById('goback').onclick =
|
||||
function() {window.history.back()};
|
||||
|
||||
document.getElementById('reload').onclick =
|
||||
function() {window.location.reload(true)};
|
||||
8
src/pretix/static/pretixbase/js/reloadpending.js
Normal file
8
src/pretix/static/pretixbase/js/reloadpending.js
Normal file
@@ -0,0 +1,8 @@
|
||||
var intId = window.setInterval(function () {
|
||||
$.get(location.href + '?ajax=1', function (data, status) {
|
||||
if (data === "1") {
|
||||
window.clearInterval(intId);
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}, 500);
|
||||
Reference in New Issue
Block a user