diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-14 07:35:48 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-10-14 07:35:48 +0000 |
| commit | f3f1284d206c580e4aed4266567f019cde9abab7 (patch) | |
| tree | f02de8fa2016761ff267fd1af480d5d29874bb17 /plugins/enigma/enigma.js | |
| parent | 86ea4952cf85f2646fbe919b2c78d98a77438bd5 (diff) | |
- Fix set_busy() usage, add encryption menu in compose
git-svn-id: https://svn.roundcube.net/trunk@4087 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/enigma/enigma.js')
| -rw-r--r-- | plugins/enigma/enigma.js | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/enigma/enigma.js b/plugins/enigma/enigma.js index 2cd2d62e3..29c648224 100644 --- a/plugins/enigma/enigma.js +++ b/plugins/enigma/enigma.js @@ -96,15 +96,14 @@ rcube_webmail.prototype.enigma_search = function(props) props = this.gui_objects.qsearchbox.value; if (props || this.env.search_request) { - var params = {'_a': 'keysearch', '_q': urlencode(props)}; + var params = {'_a': 'keysearch', '_q': urlencode(props)}, + lock = this.set_busy(true, 'searching'); // if (this.gui_objects.search_filter) // addurl += '&_filter=' + this.gui_objects.search_filter.value; - this.env.current_page = 1; - this.set_busy(true, 'searching'); - + this.env.current_page = 1; this.enigma_loadframe(); this.enigma_clear_list(); - this.http_post('plugin.enigma', params, true); + this.http_post('plugin.enigma', params, lock); } return false; @@ -130,10 +129,10 @@ rcube_webmail.prototype.enigma_search_reset = function(props) // Keys/certs listing rcube_webmail.prototype.enigma_list = function(page) { - var params = {'_a': 'keylist'}; + var params = {'_a': 'keylist'}, + lock = this.set_busy(true, 'loading'); this.env.current_page = page ? page : 1; - this.set_busy(true, 'loading'); if (this.env.search_request) params._q = this.env.search_request; @@ -141,7 +140,7 @@ rcube_webmail.prototype.enigma_list = function(page) params._p = page; this.enigma_clear_list(); - this.http_post('plugin.enigma', params, true); + this.http_post('plugin.enigma', params, lock); } // Change list page @@ -198,9 +197,9 @@ rcube_webmail.prototype.enigma_add_list_row = function(r) // Import attached keys/certs file rcube_webmail.prototype.enigma_import_attachment = function(mime_id) { - this.set_busy(true, 'loading'); + var lock = this.set_busy(true, 'loading'); this.http_post('plugin.enigmaimport', '_uid='+this.env.uid+'&_mbox=' - +urlencode(this.env.mailbox)+'&_part='+urlencode(mime_id), true); + +urlencode(this.env.mailbox)+'&_part='+urlencode(mime_id), lock); return false; }; |
