diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-30 10:14:32 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-30 10:14:32 +0200 |
commit | 65070fcbf4ce257040dfd06948205fe6f45baf69 (patch) | |
tree | fe79996a9e05c1cae67d67a7ff088894f6d8b606 /program | |
parent | c3ce9c9d165c3979f457230f14f5a9e71c1ad352 (diff) |
Small code improvements
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js index 9a92bbbde..5262bd73a 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3045,7 +3045,7 @@ function rcube_webmail() rows = this.message_list ? this.message_list.rows : {}; if (typeof uids == 'string') - uids = String(uids).split(','); + uids = uids.split(','); for (i=0, len=uids.length; i<len; i++) { uid = uids[i]; @@ -7253,12 +7253,12 @@ function rcube_webmail() // helper method to send an HTTP request with the given iterator value this.multi_thread_send_request = function(prop, item) { - var postdata, query; + var k, postdata, query; // replace %s in post data if (prop.postdata) { postdata = {}; - for (var k in prop.postdata) { + for (k in prop.postdata) { postdata[k] = String(prop.postdata[k]).replace('%s', item); } postdata._reqid = prop.reqid; @@ -7270,7 +7270,7 @@ function rcube_webmail() } else if (typeof prop.query == 'object' && prop.query) { query = {}; - for (var k in prop.query) { + for (k in prop.query) { query[k] = String(prop.query[k]).replace('%s', item); } query._reqid = prop.reqid; |