summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-03-14 14:50:44 -0400
committerJoey Hess <joey@kitenet.net>2013-03-14 14:50:44 -0400
commitf3c999062d560fdfb905e00f13810cbc5306f54a (patch)
tree79f30bf44304c3850156119c6b5f0fcb8e50d405 /static
parent7289f925223ba27f0052de09df69438563c27239 (diff)
re-setup repolist after longpoll refresh
Diffstat (limited to 'static')
-rw-r--r--static/longpolling.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/static/longpolling.js b/static/longpolling.js
index 965c1d18db..866a1b4d21 100644
--- a/static/longpolling.js
+++ b/static/longpolling.js
@@ -3,12 +3,15 @@
connfails=0;
+longpollcallbacks = $.Callbacks();
+
function longpoll(url, divid, cont, fail) {
$.ajax({
'url': url,
'dataType': 'html',
'success': function(data, status, jqxhr) {
$('#' + divid).replaceWith(data);
+ longpollcallbacks.fire();
connfails=0;
cont();
},