Fix syntax to pass the EcmaScript3 JS lint test
This commit is contained in:
parent
5cbcf8381c
commit
a7f11c89ea
5 changed files with 17 additions and 18 deletions
|
@ -34,7 +34,6 @@ function rcube_calendar(settings)
|
||||||
rcube_libcalendaring.call(this, settings);
|
rcube_libcalendaring.call(this, settings);
|
||||||
|
|
||||||
// member vars
|
// member vars
|
||||||
this.ui;
|
|
||||||
this.ui_loaded = false;
|
this.ui_loaded = false;
|
||||||
this.selected_attachment = null;
|
this.selected_attachment = null;
|
||||||
|
|
||||||
|
@ -91,7 +90,7 @@ function rcube_calendar(settings)
|
||||||
rcmail.http_post('calendar/mailimportattach', {
|
rcmail.http_post('calendar/mailimportattach', {
|
||||||
_uid: rcmail.env.uid,
|
_uid: rcmail.env.uid,
|
||||||
_mbox: rcmail.env.mailbox,
|
_mbox: rcmail.env.mailbox,
|
||||||
_part: this.selected_attachment,
|
_part: this.selected_attachment
|
||||||
// _calendar: $('#calendar-attachment-saveto').val(),
|
// _calendar: $('#calendar-attachment-saveto').val(),
|
||||||
}, rcmail.set_busy(true, 'itip.savingdata'));
|
}, rcmail.set_busy(true, 'itip.savingdata'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,18 +197,18 @@ function rcube_calendar_ui(settings)
|
||||||
{
|
{
|
||||||
var result = [],
|
var result = [],
|
||||||
strlen = str.length,
|
strlen = str.length,
|
||||||
q, p, i, char, last;
|
q, p, i, chr, last;
|
||||||
|
|
||||||
for (q = p = i = 0; i < strlen; i++) {
|
for (q = p = i = 0; i < strlen; i++) {
|
||||||
char = str.charAt(i);
|
chr = str.charAt(i);
|
||||||
if (char == '"' && last != '\\') {
|
if (chr == '"' && last != '\\') {
|
||||||
q = !q;
|
q = !q;
|
||||||
}
|
}
|
||||||
else if (!q && char == delimiter) {
|
else if (!q && chr == delimiter) {
|
||||||
result.push(str.substring(p, i));
|
result.push(str.substring(p, i));
|
||||||
p = i + 1;
|
p = i + 1;
|
||||||
}
|
}
|
||||||
last = char;
|
last = chr;
|
||||||
}
|
}
|
||||||
|
|
||||||
result.push(str.substr(p));
|
result.push(str.substr(p));
|
||||||
|
|
|
@ -44,8 +44,8 @@ function rcube_kolab_notes_ui(settings)
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
/* public members */
|
/* public members */
|
||||||
this.selected_list;
|
this.selected_list = null;
|
||||||
this.selected_note;
|
this.selected_note = null;
|
||||||
this.notebooks = rcmail.env.kolab_notebooks || {};
|
this.notebooks = rcmail.env.kolab_notebooks || {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -571,7 +571,7 @@ function rcube_kolab_notes_ui(settings)
|
||||||
},
|
},
|
||||||
buttons: buttons,
|
buttons: buttons,
|
||||||
minWidth: 480,
|
minWidth: 480,
|
||||||
width: 640,
|
width: 640
|
||||||
}).show();
|
}).show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1112,7 +1112,7 @@ function rcube_kolab_notes_ui(settings)
|
||||||
width: model.width(),
|
width: model.width(),
|
||||||
height: model.height(),
|
height: model.height(),
|
||||||
minWidth: 450,
|
minWidth: 450,
|
||||||
minHeight: 400,
|
minHeight: 400
|
||||||
})
|
})
|
||||||
.show();
|
.show();
|
||||||
|
|
||||||
|
|
|
@ -3175,18 +3175,18 @@ function rcube_tasklist_ui(settings)
|
||||||
{
|
{
|
||||||
var result = [],
|
var result = [],
|
||||||
strlen = str.length,
|
strlen = str.length,
|
||||||
q, p, i, char, last;
|
q, p, i, chr, last;
|
||||||
|
|
||||||
for (q = p = i = 0; i < strlen; i++) {
|
for (q = p = i = 0; i < strlen; i++) {
|
||||||
char = str.charAt(i);
|
chr = str.charAt(i);
|
||||||
if (char == '"' && last != '\\') {
|
if (chr == '"' && last != '\\') {
|
||||||
q = !q;
|
q = !q;
|
||||||
}
|
}
|
||||||
else if (!q && char == delimiter) {
|
else if (!q && chr == delimiter) {
|
||||||
result.push(str.substring(p, i));
|
result.push(str.substring(p, i));
|
||||||
p = i + 1;
|
p = i + 1;
|
||||||
}
|
}
|
||||||
last = char;
|
last = chr;
|
||||||
}
|
}
|
||||||
|
|
||||||
result.push(str.substr(p));
|
result.push(str.substr(p));
|
||||||
|
|
|
@ -33,7 +33,7 @@ function rcube_tasklist(settings)
|
||||||
var mywin = window;
|
var mywin = window;
|
||||||
|
|
||||||
/* public members */
|
/* public members */
|
||||||
this.ui;
|
this.ui = null;
|
||||||
|
|
||||||
/* public methods */
|
/* public methods */
|
||||||
this.create_from_mail = create_from_mail;
|
this.create_from_mail = create_from_mail;
|
||||||
|
@ -101,7 +101,7 @@ function rcube_tasklist(settings)
|
||||||
rcmail.http_post('tasks/mailimportattach', {
|
rcmail.http_post('tasks/mailimportattach', {
|
||||||
_uid: rcmail.env.uid,
|
_uid: rcmail.env.uid,
|
||||||
_mbox: rcmail.env.mailbox,
|
_mbox: rcmail.env.mailbox,
|
||||||
_part: this.selected_attachment,
|
_part: this.selected_attachment
|
||||||
// _list: $('#tasklist-attachment-saveto').val(),
|
// _list: $('#tasklist-attachment-saveto').val(),
|
||||||
}, rcmail.set_busy(true, 'itip.savingdata'));
|
}, rcmail.set_busy(true, 'itip.savingdata'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue