aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
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() {