summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-30 10:14:32 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-30 10:14:32 +0200
commit65070fcbf4ce257040dfd06948205fe6f45baf69 (patch)
treefe79996a9e05c1cae67d67a7ff088894f6d8b606
parentc3ce9c9d165c3979f457230f14f5a9e71c1ad352 (diff)
Small code improvements
-rw-r--r--program/js/app.js8
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;