fix nav update regressions - fixes issue #950

This commit is contained in:
Mario Vavti 2018-01-04 11:31:48 +01:00 committed by Mario
parent ae3067200b
commit 5a2b17a1da
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@
$.post(url, data, function(data) { $.post(url, data, function(data) {
if(timer) clearTimeout(timer); if(timer) clearTimeout(timer);
NavUpdate(); updateInit();
$.colorbox.close(); $.colorbox.close();
}) })

View File

@ -340,7 +340,7 @@ var activeCommentText = '';
$.get('{{$baseurl}}/tagger/' + id + '?term=' + reply); $.get('{{$baseurl}}/tagger/' + id + '?term=' + reply);
if(timer) clearTimeout(timer); if(timer) clearTimeout(timer);
timer = setTimeout(NavUpdate,3000); timer = setTimeout(updateInit,3000);
liking = 1; liking = 1;
} }
} }
@ -359,7 +359,7 @@ var activeCommentText = '';
if(reply && reply.length) { if(reply && reply.length) {
commentBusy = true; commentBusy = true;
$('body').css('cursor', 'wait'); $('body').css('cursor', 'wait');
$.get('{{$baseurl}}/filer/' + id + '?term=' + reply, NavUpdate); $.get('{{$baseurl}}/filer/' + id + '?term=' + reply, updateInit);
liking = 1; liking = 1;
$('#item-filer-dialog').modal('hide'); $('#item-filer-dialog').modal('hide');
} }
@ -372,13 +372,13 @@ var activeCommentText = '';
function itemBookmark(id) { function itemBookmark(id) {
$.get('{{$baseurl}}/bookmarks?f=&item=' + id); $.get('{{$baseurl}}/bookmarks?f=&item=' + id);
if(timer) clearTimeout(timer); if(timer) clearTimeout(timer);
timer = setTimeout(NavUpdate,1000); timer = setTimeout(updateInit,1000);
} }
function itemAddToCal(id) { function itemAddToCal(id) {
$.get('{{$baseurl}}/events/add/' + id); $.get('{{$baseurl}}/events/add/' + id);
if(timer) clearTimeout(timer); if(timer) clearTimeout(timer);
timer = setTimeout(NavUpdate,1000); timer = setTimeout(updateInit,1000);
} }
function toggleVoting() { function toggleVoting() {
@ -409,7 +409,7 @@ var activeCommentText = '';
if(id && icon) { if(id && icon) {
$.get('{{$baseurl}}/react?f=&postid=' + id + '&emoji=' + icon); $.get('{{$baseurl}}/react?f=&postid=' + id + '&emoji=' + icon);
if(timer) clearTimeout(timer); if(timer) clearTimeout(timer);
timer = setTimeout(NavUpdate,1000); timer = setTimeout(updateInit,1000);
} }
} }