summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-20 13:39:02 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-20 13:39:02 +0200
commitd2e3a22d24190c02741e8a67ff1fd8601fe17e07 (patch)
treece2445a9ded9161ef52eb9a93fe673dd766ded02 /program/js/app.js
parent2611ac9570010101702004d755aff652b0673d8f (diff)
Allow aborting of running search requests
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index b2ecbae6b..6f61685d1 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -576,7 +576,8 @@ function rcube_webmail()
if (obj && obj.blur)
obj.blur();
- if (this.busy)
+ // do nothing if interface is locked by other command (with exception for searching reset)
+ if (this.busy && !(command == 'reset-search' && this.last_command == 'search'))
return false;
// let the browser handle this click (shift/ctrl usually opens the link in a new window/tab)
@@ -602,6 +603,8 @@ function rcube_webmail()
this.remove_compose_data(this.env.compose_id);
}
+ this.last_command = command;
+
// process external commands
if (typeof this.command_handlers[command] === 'function') {
ret = this.command_handlers[command](props, obj);