aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorPaolo T <tuscanhobbit@users.noreply.github.com>2014-10-12 09:15:39 +0200
committerPaolo T <tuscanhobbit@users.noreply.github.com>2014-10-12 09:15:39 +0200
commit56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41 (patch)
treec1376be525c85ab799f213ed79648d8c478da3d0 /view/js/main.js
parent9edaa2843b9982f52fb1ed93b1c6e3d9e53921d7 (diff)
parent44c4c9c5c271a5ad163a089b1dc271d108a59700 (diff)
downloadvolse-hubzilla-56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41.tar.gz
volse-hubzilla-56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41.tar.bz2
volse-hubzilla-56f6f696bd5dd5b8120d562d9f43fe94d8e6dd41.zip
Merge pull request #6 from tuscanhobbit/master
Fast forward local hub
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 0560bc875..f58d3756b 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -896,12 +896,14 @@ function updateConvItems(mode,data) {
function importElement(elem) {
$.post(
"impel",
- { "element" : elem }
+ { "element" : elem },
+ function(data) {
+ if(timer) clearTimeout(timer);
+ timer = setTimeout(NavUpdate,10);
+ }
);
- if(timer) clearTimeout(timer);
- timer = setTimeout(NavUpdate,10);
- return true;
+ return false;
}
function preview_post() {