summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-23 13:21:51 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-23 13:21:51 +0200
commit31aa080609f6ea8a561182eb5b3da46733bef313 (patch)
tree24ef1d723fdfaaf9ccc3a709fa2df7b3b4183bd4 /program/js/app.js
parent3b55b2f92b435630f56e63f5796471abacaaf425 (diff)
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
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js16
1 files changed, 15 insertions, 1 deletions
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 = '&nbsp;';
}
+ else if (c == 'folder') {
+ html = '<span onmouseover="rcube_webmail.long_subject_title(this)">' + cols[c] + '<span>';
+ }
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();
}
};