summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@test90-7.test90.kolabsys.com>2011-08-23 11:05:47 (GMT)
committerThomas <thomas@brotherli.ch>2011-08-25 07:57:50 (GMT)
commit46d9402fa816e73b3ea8768f0bf98a22cd07c00d (patch)
tree8eaaaa66c5c574188553d93841baee591f15923d
parent84c6b0a955714d372d57ecce9efe6ff33b14fc15 (diff)
downloadroundcubemail-plugins-kolab-46d9402fa816e73b3ea8768f0bf98a22cd07c00d.tar.gz
Fixed group expanding in IE7 (#369) - string[i] syntax doesn't work in IE, use string.charAt(i) insteadroundcube-0.6
-rw-r--r--plugins/calendar/calendar_ui.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index df4a50d..2190d02 100644
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -81,16 +81,18 @@ function rcube_calendar_ui(settings)
{
var result = [],
strlen = str.length,
- q, p, i;
+ q, p, i, char, last;
for (q = p = i = 0; i < strlen; i++) {
- if (str[i] == '"' && str[i-1] != '\\') {
+ char = str.charAt(i);
+ if (char == '"' && last != '\\') {
q = !q;
}
- else if (!q && str[i] == delimiter) {
+ else if (!q && char == delimiter) {
result.push(str.substring(p, i));
p = i + 1;
}
+ last = char;
}
result.push(str.substr(p));