Fix syntax to pass the EcmaScript3 JS lint test

This commit is contained in:
Thomas Bruederli 2015-04-27 08:59:16 +02:00
parent 5cbcf8381c
commit a7f11c89ea
5 changed files with 17 additions and 18 deletions

View file

@ -34,7 +34,6 @@ function rcube_calendar(settings)
rcube_libcalendaring.call(this, settings);
// member vars
this.ui;
this.ui_loaded = false;
this.selected_attachment = null;
@ -91,7 +90,7 @@ function rcube_calendar(settings)
rcmail.http_post('calendar/mailimportattach', {
_uid: rcmail.env.uid,
_mbox: rcmail.env.mailbox,
_part: this.selected_attachment,
_part: this.selected_attachment
// _calendar: $('#calendar-attachment-saveto').val(),
}, rcmail.set_busy(true, 'itip.savingdata'));
}

View file

@ -197,18 +197,18 @@ function rcube_calendar_ui(settings)
{
var result = [],
strlen = str.length,
q, p, i, char, last;
q, p, i, chr, last;
for (q = p = i = 0; i < strlen; i++) {
char = str.charAt(i);
if (char == '"' && last != '\\') {
chr = str.charAt(i);
if (chr == '"' && last != '\\') {
q = !q;
}
else if (!q && char == delimiter) {
else if (!q && chr == delimiter) {
result.push(str.substring(p, i));
p = i + 1;
}
last = char;
last = chr;
}
result.push(str.substr(p));

View file

@ -44,8 +44,8 @@ function rcube_kolab_notes_ui(settings)
var me = this;
/* public members */
this.selected_list;
this.selected_note;
this.selected_list = null;
this.selected_note = null;
this.notebooks = rcmail.env.kolab_notebooks || {};
/**
@ -571,7 +571,7 @@ function rcube_kolab_notes_ui(settings)
},
buttons: buttons,
minWidth: 480,
width: 640,
width: 640
}).show();
}
@ -1112,7 +1112,7 @@ function rcube_kolab_notes_ui(settings)
width: model.width(),
height: model.height(),
minWidth: 450,
minHeight: 400,
minHeight: 400
})
.show();

View file

@ -3175,18 +3175,18 @@ function rcube_tasklist_ui(settings)
{
var result = [],
strlen = str.length,
q, p, i, char, last;
q, p, i, chr, last;
for (q = p = i = 0; i < strlen; i++) {
char = str.charAt(i);
if (char == '"' && last != '\\') {
chr = str.charAt(i);
if (chr == '"' && last != '\\') {
q = !q;
}
else if (!q && char == delimiter) {
else if (!q && chr == delimiter) {
result.push(str.substring(p, i));
p = i + 1;
}
last = char;
last = chr;
}
result.push(str.substr(p));

View file

@ -33,7 +33,7 @@ function rcube_tasklist(settings)
var mywin = window;
/* public members */
this.ui;
this.ui = null;
/* public methods */
this.create_from_mail = create_from_mail;
@ -101,7 +101,7 @@ function rcube_tasklist(settings)
rcmail.http_post('tasks/mailimportattach', {
_uid: rcmail.env.uid,
_mbox: rcmail.env.mailbox,
_part: this.selected_attachment,
_part: this.selected_attachment
// _list: $('#tasklist-attachment-saveto').val(),
}, rcmail.set_busy(true, 'itip.savingdata'));
}