From 4634049549fb0ee7350bb6328f24b36c21a19855 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Oct 2014 20:59:33 -0700 Subject: allow (our own) ajax urls to pass through bbcode intact. --- view/js/main.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'view') 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() { -- cgit v1.2.3