From 31aa080609f6ea8a561182eb5b3da46733bef313 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 23 Apr 2014 13:21:51 +0200 Subject: Further refine cross-folder searching: - Store incomplete search results in session and re-send search requests to the server if returned before complete (this should avoid hitting request timeouts). - Display full folder path on mouseover in message list - Remove pthreads implementation stuff as this wasn't really working --- program/js/app.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 6f61685d1..f586c1143 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1992,6 +1992,9 @@ function rcube_webmail() else html = ' '; } + else if (c == 'folder') { + html = '' + cols[c] + ''; + } else html = cols[c]; @@ -4214,6 +4217,17 @@ function rcube_webmail() return false; }; + this.continue_search = function(request_id) + { + var lock = ref.set_busy(true, 'stillsearching'); + + setTimeout(function(){ + var url = ref.search_params(); + url._continue = request_id; + ref.env.qsearch = { lock: lock, request: ref.http_request('search', url, lock) }; + }, 100); + }; + // build URL params for search this.search_params = function(search, filter, smods) { @@ -7870,7 +7884,7 @@ rcube_webmail.long_subject_title = function(elem, indent) { if (!elem.title) { var $elem = $(elem); - if ($elem.width() + indent * 15 > $elem.parent().width()) + if ($elem.width() + (indent || 0) * 15 > $elem.parent().width()) elem.title = $elem.text(); } }; -- cgit v1.2.3