summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorctucx <leah@antifa.jetzt>2020-06-27 22:06:45 +0200
committerctucx <leah@antifa.jetzt>2020-06-27 22:06:45 +0200
commit041bf27bc51be062655962ed9851d74af2c032d5 (patch)
tree3461735971596b1692f5d08349dc9def9e3968ce
parent1d00368f917c6af0622848902dd83ec43e484ff5 (diff)
downloadtinyDAV-041bf27bc51be062655962ed9851d74af2c032d5.tar.gz
tinyDAV-041bf27bc51be062655962ed9851d74af2c032d5.tar.bz2
tinyDAV-041bf27bc51be062655962ed9851d74af2c032d5.zip
added infcloud
-rw-r--r--public/infcloud/.htaccess35
-rw-r--r--public/infcloud/addressbook.js1714
-rw-r--r--public/infcloud/auth/.htaccess24
-rw-r--r--public/infcloud/auth/common.inc41
-rw-r--r--public/infcloud/auth/config.inc58
-rw-r--r--public/infcloud/auth/cross_domain.inc14
-rw-r--r--public/infcloud/auth/doc/example_config_response.xml88
-rw-r--r--public/infcloud/auth/doc/readme.txt7
-rw-r--r--public/infcloud/auth/index.php33
-rw-r--r--public/infcloud/auth/plugins/generic.inc58
-rw-r--r--public/infcloud/auth/plugins/generic_conf.inc12
-rw-r--r--public/infcloud/auth/plugins/ldap.inc37
-rw-r--r--public/infcloud/auth/plugins/ldap_conf.inc12
-rw-r--r--public/infcloud/cache.manifest167
-rw-r--r--public/infcloud/cache_handler.js79
-rwxr-xr-xpublic/infcloud/cache_update.sh5
-rw-r--r--public/infcloud/changelog.txt17
-rw-r--r--public/infcloud/changelog_caldavzap.txt294
-rw-r--r--public/infcloud/changelog_carddavmate.txt503
-rw-r--r--public/infcloud/common.js2136
-rw-r--r--public/infcloud/config.js1440
-rw-r--r--public/infcloud/css/default.css3632
-rw-r--r--public/infcloud/css/default_ie.css81
-rw-r--r--public/infcloud/css/default_integration.css180
-rw-r--r--public/infcloud/css/fullcalendar.css1464
-rw-r--r--public/infcloud/css/jquery-ui.custom.css203
-rw-r--r--public/infcloud/css/jquery.tagsinput.css14
-rw-r--r--public/infcloud/css/spectrum.custom.css553
-rw-r--r--public/infcloud/data_process.js7792
-rw-r--r--public/infcloud/fonts/Roboto-Bold-webfont.eotbin0 -> 80347 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Bold-webfont.svg7496
-rw-r--r--public/infcloud/fonts/Roboto-Bold-webfont.ttfbin0 -> 233632 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Bold-webfont.woffbin0 -> 106512 bytes
-rw-r--r--public/infcloud/fonts/Roboto-BoldItalic-webfont.eotbin0 -> 91716 bytes
-rw-r--r--public/infcloud/fonts/Roboto-BoldItalic-webfont.svg8652
-rw-r--r--public/infcloud/fonts/Roboto-BoldItalic-webfont.ttfbin0 -> 280136 bytes
-rw-r--r--public/infcloud/fonts/Roboto-BoldItalic-webfont.woffbin0 -> 120664 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Italic-webfont.eotbin0 -> 91372 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Italic-webfont.svg8164
-rw-r--r--public/infcloud/fonts/Roboto-Italic-webfont.ttfbin0 -> 281700 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Italic-webfont.woffbin0 -> 120260 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Light-webfont.eotbin0 -> 79718 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Light-webfont.svg8162
-rw-r--r--public/infcloud/fonts/Roboto-Light-webfont.ttfbin0 -> 239772 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Light-webfont.woffbin0 -> 105544 bytes
-rw-r--r--public/infcloud/fonts/Roboto-LightItalic-webfont.eotbin0 -> 92934 bytes
-rw-r--r--public/infcloud/fonts/Roboto-LightItalic-webfont.svg8162
-rw-r--r--public/infcloud/fonts/Roboto-LightItalic-webfont.ttfbin0 -> 294168 bytes
-rw-r--r--public/infcloud/fonts/Roboto-LightItalic-webfont.woffbin0 -> 123428 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Medium-webfont.eotbin0 -> 81472 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Medium-webfont.svg7496
-rw-r--r--public/infcloud/fonts/Roboto-Medium-webfont.ttfbin0 -> 235252 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Medium-webfont.woffbin0 -> 107504 bytes
-rw-r--r--public/infcloud/fonts/Roboto-MediumItalic-webfont.eotbin0 -> 93106 bytes
-rw-r--r--public/infcloud/fonts/Roboto-MediumItalic-webfont.svg8652
-rw-r--r--public/infcloud/fonts/Roboto-MediumItalic-webfont.ttfbin0 -> 284196 bytes
-rw-r--r--public/infcloud/fonts/Roboto-MediumItalic-webfont.woffbin0 -> 121828 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Regular-webfont.eotbin0 -> 79547 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Regular-webfont.svg7606
-rw-r--r--public/infcloud/fonts/Roboto-Regular-webfont.ttfbin0 -> 234464 bytes
-rw-r--r--public/infcloud/fonts/Roboto-Regular-webfont.woffbin0 -> 105700 bytes
-rw-r--r--public/infcloud/fonts/license.txt202
-rw-r--r--public/infcloud/forms.js3307
-rw-r--r--public/infcloud/images/add_cal.svg14
-rw-r--r--public/infcloud/images/add_cal_white.svg14
-rw-r--r--public/infcloud/images/arrow.svg14
-rw-r--r--public/infcloud/images/arrow_next.svg9
-rw-r--r--public/infcloud/images/arrow_next_red.svg9
-rw-r--r--public/infcloud/images/arrow_prev.svg9
-rw-r--r--public/infcloud/images/arrow_prev_red.svg9
-rw-r--r--public/infcloud/images/banner_addressbook.svg33
-rw-r--r--public/infcloud/images/banner_calendar.svg26
-rw-r--r--public/infcloud/images/banner_logout.svg12
-rw-r--r--public/infcloud/images/banner_refresh.svg55
-rw-r--r--public/infcloud/images/banner_todo.svg21
-rw-r--r--public/infcloud/images/calendarB.svg20
-rw-r--r--public/infcloud/images/cdm_logo.svg36
-rw-r--r--public/infcloud/images/cdz_logo.svg49
-rw-r--r--public/infcloud/images/cloud.svg22
-rw-r--r--public/infcloud/images/company.svg45
-rw-r--r--public/infcloud/images/company_s_b.svg19
-rw-r--r--public/infcloud/images/company_s_w.svg19
-rw-r--r--public/infcloud/images/delegation.svg11
-rw-r--r--public/infcloud/images/dp_left.svg14
-rw-r--r--public/infcloud/images/dp_right.svg14
-rw-r--r--public/infcloud/images/drag.svg32
-rw-r--r--public/infcloud/images/error_b.svg18
-rw-r--r--public/infcloud/images/error_badge.svg9
-rw-r--r--public/infcloud/images/error_w.svg18
-rw-r--r--public/infcloud/images/in_progress_b.svg19
-rw-r--r--public/infcloud/images/in_progress_dr.svg19
-rw-r--r--public/infcloud/images/in_progress_r.svg19
-rw-r--r--public/infcloud/images/in_progress_w.svg19
-rw-r--r--public/infcloud/images/infcloud_logo.svg69
-rw-r--r--public/infcloud/images/jumper_bottom_b.svg14
-rw-r--r--public/infcloud/images/jumper_bottom_w.svg13
-rw-r--r--public/infcloud/images/jumper_top_b.svg14
-rw-r--r--public/infcloud/images/jumper_top_w.svg13
-rw-r--r--public/infcloud/images/loadinfo.gifbin0 -> 6462 bytes
-rw-r--r--public/infcloud/images/loadinfo_s1.gifbin0 -> 1985 bytes
-rw-r--r--public/infcloud/images/loadinfo_s2.gifbin0 -> 1987 bytes
-rw-r--r--public/infcloud/images/loadinfo_s3.gifbin0 -> 1992 bytes
-rw-r--r--public/infcloud/images/loadinfo_s4.gifbin0 -> 1981 bytes
-rw-r--r--public/infcloud/images/login.svg11
-rw-r--r--public/infcloud/images/logout.svg13
-rw-r--r--public/infcloud/images/needs_action_b.svg21
-rw-r--r--public/infcloud/images/needs_action_dr.svg21
-rw-r--r--public/infcloud/images/needs_action_r.svg21
-rw-r--r--public/infcloud/images/needs_action_w.svg21
-rw-r--r--public/infcloud/images/new_item.svg15
-rw-r--r--public/infcloud/images/op_add.svg15
-rw-r--r--public/infcloud/images/op_del.svg14
-rw-r--r--public/infcloud/images/popupArrow.svg32
-rw-r--r--public/infcloud/images/priority-1-dr.svg31
-rw-r--r--public/infcloud/images/priority-1-r.svg10
-rw-r--r--public/infcloud/images/priority-1-w.svg10
-rw-r--r--public/infcloud/images/priority-1.svg10
-rw-r--r--public/infcloud/images/priority-2-dr.svg43
-rw-r--r--public/infcloud/images/priority-2-r.svg12
-rw-r--r--public/infcloud/images/priority-2-w.svg12
-rw-r--r--public/infcloud/images/priority-2.svg12
-rw-r--r--public/infcloud/images/priority-3-dr.svg55
-rw-r--r--public/infcloud/images/priority-3-r.svg14
-rw-r--r--public/infcloud/images/priority-3-w.svg14
-rw-r--r--public/infcloud/images/priority-3.svg14
-rw-r--r--public/infcloud/images/read_only_b.svg15
-rw-r--r--public/infcloud/images/read_only_w.svg15
-rw-r--r--public/infcloud/images/remove_cal.svg13
-rw-r--r--public/infcloud/images/remove_cal_white.svg13
-rw-r--r--public/infcloud/images/reset_b.svg15
-rw-r--r--public/infcloud/images/reset_dr.svg15
-rw-r--r--public/infcloud/images/reset_drw.svg15
-rw-r--r--public/infcloud/images/reset_r.svg15
-rw-r--r--public/infcloud/images/reset_rw.svg15
-rw-r--r--public/infcloud/images/reset_w.svg15
-rw-r--r--public/infcloud/images/resource_arrow_down.svg37
-rw-r--r--public/infcloud/images/resource_arrow_right.svg33
-rw-r--r--public/infcloud/images/resource_arrow_up.svg37
-rw-r--r--public/infcloud/images/resources.svg12
-rw-r--r--public/infcloud/images/search.svg9
-rw-r--r--public/infcloud/images/searchWhiteNew.svg11
-rw-r--r--public/infcloud/images/select.svg15
-rw-r--r--public/infcloud/images/select_bg.svg13
-rw-r--r--public/infcloud/images/select_bg_black.svg13
-rw-r--r--public/infcloud/images/select_bg_dis.svg13
-rw-r--r--public/infcloud/images/select_black.svg15
-rw-r--r--public/infcloud/images/select_dis.svg13
-rw-r--r--public/infcloud/images/select_inv.svg15
-rw-r--r--public/infcloud/images/select_login.svg13
-rw-r--r--public/infcloud/images/success_b.svg21
-rw-r--r--public/infcloud/images/success_dr.svg21
-rw-r--r--public/infcloud/images/success_drw.svg21
-rw-r--r--public/infcloud/images/success_r.svg21
-rw-r--r--public/infcloud/images/success_rw.svg21
-rw-r--r--public/infcloud/images/success_w.svg21
-rw-r--r--public/infcloud/images/todoB.svg15
-rw-r--r--public/infcloud/images/user.svg24
-rw-r--r--public/infcloud/index.html1658
-rw-r--r--public/infcloud/interface.js7196
-rw-r--r--public/infcloud/lib/fullcalendar.js7196
-rw-r--r--public/infcloud/lib/ie_base64.js176
-rw-r--r--public/infcloud/lib/jquery-2.1.4.min.js4
-rw-r--r--public/infcloud/lib/jquery-ui-1.11.4.custom.js8226
-rw-r--r--public/infcloud/lib/jquery.autosize.js258
-rw-r--r--public/infcloud/lib/jquery.browser.js43
-rw-r--r--public/infcloud/lib/jquery.placeholder-1.1.9.js195
-rw-r--r--public/infcloud/lib/jquery.quicksearch.js205
-rw-r--r--public/infcloud/lib/jquery.tagsinput.js436
-rw-r--r--public/infcloud/lib/jshash-2.2_sha256.js337
-rw-r--r--public/infcloud/lib/rrule.js1910
-rw-r--r--public/infcloud/lib/spectrum.js2027
-rw-r--r--public/infcloud/license.txt661
-rw-r--r--public/infcloud/localization.js10673
-rw-r--r--public/infcloud/main.js2331
-rw-r--r--public/infcloud/misc/baikal-flat-0.2.7.diff35
-rw-r--r--public/infcloud/misc/calendarserver.diff70
-rw-r--r--public/infcloud/misc/config_davical.txt24
-rw-r--r--public/infcloud/misc/readme_baikal_sabredav.txt41
-rw-r--r--public/infcloud/misc/readme_osx.txt40
-rw-r--r--public/infcloud/readme.txt132
-rw-r--r--public/infcloud/resource.js1449
-rw-r--r--public/infcloud/timezones.js27081
-rw-r--r--public/infcloud/vcalendar.js353
-rw-r--r--public/infcloud/vcalendar_rfc_regex.js538
-rw-r--r--public/infcloud/vcard_rfc_regex.js288
-rw-r--r--public/infcloud/vtodo.js3531
-rw-r--r--public/infcloud/webdav_protocol.js4948
187 files changed, 172385 insertions, 0 deletions
diff --git a/public/infcloud/.htaccess b/public/infcloud/.htaccess
new file mode 100644
index 0000000..b8583d1
--- /dev/null
+++ b/public/infcloud/.htaccess
@@ -0,0 +1,35 @@
+#########################################################################################################################
+# Apache configuration (REQUIRED for correct HTML5 cache functionality in browsers):
+# 1.) You NEED to enable the following Apache modules: mod_mime, mod_headers (optionally you can also enable mod_deflate)
+# 2.) You NEED to add the following lines into your Apache vhost configuration (without the # character):
+# <Directory /client/installation/directory/>
+# AllowOverride FileInfo Limit
+# <IfVersion >= 2.3>
+# Require all granted
+# </IfVersion>
+# <IfVersion < 2.3>
+# Order allow,deny
+# Allow from all
+# </IfVersion>
+# </Directory>
+#########################################################################################################################
+
+# Add "Content-Type: text/cache-manifest" header for .manifest files
+<IfModule mod_mime.c>
+ AddType text/cache-manifest .manifest
+</IfModule>
+
+# Add "Cache-Control: max-age=0, must-revalidate, no-cache, no-transform, private" header for all files
+# for more information see: https://tools.ietf.org/html/rfc7234
+<IfModule mod_headers.c>
+ Header set Cache-Control "max-age=0, must-revalidate, no-cache, no-transform, private"
+</IfModule>
+
+<IfModule mod_deflate.c>
+ SetOutputFilter DEFLATE
+</IfModule>
+
+# If you use mod_cache set the correct path for the cache.manifest here
+#<IfModule mod_cache.c>
+# CacheDisable cache.manifest
+#</IfModule>
diff --git a/public/infcloud/addressbook.js b/public/infcloud/addressbook.js
new file mode 100644
index 0000000..fcde7ef
--- /dev/null
+++ b/public/infcloud/addressbook.js
@@ -0,0 +1,1714 @@
+/*
+InfCloud - the open source CalDAV/CardDAV Web Client
+Copyright (C) 2011-2015
+ Jan Mate <jan.mate@inf-it.com>
+ Andrej Lezo <andrej.lezo@inf-it.com>
+ Matej Mihalik <matej.mihalik@inf-it.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+// AddressbookList Class
+function AddressbookList()
+{
+ this.contacts=new Array();
+ this.contacts_hash=new Object();
+ this.contacts_hash_uidattr=new Object();
+ this.companies=new Array();
+ this.companies_hash=new Object();
+ this.companies_hash_uidattr=new Object();
+ this.vcard_groups=new Object();
+ this.contact_categories=new Object();
+ this.contact_companies=new Object();
+ this.contactLoaded=null;
+ this.contactToReload=null;
+ this.vcardGroupLoaded=null;
+
+ this.reset=function()
+ {
+ this.contacts.splice(0,this.contacts.length);
+ this.contacts_hash=new Object();
+ this.contacts_hash_uidattr=new Object();
+ this.companies.splice(0,this.companies.length);
+ this.companies_hash=new Object();
+ this.companies_hash_uidattr=new Object();
+ this.vcard_groups=new Object(); // these are not removed from the interface (it's OK)
+ this.contact_categories=new Object();
+ this.contact_companies=new Object();
+ this.contactLoaded=null;
+ this.contactToReload=null;
+ this.vcardGroupLoaded=null;
+ };
+
+ this.getNewUID=function()
+ {
+ // we count with uniqueness of generated hash string
+ var newUID=null;
+ newUID=generateUID();
+ return newUID;
+ };
+
+ this.getLoadedContactUID=function()
+ {
+ if(this.contactLoaded!=null)
+ return this.contactLoaded.uid;
+ else
+ return '';
+ };
+
+ this.getSortKey=function(inputContact, inputSettings, inputMode) // inputMode (0=sort, 1=display)
+ {
+ var vcard_element=('\r\n'+inputContact.vcard).match(vCard.pre['contentline_N']);
+ if(vcard_element===null || vcard_element.length!==1) // if the N attribute is not present exactly once, vCard is considered invalid
+ return false;
+
+ var sortKeyCompanyPart='';
+ if(typeof (getCRMSortKey)== 'function' && inputMode==0)
+ {
+ sortKeyCompanyPart=getCRMSortKey(inputContact);
+ if(inputContact.isCompany!=undefined && inputContact.isCompany)
+ return sortKeyCompanyPart; // for company contact we can return here
+ }
+ else if(typeof globalGroupContactsByCompanies!='undefined' && globalGroupContactsByCompanies==true)
+ {
+ var sortKeyCompanyPart='\u0009';
+ var vcard_orgname=('\r\n'+inputContact.vcard).match(vCard.pre['contentline_ORG']);
+ if(vcard_orgname!=null && vcard_orgname.length>0) // if more than one ORG is present, use the first one
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ var parsed=vcard_orgname[0].match(vCard.pre['contentline_parse']);
+ var parsed_value=vcardSplitValue(parsed[4], ';');
+
+ sortKeyCompanyPart=parsed_value[0]+'\u0009'+(parsed_value[1]!=undefined ? parsed_value[1] : '')+'\u0009';
+
+ if(inputMode==0 && inputContact.isCompany!=undefined && inputContact.isCompany)
+ return sortKeyCompanyPart; // for company contact we can return here
+ }
+ }
+
+ var tmp = [];
+ var isGroup = this.isContactGroup(inputContact.vcard);
+ /* backward compatibility for stupid users (remove it in future) */
+ if(typeof inputSettings==='string')
+ tmp = inputSettings.replace(RegExp(',','g'), ', ').split(',');
+ else if($.isArray(inputSettings)) /* new configuration options (arrays) */
+ tmp = inputSettings.slice(); // copy the configuration array
+
+ // display settings for non-group contacts need some flattening
+ if(inputMode===1 && !isGroup) {
+ tmp = $.map(tmp, function(el) {
+ if($.isPlainObject(el.value)) {
+ return el.value;
+ }
+ else {
+ return [el.value];
+ }
+
+ });
+ }
+
+ // now flatten the array completely to a company / personal version
+ tmp = $.map(tmp, function(el) {
+ if($.isPlainObject(el)) {
+ if(inputContact.isCompany && el.hasOwnProperty('company')) {
+ return [el.company];
+ }
+ else if(!inputContact.isCompany && el.hasOwnProperty('personal')) {
+ return [el.personal];
+ }
+
+ return [];
+ }
+
+ return [el];
+ });
+
+ for(var i=0; i<tmp.length; i++) {
+ tmp[i] = getContactDataColumn(inputContact, tmp[i]);
+ }
+
+ sort_value = tmp.join(' ').trim();
+
+ if(sort_value==='' && isGroup) // if we didn't get a proper sort value for group contacts, use FN
+ {
+ var vcard_element2=('\r\n'+inputContact.vcard).match(vCard.pre['contentline_FN']);
+ if(vcard_element2!=null && vcard_element2.length==1) // if the FN attribute is not present exactly once, vCard is considered invalid
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ var parsed=vcard_element2[0].match(vCard.pre['contentline_parse']);
+ var sort_value=parsed[4];
+ }
+ }
+
+ return (inputMode===0 ? sortKeyCompanyPart+sort_value : sort_value);
+ };
+
+ this.isContactGroup=function(inputVcard)
+ {
+ var vcard_element=null;
+ if((vcard_element=('\r\n'+inputVcard).match(vCard.pre['X-ADDRESSBOOKSERVER-KIND']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ var parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ if(parsed[4].toLowerCase()=='group')
+ return true;
+ }
+ return false;
+ };
+
+ this.getMyContactGroups=function(inputUid)
+ {
+ if(this.contacts_hash[inputUid]!=undefined)
+ {
+ var myContactGroups=new Array();
+
+ if((vcard_element=this.contacts_hash[inputUid].vcard.match(vCard.pre['contentline_UID']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ for(var j=0;j<this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')].length;j++)
+ {
+ if(this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][j].vcard.match(RegExp('\r\nX-ADDRESSBOOKSERVER-MEMBER:urn:uuid:'+parsed[4]+'\r\n','mi')))
+ myContactGroups[myContactGroups.length]=this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][j].uid;
+ }
+ }
+ return myContactGroups;
+ }
+ else
+ return null;
+ };
+
+ this.getRemoveMeFromContactGroups=function(inputUid, inputContactGroupsUidArr)
+ {
+ if(this.contacts_hash[inputUid]!=undefined)
+ {
+ var changedContactGroups=new Array();
+
+ if((vcard_element=this.contacts_hash[inputUid].vcard.match(vCard.pre['contentline_UID']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ for(var j=0;j<this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')].length;j++)
+ {
+ if(inputContactGroupsUidArr!=null)
+ {
+ var skipThis=true;
+ for(var k=0;k<inputContactGroupsUidArr.length;k++)
+ if(inputContactGroupsUidArr[k]==this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][j].uid)
+ {
+ skipThis=false;
+ break;
+ }
+
+ if(skipThis==true)
+ continue;
+ }
+
+ var vcard=this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][j].vcard;
+
+ var changedVcard=null;
+ if(vcard!=(changedVcard=vcard.replaceAll('\r\nX-ADDRESSBOOKSERVER-MEMBER:urn:uuid:'+parsed[4]+'\r\n','\r\n')))
+ {
+ // update the revision in the group vcard
+ var d = new Date();
+ utc=d.getUTCFullYear()+(d.getUTCMonth()+1<10 ? '0':'')+(d.getUTCMonth()+1)+(d.getUTCDate()<10 ? '0':'')+d.getUTCDate()+'T'+(d.getUTCHours()<10 ? '0':'')+d.getUTCHours()+(d.getUTCMinutes()<10 ? '0':'')+d.getUTCMinutes()+(d.getUTCSeconds()<10 ? '0':'')+d.getUTCSeconds()+'Z';
+ changedVcard=changedVcard.replace(RegExp('\r\nREV:.*\r\n','mi'),'\r\nREV:'+utc+'\r\n');
+
+ // "copy" of the original object
+ changedContactGroups[changedContactGroups.length]=$.extend({},this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][j]);
+ // new modified vcard group
+ changedContactGroups[changedContactGroups.length-1].vcard=changedVcard;
+ }
+ }
+ }
+ return changedContactGroups;
+ }
+ else
+ return null;
+ };
+
+ this.getAddMeToContactGroups=function(inputContactObj, inputContactGroupsUidArr)
+ {
+ if(!(inputContactGroupsUidArr instanceof Array))
+ inputContactGroupsUidArr=[inputContactGroupsUidArr];
+
+ vcard_element=inputContactObj.vcard.match(vCard.pre['contentline_UID']);
+
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ var changedContactGroups=new Array();
+
+ for(var j=0;j<this.vcard_groups[inputContactObj.uid.replace(RegExp('/[^/]*$',''),'/')].length;j++)
+ for(var k=0;k<inputContactGroupsUidArr.length;k++)
+ if(this.vcard_groups[inputContactObj.uid.replace(RegExp('/[^/]*$',''),'/')][j].uid==inputContactGroupsUidArr[k])
+ {
+ // if the uuid is already a member we remove it from contact-group to avoid duplicate membership
+ var vcard=this.vcard_groups[inputContactObj.uid.replace(RegExp('/[^/]*$',''),'/')][j].vcard.replaceAll('\r\nX-ADDRESSBOOKSERVER-MEMBER:urn:uuid:'+parsed[4]+'\r\n','\r\n');
+ var tmp=vcard.split('\r\n');
+ tmp.splice(tmp.length-2,0,'X-ADDRESSBOOKSERVER-MEMBER:urn:uuid:'+parsed[4]);
+ var changedVcard=tmp.join('\r\n');
+
+ var d = new Date();
+ utc=d.getUTCFullYear()+(d.getUTCMonth()+1<10 ? '0':'')+(d.getUTCMonth()+1)+(d.getUTCDate()<10 ? '0':'')+d.getUTCDate()+'T'+(d.getUTCHours()<10 ? '0':'')+d.getUTCHours()+(d.getUTCMinutes()<10 ? '0':'')+d.getUTCMinutes()+(d.getUTCSeconds()<10 ? '0':'')+d.getUTCSeconds()+'Z';
+ changedVcard=changedVcard.replace(RegExp('\r\nREV:.*\r\n','mi'),'\r\nREV:'+utc+'\r\n');
+
+ // "copy" of the original object
+ changedContactGroups[changedContactGroups.length]=$.extend({},this.vcard_groups[inputContactObj.uid.replace(RegExp('/[^/]*$',''),'/')][j]);
+ // new modified vcard group (normalisation is added to fix basic errors in invalid vCard)
+ changedContactGroups[changedContactGroups.length-1].vcard=normalizeVcard(changedVcard);
+ }
+ return changedContactGroups;
+ };
+
+ // Contact group list is not sorted, instead "insert sort" is performed
+ this.insertContactGroup=function(inputContact, forceReload, forceReinsert)
+ {
+ if((inputContact.sortkey=this.getSortKey(inputContact, [['{LastName}']], 0))===false || (inputContact.displayvalue=this.getSortKey(inputContact, [['{LastName}']], 1))===false)
+ return false; //invalid vcard
+
+ var makeActive=null;
+ var makeChecked=null;
+
+ // do not insert entry with duplicate UID
+ for(var i=0;i<this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')].length;i++)
+ if(this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')][i].uid==inputContact.uid)
+ {
+ if(forceReinsert==false && this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')][i].displayvalue==inputContact.displayvalue)
+ {
+ this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')][i]=inputContact;
+ return 0;
+ }
+ else
+ {
+ if($('#ResourceCardDAVList').find('[data-id='+jqueryEscapeSelector(inputContact.uid)+']').hasClass('resourceCardDAV_selected'))
+ makeActive=inputContact.uid;
+
+ if(dataGetChecked('#ResourceCardDAVList').indexOf(inputContact.uid)!=-1 || dataGetChecked('#ResourceCardDAVList').indexOf(inputContact.uid.replace(RegExp('/[^/]*$',''),'/'))!=-1)
+ makeChecked=inputContact.uid;
+
+ // the contact group name is changed and must be moved to correct place (we first remove it and then reinsert)
+ this.removeContactGroup(inputContact.uid, false);
+ break;
+ }
+ }
+
+ // find the index where to insert the new contact group
+
+ var insertIndex=this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')].length;
+ for(var i=0;i<this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')].length;i++)
+ if(this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')][i].sortkey.customCompare(inputContact.sortkey,globalSortAlphabet,1,false)==1)
+ {
+ insertIndex=i;
+ break;
+ }
+
+ // insert the contact group
+ this.vcard_groups[inputContact.uid.replace(RegExp('/[^/]*$',''),'/')].splice(insertIndex, 0, inputContact);
+
+ // insert the contact group to interface
+ var newElement=globalTranslCardDAVListItem.find('.contact_group').find('.group').clone();
+ // the onclick event is disabled until the last drag&drop operation is completed
+ newElement.click(function(e){
+ if(globalAddressbookCollectionsLoading)
+ return true;
+ if(e.shiftKey) {
+ var uid = $(this).attr('data-id');
+ $('#ResourceCardDAVList').find('.resourceCardDAV:visible').children('input[type="checkbox"]').each(function(){
+ var currentUid = $(this).attr('data-id');
+ $(this).prop({'checked':false, 'indeterminate':false}).attr('data-ind', 'true');
+ collectionChBoxClick(this, '#ResourceCardDAVList', '.resourceCardDAV_header', '.resourceCardDAV', '.contact_group', false);
+ });
+ var checkbox = $(this).children('input[type="checkbox"]');
+ checkbox.prop({'checked':true, 'indeterminate':false});
+ groupChBoxClick(checkbox.get(0), '#ResourceCardDAVList', '.resourceCardDAV_header', '.resourceCardDAV', '.contact_group', false);
+ globalAddressbookList.applyABFilter([uid], false);
+ }
+ globalResourceCardDAVList.resourceOrGroupClick(this.getAttribute('data-id'));
+ });
+ newElement.attr('data-id',inputContact.uid);
+ newElement.find('.resourceCardDAVGroupColor').css('background-color', inputContact.color);
+
+ // note: we need to check the group if the parent collection is checked (and we need to use .attr() instead of .prop() because the element is not in the DOM)
+ var tmp_check=false;
+ if($('#ResourceCardDAVList').find('[data-id='+jqueryEscapeSelector(inputContact.uid.replace(RegExp('[^/]*$',''),''))+']').find('input[type=checkbox]').prop('checked')==true && $('#ResourceCardDAVList').find('[data-id='+jqueryEscapeSelector(inputContact.uid.replace(RegExp('[^/]*$',''),''))+']').find('input[type=checkbox]').prop('indeterminate')==false)
+ tmp_check=true;
+ newElement.find('input[type=checkbox]').attr('checked', tmp_check).attr({'data-id': inputContact.uid, 'onclick': 'var evt=arguments[0]; evt.stopPropagation(); if($(this).parents(\':eq(2)\').find(\'[class^="r_"]\').length>0) return false; else globalAddressbookList.applyABFilter(groupChBoxClick(this, \'#ResourceCardDAVList\', \'.resourceCardDAV_header\', \'.resourceCardDAV\', \'.contact_group\', true), false);'});
+
+ newElement.append(vcardUnescapeValue(inputContact.displayvalue));
+ newElement.css('display','');
+ if($('#ResourceCardDAVList').find('[data-id="'+jqueryEscapeSelector(inputContact.uid.replace(RegExp('/[^/]*$',''),'/'))+'"]').next('.contact_group').find('[data-id="'+jqueryEscapeSelector(inputContact.uid)+'"]').length==0)
+ $('#ResourceCardDAVList').find('[data-id="'+jqueryEscapeSelector(inputContact.uid.replace(RegExp('/[^/]*$',''),'/'))+'"]').next('.contact_group').children().eq(insertIndex).after(newElement);
+
+ // make the area droppable if the collection is not read-only
+ if(globalResourceCardDAVList.getCollectionPrivByUID(inputContact.uid.replace(RegExp('[^/]*$',''),''))==false && (typeof globalDisableDragAndDrop=='undefined' || globalDisableDragAndDrop!=true))
+ $('#ResourceCardDAVList').find('[data-id="'+jqueryEscapeSelector(inputContact.uid.replace(RegExp('[^/]*$',''),''))+'"]').parent().find('.contact_group').children().eq(insertIndex+1).droppable({
+ accept: '.ablist_item',
+ tolerance: 'pointer',
+ hoverClass: 'group_dropped_to',
+ drop: function(event, ui){
+ // animate the clone of the dropped (draggable) element
+ var tmp=ui.helper.clone();
+ tmp.appendTo('body')
+ .animate({opacity: 0, color: 'transparent', height: 0, width: 0, fontSize: 0, lineHeight: 0, paddingLeft: 0, paddingRight: 0},750,function(){tmp.remove()});
+
+ // disallow to drag the original dropped element until the processing is finished
+ ui.draggable.draggable('option', 'disabled', true);
+
+ // animate the original dropped element
+ ui.draggable.animate({opacity: 0.3}, 750);
+
+ // disallow to drop any new element until the processing is finished
+ $(this).droppable('option', 'disabled', true);
+
+ // show the loader icon
+ $(this).addClass('r_operate');
+
+ var tmp2=globalAddressbookList.getContactByUID(ui.draggable.attr('data-id'));
+ tmp2.addToContactGroupUID='';
+ tmp2.removeToContactGroupUID=new Array();
+ tmp2.addToContactGroupUID=$(this).attr('data-id');
+ tmp2.uiObjects={contact: ui.draggable, resource: $(this).attr('data-id')};
+
+ lockAndPerformToCollection(tmp2, globalRefAddContact.attr('data-filter-url'), 'ADD_TO_GROUP');
+ }
+ });
+
+ // if no new makeActive but forceReload is true then reload the current contact group
+ if(makeActive==null && forceReload==true)
+ makeActive=globalRefAddContact.attr('data-filter-url');
+
+ // load the contact group if it was selected
+ if(makeActive!=null)
+ {
+ $('#ResourceCardDAVList').find('.resourceCardDAV_item').find('.resourceCardDAV_selected').removeClass('resourceCardDAV_selected');
+ $('#ResourceCardDAVList').find('[data-id='+jqueryEscapeSelector(makeActive.replace(RegExp('[^/]*$',''),''))+']').addClass('resourceCardDAV_selected');
+ $('#ResourceCardDAVList').find('[data-id='+jqueryEscapeSelector(makeActive)+']').addClass('resourceCardDAV_selected');
+ }
+ if(makeChecked!=null)
+ {
+ $('#ResourceCardDAVList').find('[data-id='+jqueryEscapeSelector(makeChecked)+']').find('input[type=checkbox]').prop('checked',true);
+ this.applyABFilter(dataGetChecked('#ResourceCardDAVList'), false);
+ }
+ };
+
+ this.removeContactGroup=function(inputUid, loadNext)
+ {
+ for(var i=this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')].length-1;i>=0;i--)
+ if(this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][i].uid==inputUid)
+ {
+ var uidRemoved=this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][i].uid;
+ var item=$('#ResourceCardDAVList').find('[data-id^="'+jqueryEscapeSelector(this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')][i].uid)+'"]');
+
+ // remove the item
+ item.remove();
+ this.vcard_groups[inputUid.replace(RegExp('/[^/]*$',''),'/')].splice(i,1);
+
+// vcardGroupLoaded bolo zrusene, pozriet co s tym
+ if(loadNext && this.vcardGroupLoaded!=null && this.vcardGroupLoaded.uid==inputUid)
+ {
+ this.vcardGroupLoaded=null;
+
+ // set the whole collection as active
+ var tmp=uidRemoved.match(RegExp('(^.*/)'),'');
+// XXX it is no longer needed
+// globalResourceCardDAVList.loadAddressbookByUID(tmp[1]);
+ }
+ break;
+ }
+ };
+
+ // hide/show contacts in the interface according to contactGroupOrResourceUid or search filter in the interface (contactGroupOrResourceUid==false)
+ this.applyABFilter=function(contactGroupOrResourceUid, inputForceLoadNext)
+ {
+ if(globalCardDAVInitLoad)
+ return false;
+
+// XXX docasne, potom dame prec
+ if(!(contactGroupOrResourceUid instanceof Array))
+ return false;
+
+ var vcardGroupOrCollection=[];
+ for(var i=0;i<contactGroupOrResourceUid.length;i++)
+ {
+ if(contactGroupOrResourceUid[i][contactGroupOrResourceUid[i].length-1]=='/')
+ vcardGroupOrCollection.push({uid: contactGroupOrResourceUid[i]});
+ else // remember the loaded contact group
+ {
+ // required only if we want so support collection unloading
+
+ for(var j=0;j<this.vcard_groups[contactGroupOrResourceUid[i].replace(RegExp('/[^/]*$',''),'/')].length;j++)
+ if(this.vcard_groups[contactGroupOrResourceUid[i].replace(RegExp('/[^/]*$',''),'/')][j].uid==contactGroupOrResourceUid[i])
+ {
+// vcardGroupLoaded bolo zrusene, pozriet co s tym
+// vcardGroupOrCollection=this.vcardGroupLoaded=this.vcard_groups[contactGroupOrResourceUid.replace(RegExp('/[^/]*$',''),'/')][j];
+ vcardGroupOrCollection.push(this.vcard_groups[contactGroupOrResourceUid[i].replace(RegExp('/[^/]*$',''),'/')][j]);
+ }
+ }
+ }
+
+ var previousActiveIndex=null; // used to find the nearest contact and set it as selected
+
+ if(this.contactLoaded!=null)
+ var previousActiveUID=this.contactLoaded.uid;
+
+ // set all contacts as inactive
+ for(var i=0;i<this.contacts.length;i++)
+ if(this.contacts[i].headerOnly==undefined)
+ {
+ if(this.contacts[i].uid==previousActiveUID)
+ previousActiveIndex=i;
+
+ this.contacts_hash[this.contacts[i].uid].show=false
+ this.contacts[i].show=false; // XXX zmenit s5 na false
+ }
+
+ for(var i=0;i<vcardGroupOrCollection.length;i++)
+ {
+ if((vcard=vcardGroupOrCollection[i].vcard)==undefined) // collection
+ {
+ for(var j=0;j<this.contacts.length;j++)
+ if(this.contacts[j].headerOnly==undefined)
+ {
+ if(this.contacts[j].uid.indexOf(vcardGroupOrCollection[i].uid)==0 && this.contacts[j].search_hide==false)
+ {
+ this.contacts[j].show=true;
+ this.contacts_hash[this.contacts[j].uid].show=true
+ }
+ }
+ }
+ else // vcard group
+ {
+ var vcardUIDList=new Array();
+ // get the members of the array group
+ while((vcard_element=vcard.match(vCard.pre['X-ADDRESSBOOKSERVER-MEMBER']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ vcardUIDList[vcardUIDList.length]=parsed[4].replace('urn:uuid:','');
+ // remove the processed parameter
+ vcard=vcard.replace(vcard_element[0],'\r\n');
+ }
+
+ // update the contacts' "show" attribute
+ for(var j=0;j<vcardUIDList.length;j++)
+ for(var k=0;k<this.contacts.length;k++)
+ if(this.contacts[k].headerOnly==undefined)
+ {
+ vcard_element=this.contacts[k].vcard.match(vCard.pre['contentline_UID']);
+
+ if(vcard_element!=null) // only for contacts with UID (non-RFC contacts not contains UID)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(vcardUIDList[j]==parsed[4] && this.contacts[k].search_hide==false)
+ {
+ this.contacts[k].show=true;
+ this.contacts_hash[this.contacts[k].uid].show=true
+ }
+ }
+ }
+ }
+ }
+
+ var lastActive=null;
+ var prevHeader=null;
+ var lastContactForHeader=this.contacts.length-1;
+ // performance
+ var tmpListRefChildren=globalRefABListTable.children();
+ // init displayed columns text length cache
+ var columnLengths = [];
+ for(var i=0; i<getDataColumnCount(); i++) {
+ columnLengths.push([]);
+ }
+
+ // the show attribute is now set, we can make changes in the interface
+ for(var i=this.contacts.length-1;i>=0;i--)
+ {
+ if(this.contacts[i].headerOnly==undefined)
+ {
+ // find the previous header index
+ for(var j=i-1;j>=0;j--)
+ if(this.contacts[j].headerOnly!=undefined && this.contacts[j].headerOnly==true)
+ {
+ prevHeader=j;
+ break;
+ }
+
+ // performance
+ var tmpListRefChildren_i=tmpListRefChildren.eq(i);
+ var tmpListRefChildren_prev=tmpListRefChildren.eq(prevHeader);
+
+ var coll_tmp=this.contacts[i].uid.match(RegExp('^(https?://)([^@/]+(?:@[^@/]+)?)@([^/]+)(.*/)([^/]+/)([^/]*)','i'));
+ var collection_uid=coll_tmp[1]+coll_tmp[2]+'@'+coll_tmp[3]+coll_tmp[4]+coll_tmp[5];
+ var coll_color=globalResourceCardDAVList.getCollectionByUID(collection_uid).color;
+ this.contacts[i].color = coll_color;
+ tmpListRefChildren_i.find('.ablist_item_color').css('background-color', coll_color);
+ switch(this.contacts[i].show)
+ {
+ case false:
+ tmpListRefChildren_i.css('display','none');
+ if(tmpListRefChildren_i.hasClass('ablist_item_selected'))
+ lastActive=i;
+
+ var hideHeader=true;
+ for(j=prevHeader+1;j<=lastContactForHeader;j++)
+ if(this.contacts[j].show==true)
+ {
+ hideHeader=false;
+ break;
+ }
+
+ if(hideHeader)
+ tmpListRefChildren_prev.css('display','none');
+
+ break;
+ case true:
+ // set the contact header to visible
+ tmpListRefChildren_prev.css('display','');
+
+ // set the contact to visible
+ tmpListRefChildren_i.css('display','');
+
+ // save column text length into cache
+ tmpListRefChildren_i.children().slice(globalFixedContactDataColumnsCount).each(function(ind) {
+ columnLengths[ind].push($(this).text().length);
+ });
+
+ break;
+ default:
+ break;
+ }
+ }
+ else
+ lastContactForHeader=i-1;
+ }
+
+ setDataColumnsWidth(columnLengths);
+
+ // the previously loaded contact is hidden or not exists we need to select a new one
+ if(inputForceLoadNext==true || $('#vCardEditor').attr('data-editor-state')!='edit' && (lastActive!=null || globalRefABListTable.children('.ablist_item_selected').length==0))
+ {
+ var nextCandidateToLoad=null;
+ // get the nearest candidate to load
+ // if we can go forward
+ if(this.contactToReload!=null)
+ nextCandidateToLoad=this.contactToReload;
+ else
+ {
+ for(j=(previousActiveIndex==null ? 0 : previousActiveIndex);j<this.contacts.length;j++)
+ if((this.contacts[j].headerOnly==undefined || this.contacts[j].headerOnly==false) && (this.contacts[j].show==true))
+ {
+ nextCandidateToLoad=this.contacts[j];
+ break;
+ }
+ // we must go backwards
+ if(nextCandidateToLoad==null && previousActiveIndex!=null)
+ {
+ for(j=previousActiveIndex-1;j>=0;j--)
+ if((this.contacts[j].headerOnly==undefined || this.contacts[j].headerOnly==false) && (this.contacts[j].show==true))
+ {
+ nextCandidateToLoad=this.contacts[j];
+ break;
+ }
+ }
+ }
+ // make the contact active
+ globalRefABListTable.children('.ablist_item.ablist_item_selected').removeClass('ablist_item_selected');
+ if(nextCandidateToLoad!=null)
+ {
+ // prevent re-loading the contact if it is already loaded
+ if((this.contactToReload!=null||$('#vCardEditor').attr('data-url')!=nextCandidateToLoad.uid) && !globalCardDAVInitLoad)
+ {
+ this.loadContactByUID(nextCandidateToLoad.uid);
+ }
+ else // because the collection click unselects the active contact we need to re-select it
+ {
+ // Make the selected contact active
+ globalRefABListTable.children('.ablist_item.ablist_item_selected').removeClass('ablist_item_selected');
+ globalRefABListTable.children('[data-id='+jqueryEscapeSelector(nextCandidateToLoad.uid)+']').addClass('ablist_item_selected');
+ }
+ // move scrollbar to ensure that the contact is visible in the interface
+ if((selected_contact=globalRefABListTable.children('.ablist_item_selected')).length==1)
+ globalRefABList.scrollTop(globalRefABList.scrollTop()+selected_contact.offset().top-globalRefABList.offset().top-globalRefABList.height()*globalKBNavigationPaddingRate);
+ }
+ else
+ {
+ this.contactLoaded=null;
+ $('#ABContactColor').css('background-color', '');
+ $('#ABContact').html('');
+ }
+ }
+ if(this.contactToReload!=null&& (selected_contact=globalRefABListTable.find('[data-id="'+this.contactToReload.uid+'"]')).length==1)
+ {
+ selected_contact.addClass('ablist_item_selected');
+ globalRefABList.scrollTop(globalRefABList.scrollTop()+selected_contact.offset().top-globalRefABList.offset().top-globalRefABList.height()*globalKBNavigationPaddingRate);
+
+ }
+ }
+
+ this.getABCategories=function(returnSorted)
+ {
+ var categoriesArr=[];
+
+ for(var category in this.contact_categories)
+ categoriesArr.push(category);
+
+ if(returnSorted)
+ return categoriesArr.sort(function(x,y){return x.customCompare(y,globalSortAlphabet,1,false)});
+ else
+ return categoriesArr;
+ }
+
+ this.getABCompanies=function(returnSorted)
+ {
+ var companiesArr=[];
+
+ for(var company in this.contact_companies)
+ companiesArr.push(company);
+
+ if(returnSorted)
+ return companiesArr.sort(function(x,y){return x.customCompare(y,globalSortAlphabet,1,false)});
+ else
+ return companiesArr;
+ }
+
+ this.getABCompanyDepartments=function(inputCompany)
+ {
+ var departmentsArr=[];
+
+ if(this.contact_companies[inputCompany]!=undefined)
+ departmentsArr=this.contact_companies[inputCompany].departments.slice();
+
+ return departmentsArr.sort(function(x,y){return x.customCompare(y,globalSortAlphabet,1,false)});
+ }
+
+ // Contact list is not sorted, instead "insert sort" is performed
+ this.insertContact=function(inputContact, forceReload, disableDOM)
+ {
+ // Apple "group" vCards
+ if(this.isContactGroup(inputContact.vcard))
+ return this.insertContactGroup(inputContact, forceReload, false);
+
+ // check for company contact
+ inputContact.isCompany=false;
+ var vcard_element=inputContact.vcard.match(vCard.pre['X-ABShowAs']);
+ if(vcard_element!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ if(vcardUnescapeValue(parsed[4]).match(RegExp('^company$','i')))
+ inputContact.isCompany=true;
+ }
+
+ // check for company contact
+ if((typeof globalContactsExtVcardToData)=='function')
+ {
+ inputContact.isLegacy=false;
+ var vcard_element=inputContact.vcard.match(RegExp('\r\nX-IsLegacy:.*\r\n', 'mi'));
+ if(vcard_element!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ var parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ if(vcardUnescapeValue(parsed[4]).match(RegExp('^(?:yes|1|true)$', 'i')))
+ inputContact.isLegacy=true;
+ }
+ }
+
+ // contact UID attr
+ var vcard_element=inputContact.vcard.match(vCard.pre['contentline_UID']);
+ if(vcard_element!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ inputContact.uidattr=vcardUnescapeValue(parsed[4]);
+ }
+ else // UID attr is REQUIRED
+ return false; // invalud vcard
+
+ var this_destination=this.contacts;
+ var this_destination_hash=this.contacts_hash;
+ var this_destination_hash_uidattr=this.contacts_hash_uidattr;
+
+ // search plugin requirement
+ inputContact.search_hide=false;
+
+ // CATEGORIES suggestion
+ var categoriesArr=(inputContact.categories=='' ? [] : vcardSplitValue(inputContact.categories,','));
+ var allCategoriesArr=this.getABCategories(false);
+
+ // The search funcionality uses this ASCII value (you can add additional data here)
+
+ // ORG attribute
+ var tmp=inputContact.vcard;
+ var orgArr=[];
+ var depArr=[];
+ var tmpCurrentCompany='';
+ var tmpCurrentDepartment='';
+ while((vcard_element=tmp.match(vCard.pre['contentline_ORG']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ var parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ var parsed_valArr=vcardSplitValue(parsed[4], ';');
+
+ if(isDataColumnDefined('COMPANY')) {
+ setContactDataColumn(inputContact, 'COMPANY', vcardUnescapeValue(parsed_valArr[0]));
+ }
+
+ if(isDataColumnDefined('DEPARTMENT')) {
+ setContactDataColumn(inputContact, 'DEPARTMENT', vcardUnescapeValue(parsed_valArr[1]));
+ }
+
+ tmpCurrentCompany=(parsed_valArr[0]==undefined || parsed_valArr[0]=='' ? '' : parsed_valArr[0]);
+ tmpCurrentDepartment=(parsed_valArr[1]==undefined || parsed_valArr[1]=='' ? '' : parsed_valArr[1]);
+
+ if(tmpCurrentCompany!='')
+ orgArr[orgArr.length]=vcardUnescapeValue(tmpCurrentCompany);
+
+ if(tmpCurrentDepartment)
+ depArr[depArr.length]=vcardUnescapeValue(tmpCurrentDepartment);
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+ var allOrgArr=this.getABCompanies(false);
+
+ // N attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_N']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ var parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ var parsed_valArr=vcardSplitValue(parsed[4],';');
+
+ if(isDataColumnDefined('LASTNAME')) {
+ setContactDataColumn(inputContact, 'LASTNAME', vcardUnescapeValue(parsed_valArr[0]));
+ }
+
+ if(isDataColumnDefined('FIRSTNAME')) {
+ setContactDataColumn(inputContact, 'FIRSTNAME', vcardUnescapeValue(parsed_valArr[1]));
+ }
+
+ if(isDataColumnDefined('MIDDLENAME')) {
+ setContactDataColumn(inputContact, 'MIDDLENAME', vcardUnescapeValue(parsed_valArr[2]));
+ }
+
+ if(isDataColumnDefined('PREFIX')) {
+ setContactDataColumn(inputContact, 'PREFIX', vcardUnescapeValue(parsed_valArr[3]));
+ }
+
+ if(isDataColumnDefined('SUFFIX')) {
+ setContactDataColumn(inputContact, 'SUFFIX', vcardUnescapeValue(parsed_valArr[4]));
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // NICKNAME attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_NICKNAME']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('NICKNAME')) {
+ setContactDataColumn(inputContact, 'NICKNAME', parsed[4]);
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // X-PHONETIC-LAST-NAME attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_X-PHONETIC-LAST-NAME']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('PHONETICLASTNAME')) {
+ setContactDataColumn(inputContact, 'PHONETICLASTNAME', parsed[4]);
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // X-PHONETIC-FIRST-NAME attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_X-PHONETIC-FIRST-NAME']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('PHONETICFIRSTNAME')) {
+ setContactDataColumn(inputContact, 'PHONETICFIRSTNAME', parsed[4]);
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // BDAY attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_BDAY']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('BIRTHDAY')) {
+ var bday = null;
+ try {
+ bday = $.datepicker.parseDate('yy-mm-dd', parsed[4]);
+ }
+ catch(e) {
+
+ }
+
+ if(bday) {
+ setContactDataColumn(inputContact, 'BIRTHDAY', $.datepicker.formatDate(globalSettings.datepickerformat.value, bday));
+ }
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // TITLE attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_TITLE']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('JOBTITLE')) {
+ setContactDataColumn(inputContact, 'JOBTITLE', vcardUnescapeValue(parsed[4]));
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // NOTE attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_NOTE']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('NOTETEXT')) {
+ setContactDataColumn(inputContact, 'NOTETEXT', vcardUnescapeValue(parsed[4]));
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // ADR attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_ADR']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ var parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ var parsed_valArr=vcardSplitValue(parsed[4],';');
+
+ if(isDataColumnDefined('ADDRESS')) {
+ var unescapedArr = $.map(parsed_valArr, function(el) {
+ if(el) {
+ return vcardUnescapeValue(el);
+ }
+ });
+
+ setContactDataColumn(inputContact, 'ADDRESS', unescapedArr.join(' '), {'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'address_type_store_as')});
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // TEL attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_TEL']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('PHONE')) {
+ setContactDataColumn(inputContact, 'PHONE', parsed[4], {'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'phone_type_store_as')});
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // EMAIL attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_EMAIL']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('EMAIL')) {
+ setContactDataColumn(inputContact, 'EMAIL', parsed[4], {'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'email_type_store_as')});
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // URL attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_URL']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('URL')) {
+ setContactDataColumn(inputContact, 'URL', parsed[4], {'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'url_type_store_as')});
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // X-ABDATE attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_X-ABDATE']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('DATES')) {
+ var abdate = null;
+ try {
+ abdate = $.datepicker.parseDate('yy-mm-dd', parsed[4]);
+ }
+ catch(e) {
+
+ }
+
+ if(abdate) {
+ setContactDataColumn(inputContact, 'DATES', $.datepicker.formatDate(globalSettings.datepickerformat.value, abdate), {'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'date_store_as')});
+ }
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // X-ABRELATEDNAMES attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_X-ABRELATEDNAMES']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('RELATED')) {
+ setContactDataColumn(inputContact, 'RELATED', parsed[4], {'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'person_type_store_as')});
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // X-SOCIALPROFILE attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_X-SOCIALPROFILE']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+
+ if(isDataColumnDefined('PROFILE')) {
+ setContactDataColumn(inputContact, 'PROFILE', getParamsFromContentlineParse(tmp, parsed, 'X-USER', null, null, true)[0], {'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'profile_type_store_as')});
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // IMPP attribute
+ while((vcard_element=tmp.match(vCard.pre['contentline_IMPP']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ if(isDataColumnDefined('IM')) {
+ setContactDataColumn(inputContact, 'IM', parsed[4].replace(vCard.pre['vcardToData_before_val'], ''), {
+ 'TYPE': getParamsFromContentlineParse(tmp, parsed, 'TYPE', 'X-ABLabel', 'im_type_store_as'),
+ 'SERVICE-TYPE': getParamsFromContentlineParse(tmp, parsed, 'X-SERVICE-TYPE', null, 'im_service_type_store_as')
+ });
+ }
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+
+ // CATEGORIES attribute (preparsed)
+ if(isDataColumnDefined('CATEGORIES')) {
+ setContactDataColumn(inputContact, 'CATEGORIES', inputContact.categories.splitCustom(','));
+ }
+
+ if((inputContact.sortkey=this.getSortKey(inputContact, globalSettings.collectionsort.value || $.map(globalSettings.collectiondisplay.value, function(el) {if($.isPlainObject(el.value)) {return el.value;} else {return [el.value];}}), 0))===false || (inputContact.displayvalue=this.getSortKey(inputContact, globalSettings.collectiondisplay.value, 1))===false)
+ return false; //invalid vcard
+
+ // if company headers are used add also the header to the searchvalue
+ var companyHeader='';
+ if(typeof globalGroupContactsByCompanies!='undefined' && globalGroupContactsByCompanies==true)
+ {
+ if(tmpCurrentCompany!='' || tmpCurrentDepartment!='')
+ {
+ if(typeof (getCRMSortKey)=='function')
+ companyHeader=getCRMSortKey(inputContact);
+ else
+ companyHeader=tmpCurrentCompany+'\u0009'+tmpCurrentDepartment+'\u0009';
+ }
+ }
+
+ inputContact.searchvalue=(companyHeader+inputContact.displayvalue).multiReplace(globalSearchTransformAlphabet);
+
+ // CATEGORIES suggestion
+ for(var i=0;i<allCategoriesArr.length;i++) // if a contact is changed remove it from previous categories
+ if(categoriesArr.indexOf(allCategoriesArr[i])==-1)
+ {
+ var index=this.contact_categories[allCategoriesArr[i]].indexOf(inputContact.uid);
+ if(index!=-1)
+ {
+ this.contact_categories[allCategoriesArr[i]].splice(index,1);
+
+ if(this.contact_categories[allCategoriesArr[i]].length==0)
+ delete this.contact_categories[allCategoriesArr[i]];
+ }
+ }
+ for(var i=0;i<categoriesArr.length;i++) // add contact to it's categories
+ this.contact_categories[categoriesArr[i]]=(this.contact_categories[categoriesArr[i]]==undefined ? [] : this.contact_categories[categoriesArr[i]]).concat(inputContact.uid).sort().unique();
+
+ // ORG suggestion
+ for(var i=0;i<allOrgArr.length;i++) // if a contact is changed remove it from previous companies
+ if(orgArr.indexOf(allOrgArr[i])==-1)
+ {
+ var index=this.contact_companies[allOrgArr[i]].uids.indexOf(inputContact.uid);
+ if(index!=-1)
+ {
+ this.contact_companies[allOrgArr[i]].uids.splice(index,1);
+
+ if(this.contact_companies[allOrgArr[i]].uids.length==0)
+ delete this.contact_companies[allOrgArr[i]];
+ }
+ }
+
+ for(var i=0;i<orgArr.length;i++) // add contact to it's companies
+ this.contact_companies[orgArr[i]]={uids: (this.contact_companies[orgArr[i]]==undefined ? [] : this.contact_companies[orgArr[i]].uids).concat(inputContact.uid).sort().unique(), departments: (this.contact_companies[orgArr[i]]==undefined ? [] : this.contact_companies[orgArr[i]].departments).concat(depArr).sort().unique()};
+
+ var makeActive=null;
+
+ // do not insert entry with duplicate UID
+ if(this_destination_hash[inputContact.uid]!=undefined)
+ {
+ var beforeSortKeyChar='';
+ if(typeof globalGroupContactsByCompanies!='undefined' && globalGroupContactsByCompanies==true && tmpCurrentCompany=='' && tmpCurrentDepartment=='')
+ beforeSortKeyChar='\u0009';
+
+ if(this_destination_hash[inputContact.uid].displayvalue==inputContact.displayvalue && this_destination_hash[inputContact.uid].sortkey==(beforeSortKeyChar+inputContact.sortkey) && this_destination_hash[inputContact.uid].isCompany==inputContact.isCompany && this_destination_hash[inputContact.uid].isLegacy==inputContact.isLegacy)
+ {
+ // we perform the normalization here, because we need to check whether the vCard is changed or not
+ // normalize the vCard when it's loaded first time
+ if(inputContact.normalized==false)
+ {
+ inputContact.normalized=true;
+ inputContact.vcard=normalizeVcard(additionalRFCFixes(inputContact.vcard));
+ }
+ this_destination_hash[inputContact.uid]=inputContact;
+ this_destination_hash_uidattr[inputContact.uidattr]=inputContact; // hash by UID attr
+
+ // if the contact is loaded and the editor is in 'show' state, reload it
+ if(this.contactLoaded!=null && this.contactLoaded.uid==inputContact.uid && this.contactLoaded.vcard!=inputContact.vcard && $('#vCardEditor').attr('data-editor-state')=='show')
+ {
+ this.loadContactByUID(inputContact.uid);
+ show_editor_message('in', 'message_success', localization[globalInterfaceLanguage].contactConcurrentChange,globalHideInfoMessageAfter);
+ return 0;
+ }
+ else // we are editing the contact or it is not active
+ return -1;
+ }
+ else
+ {
+ if(this.contactLoaded!=null && this.contactLoaded.uid==inputContact.uid && forceReload==true)
+ makeActive=inputContact.uid;
+ if($('#vCardEditor').attr('data-url')==inputContact.uid)
+ this.contactToReload=this.contactLoaded;
+ else
+ this.contactToReload=null;
+ // the contact name is changed and must be moved to correct place (we first remove it and then reinsert)
+ this.removeContact(inputContact.uid,false);
+ }
+ }
+
+ if(typeof globalGroupContactsByCompanies!='undefined' && globalGroupContactsByCompanies==true)
+ {
+ if(tmpCurrentCompany=='' && tmpCurrentDepartment=='')
+ {
+ headerValue=headerSortKey='\u0009';
+ inputContact.sortkey='\u0009'+inputContact.sortkey;
+ }
+ else
+ {
+ headerValue=vcardUnescapeValue(tmpCurrentCompany)+(tmpCurrentDepartment=='' ? '' : ' ['+vcardUnescapeValue(tmpCurrentDepartment)+']');
+ if(typeof (getCRMSortKey)== 'function')
+ headerSortKey=getCRMSortKey(inputContact);
+ else
+ headerSortKey=tmpCurrentCompany+'\u0009'+tmpCurrentDepartment+'\u0009';
+ }
+ }
+ else
+ {
+ var headerValue='';
+ // key value for most common non-alphabet characters is defined as '#'
+ if(inputContact.sortkey[0]!=undefined)
+ {
+ var unicodeValue=inputContact.sortkey.charCodeAt(0);
+ if(unicodeValue<65 || (unicodeValue>90 && unicodeValue<97) || (unicodeValue>122 && unicodeValue<127))
+ {
+ headerValue='#';
+ inputContact.sortkey='#'+inputContact.sortkey;
+ }
+ else
+ headerValue=inputContact.sortkey.charAt(0).toUpperCase();
+ }
+ else
+ {
+ headerValue='#';
+ inputContact.sortkey='#';
+ }
+
+ headerSortKey=headerValue;
+ }
+
+ // create the header
+ var headerObject={headerOnly: true, sortkey: headerSortKey, displayvalue: headerValue};
+
+ // find the index where to insert the new contact O(n*log(n))
+ insertIndex=0;
+ low=0;
+ high=this_destination.length-1;
+ if(this_destination.length>0)
+ while(low<high)
+ {
+ insertIndex=low+Math.round((high-low)/2);
+ result=(cmp_str=this_destination[insertIndex].sortkey).customCompare(inputContact.sortkey,globalSortAlphabet, 1, false);
+
+ if(result==-1)
+ {
+ if(insertIndex+1==this_destination.length-1 && typeof this_destination[insertIndex+1]!='undefined' && (cmp_str=this_destination[insertIndex+1].sortkey).customCompare(inputContact.sortkey, globalSortAlphabet, 1, false)==-1)
+ {
+ insertIndex+=2;
+ break;
+ }
+ else
+ low=++insertIndex;
+ }
+ else if(result==1)
+ {
+ if((cmp_str=this_destination[insertIndex-1].sortkey).customCompare(inputContact.sortkey, globalSortAlphabet, 1, false)==-1)
+ break;
+ else
+ high=--insertIndex;
+ }
+ }
+
+ // check for header existence
+ var headerMiss=1;
+ for(var i=0;i<this_destination.length;i++)
+ if(this_destination[i].headerOnly!=undefined && this_destination[i].headerOnly==true && this_destination[i].displayvalue==headerObject.displayvalue)
+ {headerMiss=0; break;}
+
+ // insert the header if not exists
+ if(headerMiss)
+ this_destination.splice(insertIndex,0,headerObject);
+ // insert the contact
+ this_destination.splice(insertIndex+headerMiss,0,inputContact);
+ // insert reference to the contact into hash for much faster search by UID and UID attr
+ this_destination_hash[inputContact.uid]=this_destination[insertIndex+headerMiss];
+ this_destination_hash_uidattr[inputContact.uidattr]=this_destination[insertIndex+headerMiss];
+
+ // DOM processing can be disabled for performance (then we use mass DOM operations)
+ if(!disableDOM)
+ {
+ // insert header to interface if not exists
+ if(headerMiss)
+ {
+ var newElement=globalOrigABListHeader.clone();
+ newElement.children().text(headerObject.displayvalue);
+ if(globalRefABListTable.children().eq(insertIndex).length==0) // if a tbody is completely empty we cannot search using index
+ globalRefABListTable.append(newElement);
+ else
+ globalRefABListTable.children().eq(insertIndex).before(newElement);
+ }
+
+ // insert the contact to interface
+ var newElement=globalOrigABListItem.clone();
+ if(typeof inputContact.isLegacy!='undefined' && inputContact.isLegacy)
+ newElement.css('text-decoration','line-through');
+ else
+ newElement.css('text-decoration','none');
+
+ newElement.attr('data-id', inputContact.uid);
+ newElement.children('.ablist_item_color').css('background-color', inputContact.color);
+
+ var columns = getContactDataColumns(inputContact.isCompany);
+ for(var i=0; i<columns.length; i++) {
+ $('<td>').text(getContactDataColumn(inputContact, columns[i])).appendTo(newElement);
+ }
+
+ newElement.click(function() {
+ if($(this).hasClass('ablist_item_selected') || globalObjectLoading)
+ return false;
+ else
+ globalAddressbookList.loadContactByUID(this.getAttribute('data-id'));
+ });
+
+ // set the company icon
+ if(inputContact.isCompany==true)
+ newElement.addClass('company');
+
+ if(typeof globalDisableDragAndDrop=='undefined' || globalDisableDragAndDrop!=true)
+ newElement.draggable({
+ delay: 250,
+ revert: 'invalid',
+ scroll: false,
+ opacity: 0.8,
+ stack: '#SystemCardDavMATE',
+ containment: '#SystemCardDavMATE',
+ appendTo: 'body',
+ start: function( event, ui ){
+ // disallow on read-only collection
+ if(globalResourceCardDAVList.getCollectionPrivByUID($(this).attr('data-id').replace(RegExp('[^/]*$'),''))==true)
+ return false;
+ },
+ helper: function(){
+ $('#ResourceCardDAVList').find('.resourceCardDAV.ui-droppable').droppable( 'option', 'accept', false);
+ $('#ResourceCardDAVList').find('.group.ui-droppable').droppable( 'option', 'accept', false);
+
+ $('#ResourceCardDAVList').find('.resourceCardDAV[data-id!='+jqueryEscapeSelector($(this).attr('data-id').replace(RegExp('[^/]+$'),''))+'].ui-droppable').droppable( 'option', 'accept', '.ablist_item');
+ var myContactGroups=globalAddressbookList.getMyContactGroups($(this).attr('data-id'));
+ $('#ResourceCardDAVList').find('.group[data-id^='+jqueryEscapeSelector($(this).attr('data-id').replace(RegExp('[^/]+$'),''))+'].ui-droppable').each(function(index, element){
+ if(myContactGroups.indexOf($(element).attr('data-id'))==-1)
+ $(element).droppable( 'option', 'accept', '.ablist_item');
+ });
+
+ var tmp=$(this).clone();
+ tmp.addClass('ablist_item_dragged');
+ // we cannot use .css() here, because we need to add !important (problem with Gecko based browsers)
+ var tmp_style='max-width: '+$(this).outerWidth()+'px;';
+ if($(this).css('background-image')!='none')
+ tmp_style+='background-image: url(images/company_s_w.svg) !important;';
+ tmp.attr('style', tmp_style);
+
+ return tmp;
+ }
+ });
+
+ globalRefABListTable.children().eq(insertIndex+headerMiss-1).after(newElement);
+
+ if($('#vCardEditor').attr('data-editor-state')=='edit')
+ {
+ if((selected_contact=globalRefABListTable.children('.ablist_item_selected')).length==1)
+ globalRefABList.scrollTop(globalRefABList.scrollTop()+selected_contact.offset().top-globalRefABList.offset().top-globalRefABList.height()*globalKBNavigationPaddingRate);
+ }
+// toto tu asi nahradit zavolanim trigger('click') co vyrazne sprehladni kod
+// =>
+ // load the updated contact (because we first deleted it, we need to set it active)
+ if(makeActive!=null)
+ {
+ // make the contact active
+ globalRefABListTable.children('.ablist_item.ablist_item_selected').removeClass('ablist_item_selected');
+ globalRefABListTable.children().eq(insertIndex+headerMiss).addClass('ablist_item_selected');
+ this.loadContactByUID(makeActive);
+ }
+ }
+ }
+
+ this.renderContacs=function()
+ {
+ var this_destination=this.contacts;
+ var this_destination_hash=this.contacts_hash;
+
+ var tmpResultObject=[];
+
+ for(var i=0;i<this_destination.length;i++)
+ {
+ if(this_destination[i].headerOnly!=undefined && this_destination[i].headerOnly==true)
+ {
+ var newElement=globalOrigABListHeader.clone();
+ newElement.children().text(this_destination[i].displayvalue);
+ }
+ else
+ {
+ // insert the contact to interface
+ var newElement=globalOrigABListItem.clone();
+ if(typeof this_destination[i].isLegacy!='undefined' && this_destination[i].isLegacy)
+ newElement.css('text-decoration','line-through');
+ else
+ newElement.css('text-decoration','none');
+
+ newElement.attr('data-id', this_destination[i].uid);
+ newElement.find('.ablist_item_color').css('background-color', this_destination[i].color);
+
+ var columns = getContactDataColumns(this_destination[i].isCompany);
+ for(var j=0; j<columns.length; j++) {
+ $('<td>').text(getContactDataColumn(this_destination[i], columns[j])).appendTo(newElement);
+ }
+ for(; j<getDataColumnCount(); j++) {
+ $('<td>').appendTo(newElement);
+ }
+
+ newElement.click(function() {
+ if($(this).hasClass('ablist_item_selected') || globalObjectLoading)
+ return false;
+ else
+ globalAddressbookList.loadContactByUID(this.getAttribute('data-id'));
+ });
+
+ // set the company icon
+ if(this_destination[i].isCompany==true)
+ newElement.addClass('company');
+
+ if(typeof globalDisableDragAndDrop=='undefined' || globalDisableDragAndDrop!=true)
+ newElement.draggable({
+ delay: 250,
+ revert: 'invalid',
+ scroll: false,
+ opacity: 0.8,
+ stack: '#SystemCardDavMATE',
+ containment: '#SystemCardDavMATE',
+ appendTo: 'body',
+ start: function( event, ui ){
+ // disallow on read-only collection
+ if(globalResourceCardDAVList.getCollectionPrivByUID($(this).attr('data-id').replace(RegExp('[^/]*$'),''))==true)
+ return false;
+ },
+ helper: function(){
+ $('#ResourceCardDAVList').find('.resourceCardDAV.ui-droppable').droppable( 'option', 'accept', false);
+ $('#ResourceCardDAVList').find('.group.ui-droppable').droppable( 'option', 'accept', false);
+
+ $('#ResourceCardDAVList').find('.resourceCardDAV[data-id!='+jqueryEscapeSelector($(this).attr('data-id').replace(RegExp('[^/]+$'),''))+'].ui-droppable').droppable( 'option', 'accept', '.ablist_item');
+ var myContactGroups=globalAddressbookList.getMyContactGroups($(this).attr('data-id'));
+ $('#ResourceCardDAVList').find('.group[data-id^='+jqueryEscapeSelector($(this).attr('data-id').replace(RegExp('[^/]+$'),''))+'].ui-droppable').each(function(index, element){
+ if(myContactGroups.indexOf($(element).attr('data-id'))==-1)
+ $(element).droppable( 'option', 'accept', '.ablist_item');
+ });
+
+ var tmp=$(this).clone();
+ tmp.addClass('ablist_item_dragged');
+ // we cannot use .css() here, because we need to add !important (problem with Gecko based browsers)
+ var tmp_style='max-width: '+$(this).outerWidth()+'px;';
+ if($(this).css('background-image')!='none')
+ tmp_style+='background-image: url(images/company_s_w.svg) !important;';
+ tmp.attr('style', tmp_style);
+
+ return tmp;
+ }
+ });
+ }
+ tmpResultObject.push(newElement);
+ }
+
+ globalRefABListTable.empty().append(tmpResultObject);
+ }
+
+ this.removeContact=function(inputUid, loadNext, isFromPUT)
+ {
+ if(!(inputUid instanceof Array))
+ inputUid=[inputUid];
+ var tmpRex=new RegExp('/[^/]*$','');
+
+ // Apple "group" vCards
+ for(var i=inputUid.length-1;i>=0;i--)
+ for(var j=this.vcard_groups[inputUid[i].replace(tmpRex,'/')].length-1;j>=0;j--)
+ if(inputUid.indexOf(this.vcard_groups[inputUid[i].replace(tmpRex,'/')][j].uid)!=-1)
+ return this.removeContactGroup(inputUid[i], loadNext);
+
+ for(var i=this.contacts.length-1;i>=0;i--)
+ if(this.contacts[i]!=undefined&&inputUid.indexOf(this.contacts[i].uid)!=-1)
+ {
+ var inUID=this.contacts[i].uid;
+ // CATEGORIES suggestion
+ var categoriesArr=vcardSplitValue(this.contacts[i].categories,',');
+ for(var j=0;j<categoriesArr.length;j++)
+ if(this.contact_categories[categoriesArr[j]]!=undefined)
+ {
+ var index=this.contact_categories[categoriesArr[j]].indexOf(this.contacts[i].uid);
+ if(index!=-1)
+ {
+ this.contact_categories[categoriesArr[j]].splice(index,1);
+
+ if(this.contact_categories[categoriesArr[j]].length==0)
+ delete this.contact_categories[categoriesArr[j]];
+ }
+ }
+
+ // ORG suggestion
+ var tmp=this.contacts[i].vcard;
+ var orgArr=[];
+ while((vcard_element=tmp.match(vCard.pre['contentline_ORG']))!=null)
+ {
+ // parsed (contentline_parse) = [1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ parsed=vcard_element[0].match(vCard.pre['contentline_parse']);
+ orgArr[orgArr.length]=vcardUnescapeValue(vcardSplitValue(parsed[4],';')[0]);
+
+ // remove the processed parameter
+ tmp=tmp.replace(vcard_element[0],'\r\n');
+ }
+ for(var j=0;j<orgArr.length;j++)
+ if(this.contact_companies[orgArr[j]]!=undefined /* there is no suggestion for '' company */ && this.contact_companies[orgArr[j]].uids!=undefined)
+ {
+ var index=this.contact_companies[orgArr[j]].uids.indexOf(this.contacts[i].uid);
+ if(index!=-1)
+ {
+ this.contact_companies[orgArr[j]].uids.splice(index,1);
+
+ if(this.contact_companies[orgArr[j]].uids.length==0)
+ delete this.contact_companies[orgArr[j]];
+ }
+ }
+
+ var nextCandidateToLoad=null;
+ var item=globalRefABListTable.find('[data-id^="'+jqueryEscapeSelector(this.contacts[i].uid)+'"]');
+
+ // get the nearest candidate to load
+ // if we can go forward
+ for(j=i+1;j<this.contacts.length;j++)
+ if(this.contacts[j].headerOnly!=true && (typeof isFromPUT!='undefined' || this.contacts[j].show==true))
+ {
+ nextCandidateToLoad=this.contacts[j];
+ break;
+ }
+ // we must go backwards
+ if(nextCandidateToLoad==null)
+ {
+ for(j=i-1;j>=0;j--)
+ if(this.contacts[j].headerOnly!=true && this.contacts[j].show==true)
+ {
+ nextCandidateToLoad=this.contacts[j];
+ break;
+ }
+ }
+
+ // remove the item
+ item.remove();
+ this.contacts.splice(i,1);
+ if(this.contacts_hash[inUID]!=undefined)
+ {
+ delete this.contacts_hash_uidattr[this.contacts_hash[inUID].uidattr];
+ delete this.contacts_hash[inUID];
+ }
+ else if(this.companies_hash[inUID]!=undefined)
+ {
+ delete this.companies_hash_uidattr[this.contacts_hash[inUID].uidattr];
+ delete this.companies_hash[inUID];
+ }
+
+ // remove the header if there is no more contact
+ var removeHeader=true;
+ var prevHeader=null;
+ // find the previous header index
+ for(var j=i-1;j>=0;j--)
+ if(this.contacts[j].headerOnly!=undefined && this.contacts[j].headerOnly==true)
+ {
+ prevHeader=j;
+ break;
+ }
+
+ // check for contact existence for the found header
+ if((prevHeader+1)<this.contacts.length && (this.contacts[prevHeader+1].headerOnly==undefined || this.contacts[prevHeader+1].headerOnly!=true))
+ removeHeader=false;
+
+ // remove the header
+ if(removeHeader==true)
+ {
+ globalRefABListTable.children().eq(prevHeader).remove();
+ this.contacts.splice(prevHeader,1);
+ }
+
+ // hide header if there is no more visible contacts
+ var hideHeader=true;
+ for(j=prevHeader+1;j<this.contacts.length && (this.contacts[j].headerOnly==undefined || this.contacts[j].headerOnly!=true);j++)
+ if(this.contacts[j].show==true)
+ {
+ hideHeader=false;
+ break;
+ }
+
+ if(hideHeader)
+ globalRefABListTable.children().eq(prevHeader).css('display','none');
+
+ // update the active search
+ if(globalQs!=null)
+ globalQs.cache();
+
+ // load next contact
+ if(loadNext && this.contactLoaded!=null)
+ {
+ if(nextCandidateToLoad!=null)
+ this.loadContactByUID(nextCandidateToLoad.uid);
+ else
+ {
+ this.contactLoaded=null;
+ $('#ABContactColor').css('background-color', '');
+ $('#ABContact').html('');
+ }
+ }
+ }
+ }
+
+ this.checkAndTouchIfExists=function(inputUID,inputEtag,inputTimestamp)
+ {
+ if(this.contacts_hash[inputUID]!=undefined)
+ {
+ this.contacts_hash[inputUID].timestamp=inputTimestamp;
+
+ if(this.contacts_hash[inputUID].etag==inputEtag)
+ return true;
+ else
+ return false;
+ }
+ else
+ return false;
+ }
+
+ this.removeOldContacts=function(inputUidBase, inputTimestamp)
+ {
+ for(var i=this.contacts.length-1;i>=0;i--)
+ if(this.contacts[i]!=undefined /* because the header can be deleted with the contact */ && this.contacts[i].timestamp!=undefined && this.contacts[i].uid.indexOf(inputUidBase)==0 && this.contacts[i].timestamp<inputTimestamp)
+ this.removeContact(this.contacts[i].uid, true);
+ }
+
+ this.loadContactByUID=function(inputUID)
+ {
+ // find the inputUID contact
+ if(this.contacts_hash[inputUID]!=undefined)
+ {
+ globalObjectLoading=true; // temporary disable keyboard navigation
+
+ // normalize the vCard when it's loaded first time
+ if(this.contacts_hash[inputUID].normalized==false)
+ {
+ this.contacts_hash[inputUID].normalized=true;
+ this.contacts_hash[inputUID].vcard=normalizeVcard(additionalRFCFixes(this.contacts_hash[inputUID].vcard));
+ }
+
+ var is_readonly=globalResourceCardDAVList.getCollectionPrivByUID(this.contacts_hash[inputUID].uid.replace(RegExp('[^/]*$'),''));
+ var loadContact=this.contactLoaded=this.contacts_hash[inputUID];
+
+// CardDAVeditor_cleanup(false, this.contacts_hash[inputUID].isCompany); // editor initialization
+
+ if(vcardToData(loadContact, is_readonly, this.contacts_hash[inputUID].isCompany, 'hide', []))
+ $('#EditorBox').fadeTo(0, 1, function(){ /* 0 => no animation */
+ globalObjectLoading=false; // re-enable keyboard navigation
+ });
+ else
+ {
+ $('#ABContactColor').css('background-color', '');
+ $('#ABContact').empty();
+ globalDisableAnimationMessageHiding='contactRfcNotCompliant';
+ var tmpTime=show_editor_message('out','message_error', localization[globalInterfaceLanguage].contactRfcNotCompliant, globalHideInfoMessageAfter);
+ setTimeout(function(){globalObjectLoading=false;}, tmpTime); // re-enable keyboard navigation
+ }
+ // Make the selected contact active
+ globalRefABListTable.children('.ablist_item.ablist_item_selected').removeClass('ablist_item_selected');
+ globalRefABListTable.children('[data-id='+jqueryEscapeSelector(this.contacts_hash[inputUID].uid)+']').addClass('ablist_item_selected');
+ this.contactToReload=null;
+ if(globalRefABListTable.children('[data-id='+jqueryEscapeSelector(this.contacts_hash[inputUID].uid)+']:visible').length>0&&$('#ABInMessageEditBox').css('display')!='none')
+ {
+ animate_message('#ABInMessageEditBox', '#ABInMessageTextEditBox', 0, '-=');
+ $('#ABInMessageEditBox').css('display','');
+
+ }
+ else if(globalRefABListTable.children('[data-id='+jqueryEscapeSelector(this.contacts_hash[inputUID].uid)+']:visible').length==0&&$('#ABInMessageEditBox').css('display')=='none')
+ {
+ this.contactToReload=this.contacts_hash[inputUID];
+ globalDisableAnimationMessageHiding='errContactHidden';
+ $('#ABInMessageEditBox').css('display','block');
+ $('#ABInMessageTextEditBox').attr('class','message_success');
+ $('#ABInMessageTextEditBox').text(localization[globalInterfaceLanguage][globalDisableAnimationMessageHiding]);
+ animate_message('#ABInMessageEditBox', '#ABInMessageTextEditBox', globalHideInfoMessageAfter);
+ }
+ if($('#ResourceCardDAVListOverlay').is(':visible'))
+ {
+ if($('#ABContactOverlay').is(':visible'))
+ {
+ var animation = 400;
+ var duration = globalHideInfoMessageAfter + 2*animation;
+ setTimeout(function(){
+ $('#ResourceCardDAVListOverlay').fadeOut(animation);
+ $('#ABListOverlay').fadeOut(animation,function(){});
+ $('#ABContactOverlay').fadeOut(animation,function(){globalRefAddContact.prop('disabled',false);});
+ },duration-animation);
+ }
+ else
+ {
+ $('#ResourceCardDAVListOverlay').fadeOut(globalEditorFadeAnimation);
+ $('#ABListOverlay').fadeOut(globalEditorFadeAnimation,function(){});
+ }
+ }
+ }
+ else
+ {
+ $('#ABContactColor').css('background-color', '');
+ $('#ABContact').empty();
+// CardDAVeditor_cleanup(false, false); // editor initialization
+ }
+ checkContactFormScrollBar();
+ }
+
+ this.loadContactByVcard=function(vcard, color, isCompany, inputEditorMode, inputEditorLockedEntries)
+ {
+// sem callback pre index.html a v pripade ak pridavame usera (nie firmu) pridat do vcard prislusny atribut
+ if(typeof(globalContactsExtLoadByVcardBefore)=='function')
+ vcard=globalContactsExtLoadByVcardBefore(vcard, isCompany);
+
+ var loadContact=new Object();
+ loadContact.vcard=vcard;
+ loadContact.isCompany=isCompany;
+ loadContact.color=color;
+
+ globalObjectLoading=true; // temporary disable keyboard navigation
+ if(vcardToData(loadContact, false /* XXX check this */, isCompany, inputEditorMode, inputEditorLockedEntries))
+ $('#EditorBox').fadeTo(0, 1, function(){ /* 0 => no animation */
+ // append the UID of previous contact into "data-id" for "cancel" functionality
+ $('#vCardEditor').find('[data-type="cancel"]').attr('data-id', globalAddressbookList.getLoadedContactUID());
+ this.contactLoaded=null; // do not do this earlier
+ globalObjectLoading=false; // re-enable keyboard navigation
+ });
+ else
+ {
+ // todo: replace with icon or text in the editor div
+ globalDisableAnimationMessageHiding='contactRfcNotCompliant';
+ show_editor_message('out', 'message_error', localization[globalInterfaceLanguage].contactRfcNotCompliant, globalHideInfoMessageAfter);
+ this.contactLoaded=null; // do not do this earlier
+ globalObjectLoading=false; // re-enable keyboard navigation
+ }
+ checkContactFormScrollBar();
+ }
+
+ // DONE
+ this.getContactByUID=function(inputUID)
+ {
+ // find the inputUID contact
+ if(this.contacts_hash[inputUID]!=undefined)
+ return this.contacts_hash[inputUID];
+ else
+ return null;
+ }
+
+ // DONE
+ this.getContactGroupByUID=function(inputUID)
+ {
+ var collectionUID=inputUID.replace(RegExp('[^/]*$'),'');
+ for(var i=0;i<this.vcard_groups[collectionUID].length;i++)
+ {
+ if(this.vcard_groups[collectionUID][i].uid==inputUID)
+ return this.vcard_groups[collectionUID][i];
+ }
+ return null;
+ }
+}
diff --git a/public/infcloud/auth/.htaccess b/public/infcloud/auth/.htaccess
new file mode 100644
index 0000000..fb4203d
--- /dev/null
+++ b/public/infcloud/auth/.htaccess
@@ -0,0 +1,24 @@
+#####################################################################################################
+# Apache configuration (REQUIRED to prevent access for .inc files /especially config files/)
+# You NEED to add the following lines into your Apache vhost configuration (without the # character):
+# <Directory /client/installation/directory/auth/>
+# AllowOverride Limit
+# <IfVersion >= 2.3>
+# Require all granted
+# </IfVersion>
+# <IfVersion < 2.3>
+# Order allow,deny
+# Allow from all
+# </IfVersion>
+# </Directory>
+#####################################################################################################
+
+<Files ~ "\.inc$">
+ <IfVersion >= 2.3>
+ Require all granted
+ </IfVersion>
+ <IfVersion < 2.3>
+ Order allow,deny
+ Deny from all
+ </IfVersion>
+</Files>
diff --git a/public/infcloud/auth/common.inc b/public/infcloud/auth/common.inc
new file mode 100644
index 0000000..419cefb
--- /dev/null
+++ b/public/infcloud/auth/common.inc
@@ -0,0 +1,41 @@
+<?php
+ function array_to_xml($array, $skip_top_closing=false, $level=0)
+ {
+ static $result="<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
+
+ foreach($array as $k => $v)
+ {
+ if(is_numeric($k))
+ array_to_xml($v, $skip_top_closing, $level);
+ else
+ {
+ for($j=0; $j<$level; $j++)
+ $result.=" ";
+
+ $result.="<".htmlspecialchars($k);
+ if($k=='resources')
+ $result.=" xmlns=\"urn:com.inf-it:configuration\"";
+ if($v=='')
+ $result.=" />\n";
+ else
+ {
+ $result.=">";
+
+ if(is_array($v))
+ {
+ $result.="\n";
+ array_to_xml($v, $skip_top_closing, $level+1);
+ for($j=0; $j<$level; $j++)
+ $result.=" ";
+ }
+ else
+ $result.=htmlspecialchars($v);
+
+ if($level!==0 || $skip_top_closing===false)
+ $result.="</".htmlspecialchars($k).">\n";
+ }
+ }
+ }
+ return $result;
+ }
+?> \ No newline at end of file
diff --git a/public/infcloud/auth/config.inc b/public/infcloud/auth/config.inc
new file mode 100644
index 0000000..534e524
--- /dev/null
+++ b/public/infcloud/auth/config.inc
@@ -0,0 +1,58 @@
+<?php
+ // auth method: generic (auth/plugins/generic_conf.inc) or ldap (auth/plugins/ldap_conf.inc)
+ $config['auth_method']='generic';
+
+ // set to true for debugging XML response, otherwise set to false to avoid browser
+ // to show http authentication window after unsuccessful authentication
+ $config['auth_send_authenticate_header']=false;
+
+ // successfull authentication XML specification (change the "http://www.server.com:80" to your protocol/server/port)
+ $config['accounts']=array('resources'=>array());
+
+ // note: if you want to use regex values, then use one of the following formats (the second example is with regex modifier): 're:.*someregex.*[0-9]$' or 're|i:.*someregex.*[0-9]$'
+ // note: 'crossdomain' and 'withcredentials' are still available but there is NO REASON to use them (crossDomain is detected automatically, and I've never seen anyone who understand when to use withCredentials /there is NO REASON to set it to true!/)
+ // note: 'syncinterval' was removed - use globalSyncResourcesInterval in config.js instead
+ $config['accounts']['resources'][]=array(
+ 'resource'=>array(
+ 'type'=>array('addressbook'=>'', 'calendar'=>''),
+ 'href'=>(empty($_SERVER['HTTPS']) ? 'http' : 'https').'://www.server.com:80/caldav.php/'.$_SERVER['PHP_AUTH_USER'].'/',
+ 'hreflabel'=>'null', // if undefined or empty href value is used (see above)
+ 'forcereadonly'=>'null', // see auth/doc/example_config_response.xml for proper use, for example: 'forcereadonly'=>array(array('collection'=>'/caldav.php/user/collection/'), array('collection'=>'re:^/caldav.php/user/collection[0-9]/$')),
+ 'settingsaccount'=>'true', // client properties are saved here (note: set it to true only for ONE account)
+ 'checkcontenttype'=>'true', // check content-type in the server response (if you cannot see data in the interface /buggy server response/ you may try to disable it)
+ 'delegation'=>'true', // see auth/doc/example_config_response.xml for proper use, for example: 'delegation'=>array(array('resource'=>'/caldav.php/user%40domain.com/'), array('resource'=>'re|i:^/caldav.php/a[b-x].+/$')),
+ 'ignorealarms'=>'false', // see auth/doc/example_config_response.xml for proper use, for example: 'ignorealarms'=>array(array('collection'=>'/caldav.php/user/collection/'), array('collection'=>'re:^/caldav.php/user/collection[0-9]/$')),
+ 'backgroundcalendars'=>'', // see auth/doc/example_config_response.xml for proper use, for example: 'backgroundcalendars'=>array(array('collection'=>'/caldav.php/user/collection/'), array('collection'=>'re|i:^/caldav.php/user/collection[0-9]/$')),
+ 'userauth'=>array(
+ 'username'=>$_SERVER['PHP_AUTH_USER'],
+ 'password'=>$_SERVER['PHP_AUTH_PW']
+ ),
+ 'timeout'=>90000,
+ 'locktimeout'=>10000
+ )
+ );
+
+/*
+ // additional accounts
+ $config['accounts']['resources'][]=array(
+ 'resource'=>array(
+ 'type'=>array('addressbook'=>'', 'calendar'=>''),
+ 'href'=>'http://www.server.com:80/caldav.php/resource/',
+ 'hreflabel'=>'null', // if undefined or empty href value is used (see above)
+ 'forcereadonly'=>'null', // see auth/doc/example_config_response.xml for proper use, for example: 'forcereadonly'=>array(array('collection'=>'/caldav.php/user/collection/'), array('collection'=>'re:^/caldav.php/user/collection[0-9]/$')),
+ 'settingsaccount'=>'false', // client properties are saved here (note: set it to true only for ONE account)
+ 'checkcontenttype'=>'true', // check content-type in the server response (if you cannot see data in the interface /buggy server response/ you may try to disable it)
+ 'delegation'=>'true', // see auth/doc/example_config_response.xml for proper use, for example: 'delegation'=>array(array('resource'=>'/caldav.php/user%40domain.com/'), array('resource'=>'re|i:^/caldav.php/a[b-x].+/$')),
+ 'ignorealarms'=>'false', // see auth/doc/example_config_response.xml for proper use, for example: 'ignorealarms'=>array(array('collection'=>'/caldav.php/user/collection/'), array('collection'=>'re:^/caldav.php/user/collection[0-9]/$')),
+ 'backgroundcalendars'=>'', // see auth/doc/example_config_response.xml for proper use, for example: 'backgroundcalendars'=>array(array('collection'=>'/caldav.php/user/collection/'), array('collection'=>'re|i:^/caldav.php/user/collection[0-9]/$')),
+ 'userauth'=>array(
+ 'username'=>$_SERVER['PHP_AUTH_USER'],
+ 'password'=>$_SERVER['PHP_AUTH_PW']
+ ),
+ 'timeout'=>90000,
+ 'locktimeout'=>10000
+ )
+ );
+*/
+
+?> \ No newline at end of file
diff --git a/public/infcloud/auth/cross_domain.inc b/public/infcloud/auth/cross_domain.inc
new file mode 100644
index 0000000..a6a10e0
--- /dev/null
+++ b/public/infcloud/auth/cross_domain.inc
@@ -0,0 +1,14 @@
+<?php
+ header_remove('Access-Control-Allow-Origin');
+ header_remove('Access-Control-Allow-Methods');
+ header_remove('Access-Control-Allow-Headers');
+ header_remove('Access-Control-Allow-Credentials');
+
+ header('Access-Control-Allow-Origin: *');
+ header('Access-Control-Allow-Methods: GET');
+ header('Access-Control-Allow-Headers: User-Agent,Authorization,Content-type,X-client');
+ header('Access-Control-Allow-Credentials: true');
+
+ if($_SERVER['REQUEST_METHOD']=='OPTIONS') // Preflighted request
+ exit(0);
+?> \ No newline at end of file
diff --git a/public/infcloud/auth/doc/example_config_response.xml b/public/infcloud/auth/doc/example_config_response.xml
new file mode 100644
index 0000000..9568049
--- /dev/null
+++ b/public/infcloud/auth/doc/example_config_response.xml
@@ -0,0 +1,88 @@
+<resources xmlns="urn:com.inf-it:configuration">
+ <resource>
+ <type>
+ <addressbook />
+ <calendar />
+ </type>
+ <href>http://www.server.com:8080/principals/users/user/</href>
+ <hreflabel></hreflabel>
+ <crossdomain>null</crossdomain>
+ <forcereadonly>null</forcereadonly>
+ <withcredentials>false</withcredentials>
+ <settingsaccount>true</settingsaccount>
+ <checkcontenttype>true</checkcontenttype>
+ <delegation>true</delegation>
+ <ignorealarms>false</ignorealarms>
+ <backgroundcalendars />
+ <userauth>
+ <username>user</username>
+ <password>password</password>
+ </userauth>
+ <timeout>90000</timeout>
+ <locktimeout>10000</locktimeout>
+ </resource>
+ <resource>
+ <type>
+ <addressbook />
+ <calendar />
+ </type>
+ <href>http://www.server2.com:80/caldav.php/user/</href>
+ <hreflabel></hreflabel>
+ <crossdomain>null</crossdomain>
+ <forcereadonly>true</forcereadonly>
+ <withcredentials>false</withcredentials>
+ <settingsaccount>false</settingsaccount>
+ <checkcontenttype>true</checkcontenttype>
+ <delegation>
+ <resource>/caldav.php/user/</resource>
+ <resource>/principals/users/user%40domain.com/</resource>
+ <resource>re:^/caldav.php/a[b-x].+/$</resource>
+ <resource>re|i:^/caldav.php/a[b-x].+/$</resource>
+ </delegation>
+ <ignorealarms>
+ <collection>/caldav.php/user/collection/</collection>
+ <collection>/caldav.php/user%40domain.com/collection/</collection>
+ <collection>re:^/caldav.php/user/collection[0-9]/$</collection>
+ <collection>re|i:^/caldav.php/user/collection[0-9]/$</collection>
+ </ignorealarms>
+ <backgroundcalendars>
+ <collection>/caldav.php/user/collection/</collection>
+ <collection>/caldav.php/user%40domain.com/collection/</collection>
+ <collection>re:^/caldav.php/user/collection[0-9]/$</collection>
+ <collection>re|i:^/caldav.php/user/collection[0-9]/$</collection>
+ </backgroundcalendars>
+ <userauth>
+ <username>user</username>
+ <password>password</password>
+ </userauth>
+ <timeout>90000</timeout>
+ <locktimeout>10000</locktimeout>
+ </resource>
+ <resource>
+ <type>
+ <addressbook />
+ <calendar />
+ </type>
+ <href>https://www.server3.com:8443/caldav.php/user/</href>
+ <hreflabel></hreflabel>
+ <crossdomain>null</crossdomain>
+ <forcereadonly>
+ <collection>/caldav.php/user/collection/</collection>
+ <collection>/caldav.php/user%40domain.com/collection/</collection>
+ <collection>re:^/caldav.php/user/collection[0-9]/$</collection>
+ <collection>re|i:^/caldav.php/user/collection[0-9]/$</collection>
+ </forcereadonly>
+ <withcredentials>false</withcredentials>
+ <settingsaccount>false</settingsaccount>
+ <checkcontenttype>true</checkcontenttype>
+ <delegation>false</delegation>
+ <ignorealarms>false</ignorealarms>
+ <backgroundcalendars />
+ <userauth>
+ <username>user</username>
+ <password>password</password>
+ </userauth>
+ <timeout>90000</timeout>
+ <locktimeout>10000</locktimeout>
+ </resource>
+</resources>
diff --git a/public/infcloud/auth/doc/readme.txt b/public/infcloud/auth/doc/readme.txt
new file mode 100644
index 0000000..860d29c
--- /dev/null
+++ b/public/infcloud/auth/doc/readme.txt
@@ -0,0 +1,7 @@
+1.) configure your auth method (see the plugins directory) and the response XML in auth/config.inc and set $config['auth_send_authenticate_header']=true
+2.) configure the selected auth module in plugins/PLUGIN_conf.inc
+3.) check the correct response by visiting http://your-server.com/client_dir/auth/ and entering username and password
+4.) set $config['auth_send_authenticate_header']=false in auth/config.inc
+
+By default the generic plugin is used for basic HTTP authentication ($config['auth_method']='generic'; in config.inc).
+
diff --git a/public/infcloud/auth/index.php b/public/infcloud/auth/index.php
new file mode 100644
index 0000000..e92f005
--- /dev/null
+++ b/public/infcloud/auth/index.php
@@ -0,0 +1,33 @@
+<?php
+ require_once('config.inc');
+ require_once('common.inc');
+ require_once('cross_domain.inc');
+ require_once('plugins/'.$config['auth_method'].'.inc'); // configured module - it defines the 'MODULE_authenticate()' function
+
+ if(call_user_func($config['auth_method'].'_authenticate')!==1)
+ {
+ // HTTP authentication (exit if unsuccessfull)
+ if($config['auth_send_authenticate_header'])
+ header('WWW-Authenticate: Basic realm="Inf-IT Auth Module"');
+ header('HTTP/1.0 401 Unauthorized');
+echo <<<HTML
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
+<html>
+ <head>
+ <title>401 Authorization Required</title>
+ </head>
+ <body>
+ <h1>Authorization Required</h1>
+ <p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p>
+ </body>
+</html>
+HTML;
+ exit(0);
+ }
+ else
+ {
+ header('Content-type: text/xml; charset="utf-8"');
+ header('Cache-Control: max-age=0, must-revalidate, no-cache, no-store, no-transform, private');
+ echo array_to_xml($config['accounts']);
+ }
+?> \ No newline at end of file
diff --git a/public/infcloud/auth/plugins/generic.inc b/public/infcloud/auth/plugins/generic.inc
new file mode 100644
index 0000000..8e6b14b
--- /dev/null
+++ b/public/infcloud/auth/plugins/generic.inc
@@ -0,0 +1,58 @@
+<?php
+ require_once(dirname(__FILE__).'/generic_conf.inc');
+
+ function generic_authenticate()
+ {
+ global $pluginconfig;
+ if($_SERVER['PHP_AUTH_USER']!='' && $_SERVER['PHP_AUTH_PW']!='')
+ {
+ preg_match('#(https?)://([^/:]+)((?::[0-9]+)?)#i', $pluginconfig['base_url'], $matches);
+ $hostname_clean=$matches[2];
+ if($matches[1]=='https')
+ $hostname='ssl://'.$matches[2];
+ else
+ $hostname=$matches[2];
+
+ if($matches[3]=='')
+ {
+ if($matches[1]=='http')
+ $port=80;
+ else if($matches[1]=='https')
+ $port=443;
+ }
+ else
+ $port=substr($matches[3],1);
+
+ $fp=fsockopen($hostname, $port, $errno, $errstr, $pluginconfig['timeout']);
+ if(!$fp)
+ {
+ echo "$errstr ($errno)<br />\n";
+ return -2;
+ }
+ else
+ {
+ $request="<?xml version=\"1.0\" encoding=\"utf-8\"?><A:propfind xmlns:A=\"DAV:\"><A:prop><A:current-user-principal/></A:prop></A:propfind>";
+
+ $out="PROPFIND ".$pluginconfig['request']." HTTP/1.1\r\n";
+ $out.="Host: $hostname_clean\r\n";
+ $out.="Authorization: Basic ".base64_encode($_SERVER['PHP_AUTH_USER'].':'.$_SERVER['PHP_AUTH_PW'])."\r\n";
+ $out.="Depth: 0\r\n";
+ $out.="Content-Type: text/xml; charset=\"utf-8\"\r\n";
+ $out.="Content-Length:". strlen($request)."\r\n\r\n";
+ $out.=$request;
+ fwrite($fp, $out);
+
+ $result='';
+ if(!feof($fp))
+ $result.=fgets($fp);
+ fclose($fp);
+
+ if(strpos($result, 'HTTP/1.1 207')===0)
+ return 1; // auth successful
+ else
+ return -1; // auth unsuccessful
+ }
+ }
+ return 0; // empty username or password
+ }
+?> \ No newline at end of file
diff --git a/public/infcloud/auth/plugins/generic_conf.inc b/public/infcloud/auth/plugins/generic_conf.inc
new file mode 100644
index 0000000..01c2b32
--- /dev/null
+++ b/public/infcloud/auth/plugins/generic_conf.inc
@@ -0,0 +1,12 @@
+<?php
+ // Server base URL
+ $pluginconfig['base_url']=(empty($_SERVER['HTTPS']) ? 'http' : 'https').'://my.server.com:8080';
+
+ // Default values are usually OK
+ // for Davical:
+ $pluginconfig['request']='/caldav.php'; // change only if your Davical is not installed into server root directory
+ // for Lion server:
+ //$pluginconfig['request']='/principals/users';
+
+ $pluginconfig['timeout']=30;
+?> \ No newline at end of file
diff --git a/public/infcloud/auth/plugins/ldap.inc b/public/infcloud/auth/plugins/ldap.inc
new file mode 100644
index 0000000..f7012e5
--- /dev/null
+++ b/public/infcloud/auth/plugins/ldap.inc
@@ -0,0 +1,37 @@
+<?php
+ require_once(dirname(__FILE__).'/ldap_conf.inc');
+
+ function ldap_authenticate()
+ {
+ global $pluginconfig;
+ if($_SERVER['PHP_AUTH_USER']!="" && $_SERVER['PHP_AUTH_PW']!="")
+ {
+ $ds=ldap_connect($pluginconfig['host']);
+
+ // if binding is required for LDAP search
+ if(isset($pluginconfig['bind_dn']) && isset($pluginconfig['bind_passwd']))
+ {
+ @ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
+ if(!($r=@ldap_bind($ds, $pluginconfig['bind_dn'], $pluginconfig['bind_passwd'])))
+ return -2; // auth unsuccessful (bind error)
+ }
+
+ // perform the search
+ if(($r=ldap_search($ds, $pluginconfig['basedn'], '(&('.$pluginconfig['user_attr'].'='.$_SERVER['PHP_AUTH_USER'].')'.(isset($pluginconfig['filter']) && $pluginconfig['filter']!='' ? '('.$pluginconfig['filter'].')' : '' ).')'))!==false)
+ {
+ $result=@ldap_get_entries($ds, $r);
+ if($result[0])
+ {
+ @ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
+ if(@ldap_bind($ds, $result[0]['dn'], $_SERVER['PHP_AUTH_PW']))
+ {
+ @ldap_unbind($bi);
+ return 1; // auth successful
+ }
+ }
+ }
+ return -1; // auth unsuccessful
+ }
+ return 0; // empty username or password
+ }
+?> \ No newline at end of file
diff --git a/public/infcloud/auth/plugins/ldap_conf.inc b/public/infcloud/auth/plugins/ldap_conf.inc
new file mode 100644
index 0000000..c9242c7
--- /dev/null
+++ b/public/infcloud/auth/plugins/ldap_conf.inc
@@ -0,0 +1,12 @@
+<?php
+ // LDAP configuration parameters
+ $pluginconfig['host']='ldaps://ldap.server.com/';
+ $pluginconfig['basedn']='ou=People,dc=server,dc=com';
+ $pluginconfig['user_attr']='uid';
+ // if the server requires binding (if set to null then binding is not performed)
+ //$pluginconfig['bind_dn']=null;
+ //$pluginconfig['bind_passwd']=null;
+
+ // optional
+ $pluginconfig['filter']='accountStatus=active';
+?> \ No newline at end of file
diff --git a/public/infcloud/cache.manifest b/public/infcloud/cache.manifest
new file mode 100644
index 0000000..973f958
--- /dev/null
+++ b/public/infcloud/cache.manifest
@@ -0,0 +1,167 @@
+CACHE MANIFEST
+#V 20150922153011
+
+CACHE:
+addressbook.js
+common.js
+config.js
+data_process.js
+forms.js
+interface.js
+localization.js
+main.js
+resource.js
+timezones.js
+vcalendar.js
+vcalendar_rfc_regex.js
+vcard_rfc_regex.js
+vtodo.js
+webdav_protocol.js
+css/default.css
+css/default_ie.css
+css/default_integration.css
+css/fullcalendar.css
+css/jquery.tagsinput.css
+css/jquery-ui.custom.css
+css/spectrum.custom.css
+fonts/Roboto-BoldItalic-webfont.eot
+fonts/Roboto-BoldItalic-webfont.svg
+fonts/Roboto-BoldItalic-webfont.ttf
+fonts/Roboto-BoldItalic-webfont.woff
+fonts/Roboto-Bold-webfont.eot
+fonts/Roboto-Bold-webfont.svg
+fonts/Roboto-Bold-webfont.ttf
+fonts/Roboto-Bold-webfont.woff
+fonts/Roboto-Italic-webfont.eot
+fonts/Roboto-Italic-webfont.svg
+fonts/Roboto-Italic-webfont.ttf
+fonts/Roboto-Italic-webfont.woff
+fonts/Roboto-LightItalic-webfont.eot
+fonts/Roboto-LightItalic-webfont.svg
+fonts/Roboto-LightItalic-webfont.ttf
+fonts/Roboto-LightItalic-webfont.woff
+fonts/Roboto-Light-webfont.eot
+fonts/Roboto-Light-webfont.svg
+fonts/Roboto-Light-webfont.ttf
+fonts/Roboto-Light-webfont.woff
+fonts/Roboto-MediumItalic-webfont.eot
+fonts/Roboto-MediumItalic-webfont.svg
+fonts/Roboto-MediumItalic-webfont.ttf
+fonts/Roboto-MediumItalic-webfont.woff
+fonts/Roboto-Medium-webfont.eot
+fonts/Roboto-Medium-webfont.svg
+fonts/Roboto-Medium-webfont.ttf
+fonts/Roboto-Medium-webfont.woff
+fonts/Roboto-Regular-webfont.eot
+fonts/Roboto-Regular-webfont.svg
+fonts/Roboto-Regular-webfont.ttf
+fonts/Roboto-Regular-webfont.woff
+images/add_cal.svg
+images/add_cal_white.svg
+images/arrow_next_red.svg
+images/arrow_next.svg
+images/arrow_prev_red.svg
+images/arrow_prev.svg
+images/arrow.svg
+images/banner_addressbook.svg
+images/banner_calendar.svg
+images/banner_logout.svg
+images/banner_refresh.svg
+images/banner_todo.svg
+images/calendarB.svg
+images/cdm_logo.svg
+images/cdz_logo.svg
+images/cloud.svg
+images/company_s_b.svg
+images/company.svg
+images/company_s_w.svg
+images/delegation.svg
+images/dp_left.svg
+images/dp_right.svg
+images/drag.svg
+images/error_badge.svg
+images/error_b.svg
+images/error_w.svg
+images/infcloud_logo.svg
+images/in_progress_b.svg
+images/in_progress_dr.svg
+images/in_progress_r.svg
+images/in_progress_w.svg
+images/jumper_bottom_b.svg
+images/jumper_bottom_w.svg
+images/jumper_top_b.svg
+images/jumper_top_w.svg
+images/loadinfo.gif
+images/loadinfo_s1.gif
+images/loadinfo_s2.gif
+images/loadinfo_s3.gif
+images/loadinfo_s4.gif
+images/login.svg
+images/logout.svg
+images/needs_action_b.svg
+images/needs_action_dr.svg
+images/needs_action_r.svg
+images/needs_action_w.svg
+images/new_item.svg
+images/op_add.svg
+images/op_del.svg
+images/popupArrow.svg
+images/priority-1-dr.svg
+images/priority-1-r.svg
+images/priority-1.svg
+images/priority-1-w.svg
+images/priority-2-dr.svg
+images/priority-2-r.svg
+images/priority-2.svg
+images/priority-2-w.svg
+images/priority-3-dr.svg
+images/priority-3-r.svg
+images/priority-3.svg
+images/priority-3-w.svg
+images/read_only_b.svg
+images/read_only_w.svg
+images/remove_cal.svg
+images/remove_cal_white.svg
+images/reset_b.svg
+images/reset_dr.svg
+images/reset_drw.svg
+images/reset_r.svg
+images/reset_rw.svg
+images/reset_w.svg
+images/resource_arrow_down.svg
+images/resource_arrow_right.svg
+images/resource_arrow_up.svg
+images/resources.svg
+images/search.svg
+images/searchWhiteNew.svg
+images/select_bg_black.svg
+images/select_bg_dis.svg
+images/select_bg.svg
+images/select_black.svg
+images/select_dis.svg
+images/select_inv.svg
+images/select_login.svg
+images/select.svg
+images/success_b.svg
+images/success_dr.svg
+images/success_drw.svg
+images/success_r.svg
+images/success_rw.svg
+images/success_w.svg
+images/todoB.svg
+images/user.svg
+lib/fullcalendar.js
+lib/ie_base64.js
+lib/jquery-2.1.4.min.js
+lib/jquery.autosize.js
+lib/jquery.browser.js
+lib/jquery.placeholder-1.1.9.js
+lib/jquery.quicksearch.js
+lib/jquery.tagsinput.js
+lib/jquery-ui-1.11.4.custom.js
+lib/jshash-2.2_sha256.js
+lib/rrule.js
+lib/spectrum.js
+
+NETWORK:
+*
diff --git a/public/infcloud/cache_handler.js b/public/infcloud/cache_handler.js
new file mode 100644
index 0000000..e21fb63
--- /dev/null
+++ b/public/infcloud/cache_handler.js
@@ -0,0 +1,79 @@
+// OFFLINE CACHE DEBUGGING
+
+/*var cacheStatusValues=[];
+cacheStatusValues[0]='uncached';
+cacheStatusValues[1]='idle';
+cacheStatusValues[2]='checking';
+cacheStatusValues[3]='downloading';
+cacheStatusValues[4]='updateready';
+cacheStatusValues[5]='obsolete';
+
+var cache=window.applicationCache;
+cache.addEventListener('cached', logEvent, false);
+cache.addEventListener('checking', logEvent, false);
+cache.addEventListener('downloading', logEvent, false);
+cache.addEventListener('error', logEvent, false);
+cache.addEventListener('noupdate', logEvent, false);
+cache.addEventListener('obsolete', logEvent, false);
+cache.addEventListener('progress', logEvent, false);
+cache.addEventListener('updateready', logEvent, false);
+
+function logEvent(e)
+{
+ var online, status, type, message;
+ online=(navigator.onLine) ? 'yes' : 'no';
+ status=cacheStatusValues[cache.status];
+ type=e.type;
+ message='online: '+online;
+ message+=', event: '+type;
+ message+=', status: '+status;
+ if(type=='error' && navigator.onLine)
+ message+=' (prolly a syntax error in manifest)';
+ console.log(message);
+}
+
+window.applicationCache.addEventListener('updateready', function(){
+ window.applicationCache.swapCache();
+ console.log('swap cache has been called');
+ }, false
+);
+
+//setInterval(function(){cache.update()}, 10000);*/
+
+// Check if a new cache is available on page load.
+window.addEventListener('load', function(e)
+{
+ window.applicationCache.addEventListener('cached', function(e)
+ {
+ if(!isUserLogged)
+ window.location.reload();
+ else
+ $('#cacheDialog').css('display','block');
+ }, false);
+
+ window.applicationCache.addEventListener('updateready', function(e)
+ {
+ if(!isUserLogged)
+ window.location.reload();
+ else
+ $('#cacheDialog').css('display','block');
+ }, false);
+
+ window.applicationCache.addEventListener('obsolete', function(e)
+ {
+ if(!isUserLogged)
+ window.location.reload();
+ else
+ $('#cacheDialog').css('display','block');
+ }, false);
+
+ window.applicationCache.addEventListener('noupdate', function(e)
+ {
+ if(!isUserLogged)
+ {
+ clearInterval(globalCacheUpdateInterval);
+ globalCacheUpdateInterval=setInterval(function(){window.applicationCache.update();}, 300000);
+ //$('#LoginPage .window').css('display', 'inline-block');
+ }
+ }, false);
+}, false);
diff --git a/public/infcloud/cache_update.sh b/public/infcloud/cache_update.sh
new file mode 100755
index 0000000..77f8670
--- /dev/null
+++ b/public/infcloud/cache_update.sh
@@ -0,0 +1,5 @@
+#! /bin/bash
+# Use this script every time you modify any file to force browsers to reload it (empty HTML5 cache).
+
+command -v ed &> /dev/null || { echo "Error: 'ed' not installed. Aborting." > /dev/stderr; exit 1; }
+printf ",s/#V.*/#V $(date '+%Y%m%d%H%M%S')/\nw\nq\n" | ed -s cache.manifest
diff --git a/public/infcloud/changelog.txt b/public/infcloud/changelog.txt
new file mode 100644
index 0000000..386820f
--- /dev/null
+++ b/public/infcloud/changelog.txt
@@ -0,0 +1,17 @@
+InfCloud Changelog
+
+version 0.13.1 [2015-09-22]:
+ - includes CalDavZAP 0.13.1 (see changelog_caldavzap.txt)
+ - includes CardDavMATE 0.13.1 (see changelog_carddavmate.txt)
+
+version 0.13.0 [2015-09-16]:
+ - includes CalDavZAP 0.13.0 (see changelog_caldavzap.txt)
+ - includes CardDavMATE 0.13.0 (see changelog_carddavmate.txt)
+
+version 0.12.1 [2015-03-16]:
+ - includes CalDavZAP 0.12.1 (see changelog_caldavzap.txt)
+ - includes CardDavMATE 0.12.1 (see changelog_carddavmate.txt)
+
+version 0.12.0 [2015-01-26]:
+ - includes CalDavZAP 0.12.0 (see changelog_caldavzap.txt)
+ - includes CardDavMATE 0.12.0 (see changelog_carddavmate.txt)
diff --git a/public/infcloud/changelog_caldavzap.txt b/public/infcloud/changelog_caldavzap.txt
new file mode 100644
index 0000000..18ccfab
--- /dev/null
+++ b/public/infcloud/changelog_caldavzap.txt
@@ -0,0 +1,294 @@
+CalDavZAP Changelog
+
+
+NOTE: if you are interested in integrated version of CalDavZAP and CardDavMATE (our CardDAV web client) please use InfCloud - http://www.inf-it.com/open-source/clients/infcloud/
+
+version 0.13.1 [2015-09-22]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- changed login screen autocomplete behaviour - we do not prevent browsers from remembering login/password anymore
+
+version 0.13.0 [2015-09-16]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: if you use a server with cross-domain setup see the modified Access-Control-Allow-Headers and Access-Control-Expose-Headers in readme.txt (or misc/config_davical.txt or misc/calendarserver.diff); you MUST update these headers, otherwise the client will NOT work
+- configuration - added globalEnableRefresh option which enables/disables the new "refresh all resources" icon in the left application menu (disabled by default)
+- added Chinese localization (zh_CN) - thanks Fandy
+- added shift+login shortcut to ignore settings stored on the server and use the default settings (this functionality was added long time ago, but I forgot to mention about it)
+- added support for "Prefer: return=representation" (and related "Preference-Applied: return=representation") for PUT requests (see http://tools.ietf.org/html/rfc7240); this change REQUIRES update of Access-Control-Allow-Headers and Access-Control-Expose-Headers if cross-domain setup is used
+- added full RFC2445 support - RRULE processing is now performed by rrule.js (see: https://github.com/jakubroztocil/rrule); thanks to this library we now support/expand all recurrences, although the most exotic ones are "read-only" (for these you will see "Other (modification not supported)" in the interface)
+- added DESCRIPTION property for VALARM components to make them RFC compliant
+- added check for unsupported XML 1.0 characters in user entered data - these are replaced by a space character (to prevent client and/or server side parsing errors)
+- added title with version number for the software name/description (login screen)
+- added vCalendar line folding (RFC2445 - section 4.1)
+- fixed event processing when multiple VEVENT and VTIMEZONE components are intermingled
+- fixed VTODO COMPLETED property (UTC time format)
+- fixed alarm window not being localized properly
+- fixed an occasional issue where all collections are double loaded on login
+- changed version checking - use internal build number for software version comparison to support update notification also for beta and rc builds
+- changed format and comments in config.js
+- changed storing of user settings (PROPPATCH request) - no server request will be made if there is no change in settings
+- updated jQuery to 2.1.4
+- updated localizations - thanks Niels Bo Andersen [da_DK], Marten Gajda [de_DE], Damian Vila [es_ES], Gabriela Vattier [fr_FR], Luca Ferrario [it_IT], Muimu Nakayama [ja_JP], Johan Vromans [nl_NL], Selcuk Pultar [tr_TR], Александр Симонов [ru_RU], Serge Yakimchuck [uk_UA]
+- updated timezone.js to latest IANA timezone database
+- other improvements and fixes
+
+version 0.12.1 [2015-03-16]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: you NEED to enable "mod_headers" in Apache (for other servers see your server documentation) which is used to generate proper HTTP headers (required for correct support of HTML5 cache in browsers); the previously used mod_expire is not longer used (see the changelog entry below)
+- added support for absolute collection URLs returned in PROPFIND request
+- fixed HTML5 cache related problems (especially in Firefox) by returning "Cache-Control: max-age=0, must-revalidate, no-cache, no-transform, private" header instead of "Cache-Control: max-age=0" - this fix requires enabled "mod_headers" (you can disable the previously used "mod_expires") in Apache - for more details see .htaccess
+- fixed processing of the language parameter in the title of event/todo
+- changed displaying of event/todo calendar list in event/todo form - now it is possible to create new event/todo also into inactive event/todo collection
+- updated jQuery-UI to 1.11.4
+- other improvements and fixes
+
+version 0.12.0 [2015-01-26]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- configuration - added globalDefaultEventDuration configuration variable - set the default duration (in minutes) for newly created events
+- added widened todo list with dynamic number of columns
+- added checkboxes for todos in the todo list - now you can change the status of a todo by clicking on its checkbox
+- added duplicate button for copying of events/todos
+- fixed loading of future/past todos - now the loading of additional future/past todos is performed also by clicking on datepicker calendar (in the todo list view)
+- updated jQuery to 2.1.3
+- updated jQuery-UI to 1.11.2
+- other improvements and fixes
+
+version 0.11.1 [2014-10-07]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- updated timezone.js to latest IANA timezone database
+- updated jQuery to 2.1.1
+- updated jQuery-UI to 1.11.1
+- fixed calendar color change functionality
+- other improvements and fixes
+
+version 0.11.0 [2014-10-02]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: this release contains new, changed and also removed configuration options (always use the latest config.js)
+- configuration - removed showHeader option from globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings - it is incompatible with new functionality
+- configuration - added globalCrossServerSettingsURL configuration option - enable this option if your CalDavZAP installation is accessible from multiple URLs (URL1, URL2), otherwise settings (such as enabled/active collections) stored from the URL1 will be incompatible with settings stored from URL2
+- configuration - added globalCalendarColorPropertyXmlns configuration option - used to define the namespace for calendar-color property (see below)
+- configuration - changed default value for delegation option to true (in globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings)
+- configuration - changed default value for globalEventStartPastLimit and globalEventStartFutureLimit from 2 to 3
+- added Japan localization (ja_JP) - thanks Muimu Nakayama
+- added support for loading and unloading of user collections and delegated collections (delegation functionality)
+- added support for calendar color change (write support for calendar-color property)
+- added arrow icons for agenda views to indicate out of view events
+- added currently logged user into the page title
+- added hover element for calendar events
+- updated localizations - thanks Michael Rasmussen [da_DK], Marten Gajda [de_DE], Damián Vila [es_ES], Jean-Christophe Bach [fr_FR], Luca Ferrario [it_IT], Johan Vromans [nl_NL], Selcuk Pultar [tr_TR], Александр Симонов [ru_RU], Yevgen Martsenyuk [uk_UA]
+- fixed occasional wrong UID processing when moving events/todos between different calendar collections
+- fixed issues with subscribed calendars
+- fixed processing of alarms
+- fixed an occasional parseDate bug due to daylight saving time in specific timezones
+- various fixes, optimalizations, improvements, visual updates and more
+
+version 0.10.0.5 [2014-04-14]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- updated Russian localization (ru_RU)
+- fixed wrong processing of RECURRENCE-ID property in UTC (Z) timezone
+- fixed occasional wrong processing of repeating events generated in future
+
+version 0.10.0.4 [2014-03-15]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- added Russian localization (ru_RU) - thanks Александр Симонов
+- fixed synchronization of removed events for servers without sync-collection report support
+- minor translation fixes
+
+version 0.10.0.3 [2014-03-12]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- added support for LDAP binding in auth/ldap module (see auth/plugins/ldap_conf.inc)
+- fixed occasional wrong processing of DTEND attribute
+- fixed incorrect creation of recurring events which caused that multiple different UIDs can be present in one calendar object (edit + save of previously created events will split them into multiple objects)
+
+version 0.10.0.2 [2014-02-17]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- added Ukrainian localization (uk_UA) - thanks Serge Yakimchuck
+- added misc/readme_baikal_sabredav.txt and misc/baikal-flat-0.2.7.diff to solve issues related to storing CalDavZAP properties on SabreDAV and Baïkal - thanks Johannes Zellner
+- fixed invalid XML response processing (SabreDAV and Baïkal)
+- fixed invalid XML request if globalEventStartPastLimit and globalEventStartFutureLimit are set to null
+- fixed "delegation" XML processing
+- updated French [fr_FR] localization - thanks Jean-Christophe Bach
+
+version 0.10.0.1 [2014-02-04]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- added Spanish localization (es_ES) - thanks Damián Vila
+- updated jQuery to 2.1.0
+- updated jQuery-UI to 1.10.4
+- changed various default date formats
+- changed alarm behaviour - it is no longer possible to create multiple identical alarms (they are automatically merged into one)
+- fixed a visual bug when displaying a simple todo alert
+- fixed rare issue where UNTIL attribute of recurrent events was not processed correctly
+
+version 0.10.0 [2014-01-22]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: this release contains new, changed and also removed configuration options (always use the latest config.js)
+- configuration - added globalEventStartPastLimit and globalEventStartFutureLimit for time-range filtering - note: for servers without time-range filtering support you need to set both variables to null (see config.js)
+- configuration - replaced globalInactiveCollections and globalInactiveTodoCollections by globalActiveCalendarCollections and globalActiveTodoCollections (see config.js)
+- configuration - removed globalResourceHeaderShowLogin option - it is replaced by much more flexible hrefLabel option in globalAccountSettings and globalNetworkCheckSettings (see config.js)
+- configuration - removed syncInterval option from globalAccountSettings and globalNetworkCheckSettings - detection of sync-token changes is now performed by ONE request instead of N (number of collections) - use globalSyncResourcesInterval instead
+- configuration - removed crossDomain and withCredentials options from default globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings - both settings are still available but there is NO REASON to use them (crossDomain is detected automatically, and I've never seen anyone who understand when to use withCredentials /there is NO REASON to set it to true!/)
+- major improvements and changes in sychronization code - MUCH reduced number of HTTP request to server
+- major design changes (including the open source Roboto font)
+- major readme.txt update with detailed descriptions of most common setup problems
+- added support for time-range filtering (requires server with time-range filtering support) - EXTREME performance improvements
+- added workaround for buggy HTML5 cache handling in the latest Firefox
+- added "equivalency" for todo filters (globalAppleRemindersMode) - NEEDS-ACTION, IN-PROGRESS and CANCELLED are processed as NEEDS-ACTION
+- added calendar color indicator for event/todo forms (unified with the upcoming CardDavMATE)
+- added handling of unsupported settings
+- added support for 'headervalue' collection property (namespace: http://inf-it.com/ns/dav/) - useful for collection grouping
+- added new overlay with refresh button, when cache manifest change is detected (it forces users to reload the page)
+- added support/mapping for alternative timezone names - e.g. 'US/Pacific' (legacy name) is mapped to 'America/Los_Angeles' (current name)
+- changed resource list design (unified with the upcoming CardDavMATE)
+- changed todo processing if globalAppleRemindersMode is enabled - todos with start and no end are processed as simple todos
+- changed displaying of repeating todo confirm question
+- changed time-range filtering for todos - all todos from future are loaded from server initially
+- updated French [fr_FR] localization - thanks Jean-Christophe Bach
+- optimized window resizing functionality
+- fixed local timezone processing
+- fixed loader hanging after login if subscribed calendar list is empty
+- fixed generating of repeating events in future
+- fixed RRULE processing if specified in YYYYMMDD format
+- fixed displaying of arrows for repeating events
+- fixed sorting of resources
+- fixed various search issues
+- disabled opening of new event/todo form if only read-only collections are present
+- removed jQuery source mapping file reference
+- LOT of other improvements and fixes
+
+version 0.9.1.2 [2013-08-05]:
+- fixed processing of recurrent events (special recurrences - correct BYMONTHDAY processing)
+- fixed globalTimeFormatBasic configuration option processing (it is no longer ignored)
+- removed old and unused configuration options (globalDefaultDisplayTodo and globalTodoHideExpired)
+
+version 0.9.1.1 [2013-07-30]:
+- fixed processing of recurrent events with until date
+- fixed saving of until dates values in recurrent events
+- fixed parsing of double quoted TZID param values
+
+version 0.9.1 [2013-07-26]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: this release contains changed configuration options (always use the latest config.js)
+- configuration - changed globalAppleRemindersMode option values - newly supported values are iOS6, iOS7, true (it is set to latest supported iOS - in this case iOS7) and false (see config.js)
+- added Turkish localization (tr_TR) - thanks Selcuk Pultar
+- updated localizations - thanks Michael Rasmussen [da_DK], Marten Gajda [de_DE], John Fischer [fr_FR], Luca Ferrario [it_IT] and Johan Vromans [nl_NL]
+- added additional automatic fixes for invalid events
+- added support for STATUS attribute
+- added support for CALSCALE attribute (only GREGORIAN is supported; missing attribute = GREGORIAN)
+- added automatic change of "time to" after "time from" change (preserve the event/todo duration)
+- added support for dynamic height of NOTE field - thanks http://www.jacklmoore.com/autosize/
+- fixed problem with always visible completed todos when globalAppleRemindersMode enabled
+- fixed window resize callback
+- fixed incorrect detection of privileges for binded resources
+- fixed processing of RECURRENCE-ID in events/todos
+- fixed parsing of todo/event components with same UID in subscribed calendars
+- fixed parsing of due date timezone
+- fixed processing of DURATION value for allday events
+- fixed problem with multiple URL and LOCATION attributes
+- fixed handling of VERSION attribute
+- fixed repeating todo and event processing
+- fixed timezone picker problems
+- updated jQuery to 2.0.3
+- changed default "due date" for todos to date selected in the todo calendar
+- other improvements and fixes
+
+version 0.9.0 [2013-06-27]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: if you use DAViCal with cross-domain setup see the modified Apache configuration in misc/config_davical.txt (added Access-Control-Expose-Headers header)
+- note: if you use OS X Calendarserver it is recommended to re-patch your installation (added Access-Control-Expose-Headers header; see misc/readme_osx.txt)
+- note: this release contains new and also changed configuration options (always use the latest config.js)
+- configuration - added globalSettingsType option - set the destination for client settings on server (useful if your server not allows to store properties to "principal-URL" but allows to store them to "calendar-home-set")
+- configuration - added checkContentType option into globalAccountSettings and globalNetworkCheckSettings - enables content-type checking for server response (only objects with proper content-type are inserted into interface) - if you cannot see data in the interface you may try to disable it
+- configuration - added globalAppleRemindersMode option (enabled by default) - it enables workarounds for Apple clients (see config.js)
+- configuration - added globalIgnoreCompletedAlarms option (enabled by default) - it disables alarm for completed todos (see config.js)
+- MAJOR performance improvements
+- added support for Cyrus server - thanks Ken Murchison
+- added support for additional CalDAV servers (should work with the same servers as CardDavMATE)
+- added completely new and shiny interface for todos
+- added support for additional todo properties and repeating todos
+- added support for PRODID property for both events and todos
+- added new custom formats for time and day strings based on currently selected localization
+- added Hungarian localization (hu_HU)
+- changed cache.manifest - cache all image files in HTML5 cache
+- changed ordering of calendars in selectbox (globalSortAlphabet is used)
+- changed internal logic of resource loading, synchronization and version check functionality (to prepare for integration with CardDavMATE)
+- changed minimum height of events to height of "30 minutes" event
+- fixed Firefox placeholder colors
+- fixed and updated various localization strings
+- fixed events and todos sometimes being editable even with forceReadOnly flag enabled
+- fixed various timezone processing issues
+- fixed visual event form bug when using repeat option with weekend/business days
+- fixed current time indicator error during day/week transition
+- fixed timezone picker (at the bottom of the resource list) - it is no longer editable using keyboard navigation while editing event/todo
+- fixed wrong ajax parameter which may cause warnings in server log
+- fixed an issue when timezone picker was not always visible after login
+- updated left menu with new icons (thanks Kelecsenyi Timotej - http://timotejos.com/)
+- updated jQuery to 2.0.2 (and related fixes)
+- updated jQuery-UI to 1.10.3 (and related fixes)
+- updated auth module to reflect the latest changes in configuration options
+- updated misc directory (it is the same as in CardDavMATE)
+- updated localizations - thanks Marten Gajda [de_DE], John Fischer [fr_FR], Luca Ferrario [it_IT] and Johan Vromans [nl_NL] (note: Danish [da_DK] localization contains some untranslated strings)
+- LOT of other improvements and fixes
+
+version 0.8.1.1 [2013-02-25]:
+- fixed multiple bugs related to processing of recurrent events
+- fixed forced lower case problem of some strings in the interface
+- other minor fixes
+
+version 0.8.1 [2013-02-21]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache)
+- added support for background calendars in day view event list
+- added missing misc directory
+- fixed syntax error if configured using globalAccountSettings
+- fixed issues with delegation proccessing if multiple accounts are configured
+- fixed issue with pinned tab in Firefox (manual reloading is not required anymore)
+- fixed privileges for binded calendars - these are now strictly read only
+- fixed wrong proccessing of number of occurrences for recurrent events
+- fixed issue where readonly events could still be edited via drag and drop and resizing
+- fixed and optimized the "Revert" button functionality
+- fixed issue with saving empty URL property
+- fixed incorrect alarm box position
+- fixed bad positioning of error image for "repeat end" date field
+
+version 0.8.0 [2013-02-13]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache)
+- note: this release contains new configuration option (always use the latest config.js)
+- configuration - added globalUseJqueryAuth option - use jQuery .ajax() auth or custom header for HTTP basic auth (default); set this option to true if your server uses digest auth (note: you may experience auth popups on some browsers)
+- configuration - added globalRemoveUnknownTimezone (disabled by default) - it removes non-standard/unknown timezones if event/todo is edited (and saved)
+- configuration - added delegation option into globalAccountSettings and globalNetworkCheckSettings (sets additional delegated resources - if true then delegation is enabled for all available resources; if false (default) then delegation is disabled; if an array of URL encoded resources or regexes (for example: ['/caldav.php/user/', '/caldav.php/user%40domain.com/', new RegExp('^/caldav.php/a[b-x].+/$', 'i')] then delegation is enabled for all specified resources
+- configuration - added ignoreAlarms option into globalAccountSettings and globalNetworkCheckSettings (defines an array calendars with disabled alarm - if true then all alarms are ignored; if false (default) then alarms are enabled; if an array of URL encoded collections or regexes (for example: ['/caldav.php/user/collection/', '/caldav.php/user%40domain.com/collection/', new RegExp('^/caldav.php/user/collection[0-9]/$', 'i')] then alarm is disabled for all specified resources
+- configuration - added backgroundCalendars option into globalAccountSettings and globalNetworkCheckSettings - defines an array of background calendars - if there is at least one event defined for the given day in a background calendar, the background color for that day will be pink/light-red; to use this feature define an array of URL encoded collections or regexes (for example: ['/caldav.php/user/collection/', '/caldav.php/user%40domain.com/collection/', new RegExp('^/caldav.php/user/collection[0-9]/$', 'i')])
+- configuration - added user defined time format support for events via globalTimeFormatBasic and globalTimeFormatAgenda variables (see config.js)
+- configuration - changed forceReadonly property proccessing - URL encoded collections and also regexes are now supported (see config.js)
+- configuration - changed globalCalendarSelected variable proccessing - full UID (for example: http://username@domain.com:8080/caldav.php/user/calendar/) and also UID matching regexes are now supported (see config.js)
+- configuration - date and time formats are now predefined for each localization - if you want to use custom date and time formats instead of predefined formats (defined by localizations) use globalAMPMFormat and globalDatepickerFormat variables (commented out by default)
+- added Danish localization (da_DK) - thanks Niels Bo Andersen
+- added German localization (de_DE) - thanks Marten Gajda and Thomas Scheel
+- added Italian localization (it_IT) - thanks Luca Ferrario
+- added French localization (fr_FR) - thanks John Fischer
+- added Dutch localization (nl_NL) - thanks Johan Vromans
+- added additional functionality for today button - now it scrolls the calendar to ensure that the today slot is visible in the top of the view
+- added support for fallback to PROPFIND if REPORT is not supported and server returns incorrect 403 error code (instead of 400 or 501)
+- added support for events without DTEND or DURATION values
+- added support for DURATION property
+- added support for CLASS property (Privacy)
+- added support for TRANSP property (Availability)
+- added support for URL property
+- updated timezone.js to latest IANA timezone database
+- updated auth module to reflect the latest changes in configuration options
+- changed button label from "All future events" to "This and all future events" for more clarity
+- changed the "repeat end" option text from "after" to "occurences" for more clarity (event ends after X occurences, including the first one)
+- changed event listing in day view - now it scrolls to the very top if the currently displayed day is the first day of month (the button for loading the previous month is now visible)
+- changed event listing in day view - now it scrolls to the closest following day if the currently displayed day is not found (no events exist for that day)
+- fixed login => logout => relogin as different user bug
+- fixed "Unable to save" bug when creating/editing an event/todo
+- fixed cache_update.sh - replaced sed by ed due to cross OS compatibility problems
+- fixed duplicate scrollbar problem in week and day views
+- fixed useless revert button - it is no longer visible when creating a new event or todo
+- fixed position of the error image in todo completed field
+- fixed processing of UNTIL values in repeating events
+- fixed EXDATE value processing and saving
+- fixed January specific bug
+- fixed BYMONTH value processing - anniversaries
+- other improvements and fixes
+
+version 0.7.0 [2012-11-20]:
+- initial public release \ No newline at end of file
diff --git a/public/infcloud/changelog_carddavmate.txt b/public/infcloud/changelog_carddavmate.txt
new file mode 100644
index 0000000..3059ad9
--- /dev/null
+++ b/public/infcloud/changelog_carddavmate.txt
@@ -0,0 +1,503 @@
+CardDavMATE Changelog
+
+
+NOTE: if you are interested in integrated version of CardDavMATE and CalDavZAP (our CalDAV web client) please use InfCloud - http://www.inf-it.com/open-source/clients/infcloud/
+
+version 0.13.1 [2015-09-22]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- changed login screen autocomplete behaviour - we do not prevent browsers from remembering login/password anymore
+- fixed a bug related to vCard PHOTO attribute processing (and the related "The contact on the server was changed and reloaded!" message)
+
+version 0.13.0 [2015-09-16]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: if you use a server with cross-domain setup see the modified Access-Control-Allow-Headers and Access-Control-Expose-Headers in readme.txt (or misc/config_davical.txt or misc/calendarserver.diff); you MUST update these headers, otherwise the client will NOT work
+- configuration - added globalEnableRefresh option which enables/disables the new "refresh all resources" icon in the left application menu (disabled by default)
+- configuration - added globalCollectionDisplay, globalCollectionSort and globalContactDataMinVisiblePercentage - these options allow to configure our new fully customizable wide contact list (see config.js)
+- added Chinese localization (zh_CN) - thanks Fandy
+- added shift+login shortcut to ignore settings stored on the server and use the default settings (this functionality was added long time ago, but I forgot to mention about it)
+- added support for "Prefer: return=representation" (and related "Preference-Applied: return=representation") for PUT requests (see http://tools.ietf.org/html/rfc7240); this change REQUIRES update of Access-Control-Allow-Headers and Access-Control-Expose-Headers if cross-domain setup is used
+- added support for automatically expanding fields in the editor (e.g. if you enter a phone number, another phone number field is automatically expanded)
+- added support for multiple street components in a single address field (additional fields are automatically expanded)
+- added an option to specify a remote URL as photo source - use shift+click on a photo box to add an URL
+- added check for unsupported XML 1.0 characters in user entered data - these are replaced by a space character (to prevent client and/or server side parsing errors)
+- added title with version number for the software name/description (login screen)
+- fixed vCard line folding (RFC2426 - section 2.6)
+- changed version checking - use internal build number for software version comparison to support update notification also for beta and rc builds
+- changed initialy enabled collections behaviour - if there are no enabled collections during the login, enable all available collections owned by the logged user
+- changed format and comments in config.js
+- changed storing of user settings (PROPPATCH request) - no server request will be made if there is no change in settings
+- updated jQuery to 2.1.4
+- updated localizations - thanks Niels Bo Andersen [da_DK], Marten Gajda [de_DE], Damian Vila [es_ES], Gabriela Vattier [fr_FR], Luca Ferrario [it_IT], Muimu Nakayama [ja_JP], Johan Vromans [nl_NL], Selcuk Pultar [tr_TR], Александр Симонов [ru_RU], Serge Yakimchuck [uk_UA]
+- other improvements and fixes
+
+version 0.12.1 [2015-03-16]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: you NEED to enable "mod_headers" in Apache (for other servers see your server documentation) which is used to generate proper HTTP headers (required for correct support of HTML5 cache in browsers); the previously used mod_expire is not longer used (see the changelog entry below)
+- added support for absolute collection URLs returned in PROPFIND request
+- fixed HTML5 cache related problems (especially in Firefox) by returning "Cache-Control: max-age=0, must-revalidate, no-cache, no-transform, private" header instead of "Cache-Control: max-age=0" - this fix requires enabled "mod_headers" (you can disable the previously used "mod_expires") in Apache - for more details see .htaccess
+- updated jQuery-UI to 1.11.4
+- other improvements and fixes
+
+version 0.12.0 [2015-01-26]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: this release contains new, changed and also removed configuration options (always use the latest config.js)
+- configuration - removed showHeader option from globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings - it is incompatible with new functionality
+- configuration - removed globalResourceHeaderShowLogin option - it is replaced by much more flexible hrefLabel option in globalAccountSettings and globalNetworkCheckSettings (see config.js)
+- configuration - removed syncInterval option from globalAccountSettings and globalNetworkCheckSettings - detection of sync-token changes is now performed by ONE request instead of N (number of collections) - use globalSyncResourcesInterval instead
+- configuration - removed crossDomain and withCredentials options from default globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings - both settings are still available but there is NO REASON to use them (crossDomain is detected automatically, and I've never seen anyone who understand when to use withCredentials /there is NO REASON to set it to true!/)
+- configuration - added globalGroupContactsByCompanies configuration option - used to group contacts by company/department name instead of simple alphabetical sort (default false)
+- configuration - added globalCrossServerSettingsURL configuration option - enable this option if your CardDavMATE installation is accessible from multiple URLs (URL1, URL2), otherwise settings (such as enabled/active collections) stored from the URL1 will be incompatible with settings stored from URL2
+- configuration - added globalAddrColorPropertyXmlns configuration option - used to define the namespace for addressbook-color property (see below)
+- configuration - changed default value for delegation option to true (in globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings)
+- added Spanish localization (es_ES) - thanks Damián Vila
+- added Japan localization (ja_JP) - thanks Muimu Nakayama
+- added Russian localization (ru_RU) - thanks Александр Симонов
+- added Ukrainian localization (uk_UA) - thanks Serge Yakimchuck
+- MAJOR functionality and design changes (including the open source Roboto font)
+- MAJOR performacne improvements
+- major improvements and changes in the sychronization code
+- major readme.txt update with detailed descriptions of most common setup problems
+- added support for loading and unloading of user collections and delegated collections (delegation functionality)
+- added addressbook color functionality (we hope you will like the new approach :-))
+- added automatic photo resize functionality (no more photo size limit - we simply resize it in the browser)
+- added support for generic (Apple-like) date attributes (instead of fixed BDAY and ANNIVERSARY)
+- added support for 'headervalue' collection property (namespace: http://inf-it.com/ns/dav/) - useful for collection grouping
+- added new overlay with refresh button which is shown when cache manifest change is detected (it forces users to reload the page)
+- added support for LDAP binding in auth/ldap module (see auth/plugins/ldap_conf.inc)
+- added currently logged user into the page title
+- added misc/readme_baikal_sabredav.txt and misc/baikal-flat-0.2.7.diff to solve issues related to storing CardDavMATE (and also CalDavZAP) properties on SabreDAV and Baïkal - thanks Johannes Zellner
+- removed globalSearchAutoCleanup configuration option (it is no longer required)
+- updated auth module to reflect the latest changes in configuration options
+- updated jQuery to 2.1.3
+- updated jQuery-UI to 1.11.2
+- various fixes, optimalizations, improvements, visual updates and more
+
+version 0.11.1 [2013-07-26]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- added support for dynamic height of NOTE field - thanks http://www.jacklmoore.com/autosize/
+- added Turkish localization (tr_TR) - thanks Selcuk Pultar
+- updated Danish [da_DK] localization - thanks Michael Rasmussen
+- updated jQuery to 2.0.3
+- fixed incorrect detection of privileges for binded resources
+
+version 0.11.0 [2013-06-27]:
+- note: do not forget to execute the cache_update.sh script every time you update your configuration or any other file (otherwise your browser will use the previous version of files stored in HTML5 cache); alternatively you can update the cache.manifest manually - edit the second line beginning with "#V 20" to anything else (this file simple needs "some" change)
+- note: if you use DAViCal with cross-domain setup see the modified Apache configuration in misc/config_davical.txt (added Access-Control-Expose-Headers header)
+- note: if you use OS X Calendarserver it is recommended to re-patch your installation (added Access-Control-Expose-Headers header; see misc/readme_osx.txt)
+- note: this release contains new and also changed configuration options (always use the latest config.js)
+- configuration - globalCollectionSort, globalCollectionDisplay and globalContactStoreFN - removed equivalents for last (surname, lastname, family), middle (middlename) and first (firstname, given) for faster regex processing
+- configuration - added globalSettingsType option - set the destination for client settings on server (useful if your server not allows to store properties to "principal-URL" but allows to store them to "addressbook-home-set")
+- configuration - added checkContentType option into globalAccountSettings and globalNetworkCheckSettings - enables content-type checking for server response (only objects with proper content-type are inserted into interface) - if you cannot see data in the interface you may try to disable it
+- EXTREME performance improvements (especially for large collections)
+- added support for image editing by clicking to the image (it opens a file chooser)
+- added functionality to remember the latest selected addressbook (stored as DAV property on the server)
+- added support for html5 cache (fixes minor bugs when used offline after initial login)
+- added support for Cyrus server - thanks Ken Murchison
+- changed loading of collections - all collections are loaded immediately after login (required for future features)
+- changed XML requests (adds support for more servers)
+- changed LOCK support detection - it is detected using PROPFIND request instead of DAV header
+- fixed Firefox placeholder colors
+- fixed problem with PHOTO attribute - "PHOTO;BASE64:" is obsolete but now it is supported
+- fixed problem with removing categories using backspace if the editor is in "show" mode
+- fixed problem with duplicate IM values if vCards are edited by Android (or other) devices/editors
+- improved vCard processing performance (MAJOR improvements especially for large vCards with PHOTO)
+- improved processing of the PHOTO attribute value
+- updated jQuery to 2.0.2 (and related fixes)
+- updated jQuery-UI to 1.10.3 (and related fixes)
+- updated auth module to reflect the latest changes in configuration options
+- updated placeholder plugin to support the current version of jQuery (replaced .live(...) with .on(...))
+- updated localizations - thanks Marten Gajda [de_DE], John Fischer [fr_FR], Luca Ferrario [it_IT] and Johan Vromans [nl_NL] (note: Danish [da_DK] localization contains some untranslated strings)
+- updated misc/readme_osx.txt for OS X 10.8 (instructions to add CORS headers into Calendarserver used by OS X)
+- renamed misc/calendarserver_CardDavMATE.diff to misc/calendarserver.diff (the patch works also for CalDavZAP)
+- renamed misc/readme_lion.txt to misc/readme_osx.txt
+- LOT of other improvements and fixes
+
+version 0.10.1 [2013-02-21]:
+- note: this release contains new configuration option (always use the latest config.js)
+- configuration - added globalUseJqueryAuth option - use jQuery .ajax() auth or custom header for HTTP basic auth (default); set this option to true if your server uses digest auth such as Baïkal (note: you may experience auth popups on some browsers)
+- configuration - added delegation option into globalAccountSettings and globalNetworkCheckSettings (sets additional delegated resources - if true then delegation is enabled for all available resources; if false (default) then delegation is disabled; if an array of URL encoded resources or regexes (for example: ['/caldav.php/user/', '/caldav.php/user%40domain.com/', new RegExp('^/caldav.php/a[b-x].+/$', 'i')] then delegation is enabled for all specified resources
+- configuration - changed forceReadonly property proccessing - URL encoded collections and also regexes are now supported (see config.js)
+- configuration - date format is now predefined for each localization - if you want to use custom date format instead of predefined format (defined by localizations) use globalDatepickerFormat variable (commented out by default)
+- added support for fallback to PROPFIND if REPORT is not supported and server returns incorrect 403 error code (instead of 400 or 501)
+- added support for SOGO (it required only two minor bugfixes)
+- added title text for "Logout" and "Add Contact" buttons
+- fixed minor CSS problems (missing animations and icons during the drag&drop operations)
+- updated auth module to reflect the latest changes in configuration options
+
+version 0.10.0 [2012-12-19]:
+- note: this release contains new and also changed configuration options (always use the latest config.js)
+- configuration - added globalSearchAutocleanup (disabled by default) - it allows to enable automatic search filter cleanup on collection (not vCard group) change
+- configuration - changed globalDatepickerFormat default value from 'yy-mm-dd' to 'dd.mm.yy'
+- added write support for PHOTO attribute (frequently requested) - just drag your photo into the photo box - note: only photos with size up to 64KiB (65536 B) are accepted, bigger photos are silently ignored ("best" size for your photo: 164 x 183 px)
+- added Dutch localization (nl_NL) - thanks Johan Vromans
+- fixed major version checking bug
+- fixed invalid template usage for unsupported parameters
+- fixed X-ABLabel attribute matching (now it is case insensitive)
+- fixed country switching (if a user switches to different country after he entered the address fields, these are preserved)
+- fixed invalid addressbook list content if collection is changed with non-empty search filter and enabled globalSearchAutocleanup (note: it was enabled by default in previous versions)
+- fixed "undefined" text in addressbook list if N attribute value not uses full format
+- fixed "Error: 'unable to save': correct the highlighted invalid values!" error message (related to custom labels)
+- fixed country ordering for non-en_US localizations
+- fixed problem with editor image dimensions (if a vCard contains PHOTO)
+- fixed datepicker "Uncaught Unexpected literal at position" warning in the console log
+- fixed "add contact" button state when the editor is in "edit" mode
+- fixed translation of "Resources" string
+- fixed minor bugs in SVG images
+- improved search support - search is now possible by N [surname, firstname, middle name, prefix, suffix], NICKNAME, ORG, EMAIL and TEL attribute values (for TEL search use only numbers without spaces or other characters /leading '+' is supported/)
+- improved support for custom attribute types - if the custom value is already defined also as a standard value, then the standard value is used
+- improved parsing of very "exotic" vCards
+- updated jQuery to 1.8.3 (it fixes IE cross domain problems)
+- updated jQuery-UI to 1.9.1 (and related fixes)
+
+version 0.9.9 [2012-11-06]:
+- note: replaced custom headers in .htaccess by mod_expires options (you need to set "AllowOverride FileInfo Limit Indexes" for CardDavMATE directory and enable mod_expires in Apache /you can disable the previously used mod_headers/) - the client will also work without the .htaccess but browsers can/will cache the javascript files what can cause problems when you update your installation
+- note: this release contains new configuration options (always use the latest config.js)
+- configuration - added globalCollectionDisplayOrg (enabled by default) - it allows to choose which attribute value is used for "company contacts" (ORG or N/FN)
+- configuration - added globalDatepickerFirstDayOfWeek (default 1 => Monday) - it allows to set the first day of week for datepicker (see config.js)
+- configuration - added globalUriHandlerProfile - it allows to set profile URLs for X-SOCIALPROFILE (see config.js)
+- configuration - updated default globalNetworkCheckSettings and globalNetworkAccountSettings - fixed bug if you use full URL (with "/index.html" included)
+- added write support for custom labels (frequently requested)
+- added support for X-PHONETIC-FIRST-NAME and X-PHONETIC-LAST-NAME attributes (used by Apple clients)
+- added support for X-SOCIALPROFILE attribute (used by Apple clients)
+- added IE 10 support
+- design changes and MAJOR cross OS/browser CSS fixes
+- new login screen logo
+- rearrangement of options for "Related" attribute (more frequently used options are moved to top)
+- changed editor width - vCard editor is now wider (frequently requested)
+- disallow to drag a contact into contact group if the contact is already a member of that group
+- fixed parsing of very exotic vCards with "/" character in param values
+- fixed GUI bugs related to contact group drag&drop operations
+- fixed suggestion width for Categories
+- fixed Firefox "AddCategory" placeholder color (Firefox bug?)
+- LOT of other improvements and fixes (sorry, I am too lazy to write changelog entry for all changes :-))
+
+version 0.9.8 [2012-10-04]:
+- note: this release contains new and also changed configuration options (always use the latest config.js)
+- configuration - changed globalCollectionSort, globalCollectionDisplay and globalContactStoreFN options - string values are replaced by more flexible array values (see config.js)
+- configuration - added globalBackgroundSync (enabled by default) - support for synchronisation if browser window/tab is not focused (see config.js)
+- configuration - added globalResourceAlphabetSorting (enabled by default) - support for user defined resource (server account) sorting instead of forced alphabetical sorting /applicable only if more than one resource is configured/ (see config.js)
+- configuration - added forceReadOnly option into globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings (sets the resource or list of collections as "read-only" - if true then the whole resource will be marked as "read-only"; if an array of collections /for example: ['collection1','collection2']/ then collections in the list will be marked as "read-only"; if null /default/, unset or unknown then real server detected privileges are used)
+- configuration - added new globalNetworkAccountSettings example (by default it refers to CURRENT_URL/auth/ subdirectory)
+- added support for simultaneously loaded collections (when switching to a different collection the previous collection is not unloaded - if you want back the previous behaviour use "var globalForceUnloadPrevCollection=true;" in config.js)
+- added support for remembering of the currently selected contact when switching to a different collection/contact group (when switching back, this contact is re-selected)
+- added support for automatic scrollbar move when a collection/contact group is clicked to ensure that the contact is visible in the interface
+- added support for folding long lines in newly created vCards (RFC2426 - section 2.6)
+- added support for detection of DAV compliance classes (don't try to LOCK the collection if there is no LOCK support /class 2/)
+- added support for content type checking (only 'text/vcard' and 'text/x-vcard' are accepted)
+- changed auth module XML configuration format and related changes (see misc/example_config_response.xml and auth/config.inc)
+- changed company contacts displayvalue to ORG attribute value (if present, otherwise N or FN is used)
+- changed vCard UID generation (no "-CardDavMATE" suffix in newly generated UIDs)
+- improved collection and addressbook insert sort - O(n*log(n)) /major performance improvement especially for large collections/
+- improved suggestion sorting for company, department and categories (globalSortAlphabet is used)
+- fixed possible missing contact groups in the interface if more than one adressbook contains contact groups
+- fixed possible wrong header position if non-null hrefLabel is used with non-empty additionalResources
+- fixed login screen language switching bug after unsuccessful authentication
+- fixed sortkey comparison if a compared character is not present in globalSortAlphabet
+- fixed header removal when deleting contacts from addressbooks
+- fixed error if globalAddressCountryFavorites is undefined
+- fixed incorrect scrollbar position for keyboard navigation functionality
+- fixed undefined variable problem with empty company name and non-empty department
+- fixed crossDomain value for the software update check
+- fixed image resizing bug when contacts are switched too quickly using keyboard navigation
+- fixed minor iOS bugs in CSS
+- other improvements, fixes and internal code reorganisation
+- workaround for displaying of images created with Evolution ("X-EVOLUTION-UNKNOWN" image type)
+- workaround for undefined image type in PHOTO attribute
+- changed "reset search button" cursor to pointer
+- moved all CSS files into css/ directory and related changes
+- updated readme.txt with up to date instructions
+- updated CSS files for integration with the upcoming CalDAV web client
+- updated jQuery to 1.8.2
+- updated jQuery-UI to 1.8.23
+
+version 0.9.7.1 [2012-06-19]:
+- support for RFC 6578 final (proper synchronization of deleted contacts with Davical 1.1.0)
+
+version 0.9.7 [2012-05-29]:
+- note: this release contains new configuration options (always use the latest config.js)
+- configuration - added globalEditorFadeAnimation - support for custom fade in/out animation speed (see config.js)
+- configuration - added globalInterfaceCustomLanguages option - it allows to limit/reorder the interface languages shown in the login screen
+- configuration - added hrefLabel option into globalAccountSettings and globalNetworkCheckSettings - support for custom server name in the resource header instead of the full href value (see config.js)
+- configuration - added globalEnableKbNavigation option - it allows to enable/disable the keyboard navigation functionality [key up/key down] in the contact list (see config.js and the changelog below)
+- configuration - changed default value for globalSyncResourcesInterval to 300000 miliseconds (resource list changes are rare)
+- configuration - changed default syncInterval from 30000 to 60000 miliseconds
+- configuration - updated globalSortAlphabet and globalSearchTransformAlphabet
+- major internal code cleanup - all ajax operations (even subsequent) are now async => better performance, fixed Firefox 11+ unable to delete contact and unable to perform drag&drop operations
+- major internal code cleanup - number of requests to the server is minimized => better performance, better bandwidth usage
+- improved performance of adding new elements in vCard editor by ~40%
+- added keyboard navigation functionality for contact switching by pressing [key up/key down] (enabled by default)
+- added support to search by ORG and EMAIL attribute values
+- added text suggestion for company (from current collection) and department (from current collection but only for the current company) fields in vCard editor
+- added French localization (fr_FR) - thanks John Fischer
+- fixed lost sync-token during resource sync (every globalSyncResourcesInterval miliseconds) => result: MUCH less bandwidth usage!
+- fixed possible missing contacts in the interface if network error occurs during the addressbook-multiget REPORT (after the successful sync-collection REPORT)
+- fixed vCard value escaping - colon is not escaped anymore (ambiguity of the vCard 3.0 standard)
+- fixed country selectbox lost focus if the country is changed by keyboard
+- fixed editor remains in the "edit" mode after the "save" operation if newly created contact is hidden due to active search filter
+- fixed contact list "header" hiding in vCard group with active search filter
+- fixed set next contact as active when removing contact from vCard group (previously always the first contact was set as active)
+- fixed "add contact" button state - now it is inactive during a collection loading
+- fixed compatibility with future versions of jQuery
+- moved logout button to the resource list header (to match the position in the upcoming CalDav web client)
+- updated .htaccess to support image caching and output compression using mod_deflate
+- updated jQuery-UI to 1.8.20
+
+version 0.9.6 [2012-04-25]:
+- note: if you use DAViCal with cross-domain setup see the modified Apache configuration in misc/config_davical.txt (solved problem with CardDAV-Sync from Marten Gajda)
+- note: if you use MacOS X Lion calendarserver it is recommended to re-patch your installation (see misc/readme_lion.txt and the changelog below)
+- configuration - changed default syncInterval from 15000 to 30000
+- added support for automatic detection of crossDomain option in globalAccountSettings, globalNetworkCheckSettings and globalNetworkAccountSettings (if not set to boolean true/false it is automatically detected; default is null - autodetect)
+- added IE9+ support (non cross-domain setup only /IE9 & jQuery limitation/; minor graphics glitches due to missing CSS support for "disabled" html elements)
+- added support for prefix and suffix (vCard N attribute)
+- added Czech localization (cs_CZ)
+- added Danish localization (da_DK) - thanks Niels Bo Andersen
+- fixed search with upper case letters not present in globalSearchTransformAlphabet
+- fixed parsing of double quoted vCard param values (who use this?)
+- fixed Andorra address fields
+- fixed minor graphics glitch with update notification after logout and new login
+- updated auth module to support multiple resources in response + updated auth/config.inc with modified templates
+- updated misc/config_davical.txt (better handling of preflighted OPTION requests)
+- updated misc/calendarserver_CardDavMATE.diff (support for cross-domain queries with X-Requested-With header /upcoming Safari 5.2/)
+- updated default globalSearchTransformAlphabet in config.js
+- updated CSS detection rule for iPad (new screen resolution for iPad 3)
+- updated jQuery to 1.7.2
+- updated jQuery-UI to 1.8.19
+- replaced .attr('value'[, ...]) with .val([...])
+- many other fixes
+
+version 0.9.5 [2012-03-12]:
+- note: this release contains new configuration option (always use the latest config.js)
+- configuration - added globalSearchTransformAlphabet setting - used for transformation of non-ASCII characters to ASCII (for search support)
+- added search support (search is performed on the addressbook values in the interface + category names)
+- added language selector to login screen (use globalInterfaceLanguage to set the preselected language)
+- added Hungarian localization (hu_HU)
+- scrollable resource list (only if needed)
+- minor bug fixes
+
+version 0.9.4 [2012-02-29]:
+- fixed vCard parameter parsing (TYPE=X,Y now works correctly again)
+- fixed date parsing for BDAY and X-ANNIVERSARY attributes (dates with missing '-' caused non-RFC vCard error)
+- correct "\n" unescaping in vCard values if the previous character is '\'
+- updated phone parameter definitions (iOS5 uses "TYPE=voice" in addition of other types)
+- correct header removing from addressbook if contact is removed
+- changed default value for undefined phone type from "main" to "cell" ("main" is Apple specific)
+- added "TYPE=internet" into EMAIL parameters if it is missing (better non-RFC vCard compatibility)
+- added "fax" phone type (in addition of "home fax" and "work fax")
+- use of .prop() instead of .attr() to set 'readonly', 'disabled', 'selected', 'checked' and 'src' properties
+- minor fixes for Slovak and German (thanks Thomas Scheel) localizations
+- other minor fixes
+
+version 0.9.3 [2012-02-17]:
+- added German localization (de_DE) - thanks Marten Gajda
+- fixed invalid switch to PROPFIND if REPORT/sync-collection is unsupported (+ related bugfixes)
+- changed DOM operations to fix Firefox only bugs with 0.9.2 (Firefox or jQuery bug?)
+- fixed "active editor -> logout -> login" problem (inactive resource/addressbook list)
+
+version 0.9.2 [2012-02-13]:
+- security fix: correct globalAccountSettings cleanup after logout
+- note: this release contains new configuration options (always use the latest config.js)
+- configuration - increased default timeout value for configuration account templates from 10 to 30 seconds
+- configuration - changed default configuration for Davical - works also if Davical is installed into subdirectory (instead of domain root directory)
+- configuration - added globalContactStoreFN option - support for custom FN formatting instead of fixed 'prefix,last,middle,first,suffix' (see config.js)
+- configuration - added globalCompatibility option - customizations for 3rd party clients
+- configuration - globalCompatibility: added anniversaryOutputFormat option - supported values: 'apple' (default) and 'other' (see config.js)
+- configuration - added globalInterfaceLanguage option (see config.js and the changelog below)
+- added localization support (new localizations are welcome!)
+- added English localization (en_US)
+- added Slovak localization (sk_SK)
+- added Italian localization (it_IT) - thanks Luca Ferrario
+- added support for Oracle, SabreDav and probably many other CardDav servers
+- added support for CATEGORIES attribute with auto-suggest for categories in active collection (category separator: Enter)
+- 100% performance improvement for PUT requests (add/edit/move/... operations) - get the modified Etag from PUT response header instead of additional REPORT requests (if the server support this feature, otherwise get the modified vCard with new Etag from the server)
+- notable performance improvements for DOM operations (contact loading and manipulation)
+- correct '\' character escaping in vCard values
+- removed write support for X-EVOLUTION-* attributes (caused many problems and Evolution already support the X-* attributes without "-EVOLUTION" prefix)
+- many other fixes
+
+version 0.9.1 [2012-01-29]:
+- note: this release contains new configuration options (always use the latest config.js)
+- configuration - added lockTimeOut option into globalAccountSettings and globalNetworkCheckSettings - this option is used by the LOCK method and sets the lock timeout for the resource (default: 10000 miliseconds)
+- configuration - new globalDatepickerFormat option - datepicker date format setting (see config.js)
+- added support for BDAY attribute
+- added support for X-ANNIVERSARY, X-EVOLUTION-ANNIVERSARY and X-ABDATE (with "anniversary flag") attributes
+- added support for multiple URL attributes with params (many clients use this approach in vCard 3.0 even if params are not RFC compliant)
+- contact images are displayed with correct aspect ratio
+- CSS fixes (login page padding problem, icon positioning problem for data handler icons in Firefox and many Windows only Firefox fixes)
+- major performance improvement for country/address format switching
+- added "Note: your browser is unsupported!" message to login screen for IE and Opera
+- increased default timeOut values in config.js to 10000 (reported problems with slow/overloaded servers)
+- updated jQuery-UI to 1.8.17
+- "add contact" and edit operations automatically set focus on "Firstname" in the editor
+- click on the active contact is ignored (there is no reason to reload it into editor)
+- renamed account-uid to data-account-uid (HTML5 compliance)
+- added missing alt attributes in index.html (HTML5 compliance)
+- removed "meta http-equiv" from index.html (HTML5 compliance)
+- updated readme.txt
+
+version 0.9.0 [2012-01-10]:
+- note: if you use DAViCal with cross-domain setup you need to update your apache configuration (see misc/config_davical.txt)
+- note: if you use MacOS X Lion calendarserver you need to re-patch your installation (see misc/readme_lion.txt and the changelog below)
+- added support for drag&drop contact move operation (not available if the source or destination collection is read-only)
+- added support for "Delete from Group" (available if an Apple contact group is loaded)
+- added support for drag&drop add contact to contact group (available for active resource and its contact groups)
+- major internal cleanup and bugfixes
+- fixed auth module/generic plugin HTTP request used for authentication
+- minor iOS related and other CSS fixes
+
+version 0.8.3 [2011-12-25]:
+- configuration: new globalAddressCountryFavorites option - favorite countries at the top of the country list in the editor
+- increase of RegExp performance by ~70% (use of pre-built regular expressions)
+- additional major performance improvements (especially for large collections) by using late vCard processing (the slowest vCard transformations are performed first time when the contact is loaded into the editor)
+- added read/write backward compatibility support for the following non-standard vCard attributes: X-ASSISTANT, X-EVOLUTION-ASSISTANT, X-MANAGER, X-EVOLUTION-MANAGER, X-SPOUSE, X-EVOLUTION-SPOUSE
+- added "home mobile" and "work mobile" options for PHONE attribute
+- the loading animation (spinning ball) now disappears only after the entire collection is loaded and inserted into DOM
+- fixed the "The contact on the server was changed and reloaded!" message error caused by wrong vCard comparison
+- the collection list key value for empty string is defined as '#'
+- major CSS cleanup and cross browser CSS fixes
+- new login screen :-)
+
+version 0.8.2 [2011-12-15]:
+- configuration: new globalAddressCountryEquivalence option - support for regex based country detection in ADR attribute (see config.js)
+- added absolute URL support to resource search
+- added PRODID attribute support
+- added support for non-RFC vCards with missing N and/or FN attributes (SOGo Connector bug related to company vCards)
+- added automatic transformation for non-RFC TEL, EMAIL and URL attributes (Evolution bugs)
+- CSS tweaks (no select boxes if the editor is not in "edit" mode) and fixes
+- X-* IM attributes are ignored only if there is an IMPP attribute with the same value
+- the collection list key value for most common non-alphabet characters is defined as '#'
+
+version 0.8.1 [2011-12-10]:
+- minor svg icon fixes
+- better non-RFC vCard compatibility (now it is possible to delete contacts without UID attribute)
+- fixed problems with the N attribute if not all parts of the value are defined
+- fixed problems with the X-* IM attributes if no parameters defined for the attribute
+
+version 0.8.0 [2011-12-05]:
+- new vector graphics (replaced png icons with svg icons)
+- added support for MiddleName (vCard N attribute) with possibility to use "middle" in globalCollectionSort and globalCollectionDisplay configuration options
+- changed default values for globalCollectionSort and globalCollectionDisplay to "last,middle,first"
+- added support for Department (vCard ORG attribute)
+- added support for NickName (vCard NICKNAME attribute)
+- added support for JobTitle (vCard TITLE attribute)
+- added support for URL (vCard URL attribute)
+- added URI handler for TEL attributes - the default handler is tel: (see config.js)
+- added URI handler for EMAIL attributes - the default handler is mailto: (see config.js)
+- added URI handler for URL attribute - if no handler defined in the URL value the default handler is http:// (see config.js)
+- added update notification (see config.js)
+- removed Opera support (there are too many issues with Opera CSS support, SVG, missing CORS, ...)
+- update jQuery to version 1.7.1 (minimized version)
+- currently unused regexes in vcard_rfc_regex.js are commented out (minor performance improvement)
+- CSS fixes and tweaks
+- fixed undefined variable problem with non-RFC N attribute in Apple vCard groups
+- clicking to the active collection not reloads it from the server (there is no reason if it is already loaded)
+- switching back from vCard group to the collection not reloads the collection from the server (there is no reason if it is already loaded)
+- if there is no valid photo in the vCard, checking/unchecking the "Company Contact" changes the default picture in the editor (note: CardDavMATE default pictures are not saved to the server)
+- fixed several bugs by disallowing to click to resource or contact when editing another contact (fade in/out animation on resource and collection list)
+
+version 0.7.3 [2011-11-17]:
+- note: this release contains new configuration options (always use the latest config.js)
+- configuration: new globalCollectionSort and globalCollectionDisplay options (see config.js)
+- configuration: new additionalResources option available for globalNetworkCheckSettings (see config.js)
+- configuration: changed default values for timeOut to 6000 and globalSyncResourcesInterval to 30000
+- configuration: added additional examples for globalNetworkCheckSettings
+- configuration: added comments for timeOut
+- changed default settings - CardDavMATE now works without any additional setup if installed into Davical subdirectory (default setup allows access to own collections for logged user)
+- renamed DAViCal auth module to generic (this module uses basic HTTP authentication to remote server)
+- added error message if non-RFC vCard is detected (please send me the problematic vCard and I will try to fix your issue)
+- added support for Opera (only for non cross domain setup)
+- fixed timeout value for LOCK requests (previously the milisecond value was used as second value)
+- fixed resource removal bug
+- added animation for contact switching (fix for graphic glitches with slow Javascript engines)
+- added default user and company icons for vCard editor
+- added icon for company contacts in contact list
+- added cancel button when creating a new contact (it reloads the previously active contact)
+- disabled edit button in vCard editor for read-only collections
+- disabled "add icon" in contact list for read-only collections
+- moved the delete button in the editor more to the right
+- autofocus for the login field (disabled for demo mode)
+- new cross browser CSS for buttons
+- fixed checkbox CSS for Opera
+- added apple-mobile-web-app-capable meta tag into index.html (useful for web app shortcuts on iOS)
+- minor CSS fixes for iOS
+- minor CSS fixes - scrollbars are shown only when needed
+
+version 0.7.2 [2011-11-10]:
+- configuration: new globalNetworkCheckSettings configuration option for rapid client setup
+
+version 0.7.1 [2011-11-10]:
+- improved support for non-RFC vCards by adding missing newlines (Evolution problem)
+- support for non-RFC vCards without UID parameter
+- fixed a bug that caused the vCard groups to remain in the interface even after deletion from the server
+- minor vCard group related bugfixes
+
+version 0.7.0 [2011-11-09]:
+- note: this release contains many configuration changes (always use the latest config.js)
+- note: if you use DAViCal you need to update your apache configuration (see misc/config_davical.txt)
+- note: if you use MacOS X Lion calendarserver you need to re-patch your installation (see misc/readme_lion.txt and the changelog below)
+- configuration - renamed updateInterval option in globalAccountSettings to syncInterval (now the name corresponds to reality)
+- configuration - removed globalReloadCollection setting (use the syncInterval in globalAccountSettings instead)
+- configuration - added globalSyncResourcesInterval configuration option
+- configuration - added crossDomain option into globalAccountSettings and globalNetworkAccountSettings (default: true - set to false if your CardDavMATE protocol/server/port is the same as your Davical installation or if you use unsupported browser with mod_proxy /if you don't know what is mod_proxy do not set to false/)
+- configuration - updated auth module to exactly match the changed configuration options
+- configuration - renamed configuration variable in auth/plugins/ldap_conf.inc
+- new patch for MacOS X Lion calendarserver to support cross domain queries in Gecko based browsers (http://www.w3.org/TR/cors/) with updated instructions (see misc/readme_lion.txt in misc directory)
+- new auth module for DAViCal server (see auth/config.inc and auth/plugins/davical_conf.inc)
+- much better synchronization (bandwidth optimization)
+- added "vCard group" support used by Apple
+- major style sheet changes, tweaks and cleanup
+- update jQuery to version 1.7 and related fixes
+- migrate to jQuery 1.7 API
+- added IRC option into IM types
+- fixed fast collection switching concurrency problem (contacts from the previous collection are removed from the contact list)
+- fixed a bug from 0.6.x that caused the contacts to remain in the interface even after deletion from the server
+- improved support for non-RFC vCards by removing redundant newlines
+- better IMPP equivalence checking with old X-* IM attributes
+- better handling of namespaces in XML responses using custom minimalist jQuery plugin
+- added readme.txt with setup instructions
+- added help for common network/installation problems: misc/readme_network.txt
+- disallow browser to show login window popup after unsuccessful authentication using auth module (see the new $config['auth_send_authenticate_header'] option in the auth/config.inc)
+- the auth/modules/ renamed to auth/plugins/ (and related fixes)
+- fixed resource and collection sorting (wrong function call)
+- the logout button is shown only if you use globalNetworkAccountSettings
+- fixed Andorra, Jordan, Kazakhstan and Ukraine address fields
+
+version 0.6.3 [2011-10-22]:
+- patch for MacOS X Lion calendarserver to support cross domain queries (misc directory)
+- updated instructions for MacOS X Lion server and moved readme.txt to misc/lion_readme.txt
+
+version 0.6.2 [2011-10-22]:
+- fixed undefined variable in the error message
+
+version 0.6.1 [2011-10-21]:
+- MacOSX Lion Server support (more info in readme.txt)
+- fixed login problems after previous logout
+- various bugfixes and improvements
+
+version 0.6.0 [2011-10-19]:
+- major internal code cleanup
+- added default .htaccess file to prevent caching (mod_headers must be enabled!)
+- various config.js changes (always use the latest version of configuration file!)
+- instead of the static client configuration, now it is possible to set configuration URL in config.js (this URL must return valid configuration XML after successful HTTP auth)
+- added LDAP auth module which generates XML configuration for the client (after successful HTTP authentication)
+- if the configuration URL is set, the client shows login screen and deny access until the user is not authenticated (and no valid XML returned)
+- fixed a bug which causes unaccessible resources if user has no access to read the resource privileges
+- fixed an undefined variable bug which occurs when new contact is created in empty collection
+- correct UID generation for new contacts
+- correct unprocessed (unknown) elements handling when contact is edited
+- correct behavior when deleting the last contact from the collection
+- major bug fixes in resource.js and addressbook.js
+- default picture for contact (shown if picture not present in vCard)
+- added logout button (right top corner key icon)
+
+version 0.5.2 [2011-10-06]:
+- fixed regular expressions for login matching in deleteVcardFromCollection and putVcardToCollection functions (fixes add/update/delete operations)
+- fixed several CSS issues
+- added new configuration option globalWithCredentials which sets withCredentials for cross domain queries in jQuery (note: if the value is set to true, use of Access-Control-Allow-Origin "*" is not allowed)
+
+version 0.5.1 [2011-10-03]:
+- changed the delete operation to asynchronous (now all operations are async)
+- the contact is now reloaded in the interface immediately after the successful "save" operation (in the middle of the "save" animation)
+- minor animation fixes (especially for contact deletion)
+
+version 0.5.0 [2011-10-01]:
+- initial public release
diff --git a/public/infcloud/common.js b/public/infcloud/common.js
new file mode 100644
index 0000000..b5b8029
--- /dev/null
+++ b/public/infcloud/common.js
@@ -0,0 +1,2136 @@
+/*
+InfCloud - the open source CalDAV/CardDAV Web Client
+Copyright (C) 2011-2015
+ Jan Mate <jan.mate@inf-it.com>
+ Andrej Lezo <andrej.lezo@inf-it.com>
+ Matej Mihalik <matej.mihalik@inf-it.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+// Used to match XML element names with any namespace
+jQuery.fn.filterNsNode=function(nameOrRegex)
+{
+ return this.filter(
+ function()
+ {
+ if(nameOrRegex instanceof RegExp)
+ return (this.nodeName.match(nameOrRegex) || this.nodeName.replace(RegExp('^[^:]+:',''),'').match(nameOrRegex));
+ else
+ return (this.nodeName===nameOrRegex || this.nodeName.replace(RegExp('^[^:]+:',''),'')===nameOrRegex);
+ }
+ );
+};
+
+// Escape jQuery selector
+function jqueryEscapeSelector(inputValue)
+{
+ return (inputValue==undefined ? '' : inputValue).toString().replace(/([ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,'\\$1');
+}
+
+// Generate random string (UID)
+function generateUID()
+{
+ uidChars='0123456789abcdefghijklmnopqrstuvwxyz';
+ UID='';
+ for(i=0;i<32;i++)
+ {
+ if(i==8 || i==12 || i==16 || i==20) UID+='-';
+ UID+=uidChars.charAt(Math.floor(Math.random()*(uidChars.length-1)));
+ }
+ return UID;
+}
+
+
+// IE compatibility
+if (typeof window.btoa=='undefined' && typeof base64.encode!='undefined') window.btoa=base64.encode;
+
+// Create Basic auth string (for HTTP header)
+function basicAuth(user, password)
+{
+ var tok=user+':'+password;
+ var hash=btoa(tok);
+ return 'Basic '+hash;
+}
+
+// multiply regex replace {'regex': value, 'regex': value}
+String.prototype.multiReplace=function(hash)
+{
+ var str=this, key;
+ for(key in hash)
+ str=str.replace(new RegExp(key,'g'), hash[key]);
+ return str;
+};
+
+// Used for sorting the contact and resource list ...
+String.prototype.customCompare=function(stringB, alphabet, dir, caseSensitive)
+{
+ var stringA=this;
+
+ if(alphabet==undefined || alphabet==null)
+ return stringA.localeCompare(stringB);
+ else
+ {
+ var pos=0,
+ min=Math.min(stringA.length, stringB.length);
+ dir=dir || 1;
+ caseSensitive=caseSensitive || false;
+ if(!caseSensitive)
+ {
+ stringA=stringA.toLowerCase();
+ stringB=stringB.toLowerCase();
+ }
+ while(stringA.charAt(pos)===stringB.charAt(pos) && pos<min){pos++;}
+
+ if(stringA.charAt(pos)=='')
+ return -dir;
+ else
+ {
+ var index1=alphabet.indexOf(stringA.charAt(pos));
+ var index2=alphabet.indexOf(stringB.charAt(pos));
+
+ if(index1==-1 || index2==-1)
+ return stringA.localeCompare(stringB);
+ else
+ return (index1<index2 ? -dir : dir);
+ }
+ }
+};
+
+function customResourceCompare(objA, objB)
+{
+ return objA.displayValue.customCompare(objB.displayValue, globalSortAlphabet, 1, false);
+}
+
+function checkColorBrightness(hex)
+{
+ var R=parseInt(hex.substring(0, 2), 16);
+ var G=parseInt(hex.substring(2, 4), 16);
+ var B=parseInt(hex.substring(4, 6), 16);
+ return Math.sqrt(0.241*R*R+0.691*G*G+0.068*B*B);
+}
+
+// Get unique values from array
+Array.prototype.unique=function()
+{
+ var o={}, i, l=this.length, r=[];
+ for(i=0;i<l;i++)
+ o[this[i]]=this[i];
+ for(i in o)
+ r.push(o[i]);
+ return r;
+};
+
+// Recursive replaceAll
+String.prototype.replaceAll=function(stringToFind,stringToReplace)
+{
+ var temp=this;
+ while(temp.indexOf(stringToFind)!=-1)
+ temp=temp.replace(stringToFind,stringToReplace);
+ return temp;
+};
+
+// Pad number with leading zeroes
+Number.prototype.pad=function(size){
+ var s=String(this);
+ while(s.length<size)
+ s='0'+s;
+ return s;
+};
+
+// Case insensitive search for attributes
+// Usage: $('#selector').find(':attrCaseInsensitive(data-type,"'+typeList[i]+'")')
+jQuery.expr[':'].attrCaseInsensitive=function(elem, index, match)
+{
+ var matchParams=match[3].split(','),
+ attribute=matchParams[0].replace(/^\s*|\s*$/g,''),
+ value=matchParams[1].replace(/^\s*"|"\s*$/g,'').toLowerCase();
+ return jQuery(elem)['attr'](attribute)!=undefined && jQuery(elem)['attr'](attribute)==value;
+};
+
+// Capitalize given string
+function capitalize(string)
+{
+ return string.charAt(0).toUpperCase()+string.slice(1).toLowerCase();
+}
+var timezoneKeys = new Array();
+function populateTimezoneKeys()
+{
+ for(var i in timezones)
+ timezoneKeys.push(i);
+
+ timezoneKeys.push('0local');
+ timezoneKeys.push('1UTC');
+
+ timezoneKeys.sort();
+
+ timezoneKeys[0] = timezoneKeys[0].substring(1);
+ timezoneKeys[1] = timezoneKeys[1].substring(1);
+ jQuery.extend(timezones,{'UTC':{}});
+}
+
+Date.prototype.getWeekNo=function()
+{
+ var today = this;
+ Year = today.getFullYear();
+ Month = today.getMonth();
+ Day = today.getDate();
+ now = Date.UTC(Year,Month,Day,0,0,0);
+ var Firstday = new Date();
+ Firstday.setYear(Year);
+ Firstday.setMonth(0);
+ Firstday.setDate(1);
+ then = Date.UTC(Year,0,1,0,0,0);
+ var Compensation = Firstday.getDay();
+ if(((now-then)/86400000) > 3)
+ NumberOfWeek = Math.round((((now-then)/86400000)+Compensation)/7);
+ else
+ {
+ if(Firstday.getDay()>4 || Firstday.getDay()==0)
+ NumberOfWeek = 53;
+ }
+ return NumberOfWeek;
+}
+
+function zeroPad(n) {
+ return (n < 10 ? '0' : '') + n;
+}
+
+var dateFormatters = {
+ s : function(d) {return d.getSeconds() },
+ ss : function(d) {return zeroPad(d.getSeconds())},
+ m : function(d) {return d.getMinutes()},
+ mm : function(d) {return zeroPad(d.getMinutes())},
+ h : function(d) {return d.getHours() % 12 || 12},
+ hh : function(d) {return zeroPad(d.getHours() % 12 || 12)},
+ H : function(d) {return d.getHours()},
+ HH : function(d) {return zeroPad(d.getHours())},
+ d : function(d) {return d.getDate()},
+ dd : function(d) {return zeroPad(d.getDate())},
+ ddd : function(d,o) {return o.dayNamesShort[d.getDay()]},
+ dddd: function(d,o) {return o.dayNames[d.getDay()]},
+ W : function(d) {return d.getWeekNo()},
+ M : function(d) {return d.getMonth() + 1},
+ MM : function(d) {return zeroPad(d.getMonth() + 1)},
+ MMM : function(d,o) {return o.monthNamesShort[d.getMonth()]},
+ MMMM: function(d,o) {return o.monthNames[d.getMonth()]},
+ yy : function(d) {return (d.getFullYear()+'').substring(2)},
+ yyyy: function(d) {return d.getFullYear()},
+ t : function(d) {return d.getHours() < 12 ? 'a' : 'p'},
+ tt : function(d) {return d.getHours() < 12 ? 'am' : 'pm'},
+ T : function(d) {return d.getHours() < 12 ? 'A' : 'P'},
+ TT : function(d) {return d.getHours() < 12 ? 'AM' : 'PM'},
+ u : function(d) {return formatDates(d, null, "yyyy-MM-dd'T'HH:mm:ss'Z'")},
+ S : function(d) {
+ var date = d.getDate();
+ if (date > 10 && date < 20) {
+ return 'th';
+ }
+ return ['st', 'nd', 'rd'][date%10-1] || 'th';
+ }
+};
+
+
+function formatDates(date1, date2, format, options) {
+ options = options;
+ var date = date1,
+ otherDate = date2,
+ i, len = format.length, c,
+ i2, formatter,
+ res = '';
+ for (i=0; i<len; i++) {
+ c = format.charAt(i);
+ if (c == "'") {
+ for (i2=i+1; i2<len; i2++) {
+ if (format.charAt(i2) == "'") {
+ if (date) {
+ if (i2 == i+1) {
+ res += "'";
+ }else{
+ res += format.substring(i+1, i2);
+ }
+ i = i2;
+ }
+ break;
+ }
+ }
+ }
+ else if (c == '(') {
+ for (i2=i+1; i2<len; i2++) {
+ if (format.charAt(i2) == ')') {
+ var subres = formatDates(date, null, format.substring(i+1, i2), options);
+ if (parseInt(subres.replace(/\D/, ''), 10)) {
+ res += subres;
+ }
+ i = i2;
+ break;
+ }
+ }
+ }
+ else if (c == '[') {
+ for (i2=i+1; i2<len; i2++) {
+ if (format.charAt(i2) == ']') {
+ var subformat = format.substring(i+1, i2);
+ var subres = formatDates(date, null, subformat, options);
+ if (subres != formatDates(otherDate, null, subformat, options)) {
+ res += subres;
+ }
+ i = i2;
+ break;
+ }
+ }
+ }
+ else if (c == '{') {
+ date = date2;
+ otherDate = date1;
+ }
+ else if (c == '}') {
+ date = date1;
+ otherDate = date2;
+ }
+ else {
+ for (i2=len; i2>i; i2--) {
+ if (formatter = dateFormatters[format.substring(i, i2)]) {
+ if (date) {
+ res += formatter(date, options);
+ }
+ i = i2 - 1;
+ break;
+ }
+ }
+ if (i2 == i) {
+ if (date) {
+ res += c;
+ }
+ }
+ }
+ }
+ return res;
+};
+
+// possible address field positions [fid] (value = text input, ?country?= country select input)
+// 0: [ value ]
+// 1: [ ?country? ]
+// 2: [ value ]
+// 3: [ value ]
+// 4: [ value ]
+// 5: [ value ] 6: [ value ]
+// 7: [ value ] 8: [ ?country? ]
+// 9: [ value ]
+// 10: [ value ]
+// 11: [ ?country? ] <- here is the country defined by default
+// 12: [ value ]
+//
+// address field in vCard has the following format: pobox;extaddr;street;locality;region;code;country
+// only these can be used as 'data-addr-field' values
+var addressTypes=null;
+function localizeAddressTypes()
+{
+ addressTypes={
+ 'af': [ 'Afghanistan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'al': [ 'Albania',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'dz': [ 'Algeria',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ad': [ 'Andorra',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ao': [ 'Angola',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ag': [ 'Antigua and Barbuda',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ar': [ 'Argentina',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'am': [ 'Armenia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'au': [ 'Australia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressSuburb},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostal},
+ {fid: 8, type: 'country'}
+ ],
+ 'at': [ 'Austria',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'az': [ 'Azerbaijan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'bs': [ 'The Bahamas',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
+ {fid: 11, type: 'country'}
+ ],
+ 'bh': [ 'Bahrain',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'bd': [ 'Bangladesh',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'bb': [ 'Barbados',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'by': [ 'Belarus',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'be': [ 'Belgium',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'bz': [ 'Belize',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'bj': [ 'Benin',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'bm': [ 'Bermuda',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'bt': [ 'Bhutan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'bo': [ 'Bolivia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ba': [ 'Bosnia and Herzegovina',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'bw': [ 'Botswana',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'br': [ 'Brazil',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 8, type: 'country'}
+ ],
+ 'bn': [ 'Brunei Darussalam',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'bg': [ 'Bulgaria',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'bf': [ 'Burkina Faso',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'bi': [ 'Burundi',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'kh': [ 'Cambodia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'cm': [ 'Cameroon',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ca': [ 'Canada',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 8, type: 'country'}
+ ],
+ 'cv': [ 'Cape Verde',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ky': [ 'Cayman Islands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'cf': [ 'Central African Republic',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'td': [ 'Chad',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'cl': [ 'Chile',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'cn': [ 'China',
+ {fid: 1, type: 'country'},
+ {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 10, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostal}
+ ],
+ 'co': [ 'Colombia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'km': [ 'Comoros',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'cd': [ 'Democratic Republic of the Congo',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'cg': [ 'Republic of the Congo',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'cr': [ 'Costa Rica',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ci': [ 'Côte d’Ivoire',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'hr': [ 'Croatia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'cu': [ 'Cuba',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'cy': [ 'Cyprus',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'cz': [ 'Czech Republic',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'dk': [ 'Denmark',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'dj': [ 'Djibouti',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'dm': [ 'Dominica',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'do': [ 'Dominican Republic',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ec': [ 'Ecuador',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 9, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'eg': [ 'Egypt',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
+ {fid: 9, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressGovernorate},
+ {fid: 11, type: 'country'}
+ ],
+ 'sv': [ 'El Salvador',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
+ {fid: 11, type: 'country'}
+ ],
+ 'gq': [ 'Equatorial Guinea',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'er': [ 'Eritrea',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ee': [ 'Estonia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'et': [ 'Ethiopia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'fk': [ 'Falkland Islands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'fo': [ 'Faroe Islands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'fj': [ 'Fiji',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
+ {fid: 9, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'fi': [ 'Finland',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'fr': [ 'France',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'pf': [ 'French Polynesia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
+ {fid: 8, type: 'country'}
+ ],
+ 'ga': [ 'Gabon',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gm': [ 'The Gambia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ge': [ 'Georgia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'de': [ 'Germany',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gh': [ 'Ghana',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gr': [ 'Greece',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gl': [ 'Greenland',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
+ {fid: 11, type: 'country'}
+ ],
+ 'gd': [ 'Grenada',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gp': [ 'Guadeloupe',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gt': [ 'Guatemala',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gn': [ 'Guinea',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gw': [ 'Guinea-Bissau',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gy': [ 'Guyana',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ht': [ 'Haiti',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'hn': [ 'Honduras',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
+ {fid: 8, type: 'country'}
+ ],
+ 'hk': [ 'Hong Kong',
+ {fid: 1, type: 'country'},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ ],
+ 'hu': [ 'Hungary',
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 11, type: 'country'}
+ ],
+ 'is': [ 'Iceland',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'in': [ 'India',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPinCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'id': [ 'Indonesia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ir': [ 'Iran',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'iq': [ 'Iraq',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ie': [ 'Ireland',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressCounty},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 8, type: 'country'}
+ ],
+ 'im': [ 'Isle of Man',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'il': [ 'Israel',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'it': [ 'Italy',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 8, type: 'country'}
+ ],
+ 'jm': [ 'Jamaica',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'jp': [ 'Japan',
+ {fid: 2, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPrefecture},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCountyCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressFurtherDivisions},
+ {fid: 11, type: 'country'}
+ ],
+ 'jo': [ 'Jordan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'kz': [ 'Kazakhstan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ke': [ 'Kenya',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ki': [ 'Kiribati',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
+ {fid: 11, type: 'country'}
+ ],
+ 'kp': [ 'North Korea',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'kr': [ 'South Korea',
+ {fid: 0, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 1, type: 'country'},
+ {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet}
+ ],
+ 'kw': [ 'Kuwait',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'kg': [ 'Kyrgyzstan',
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 11, type: 'country'}
+ ],
+ 'la': [ 'Laos',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'lv': [ 'Latvia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'lb': [ 'Lebanon',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ls': [ 'Lesotho',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'lr': [ 'Liberia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ly': [ 'Libya',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'li': [ 'Liechtenstein',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'lt': [ 'Lithuania',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'lu': [ 'Luxembourg',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mo': [ 'Macau',
+ {fid: 1, type: 'country'},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ ],
+ 'mk': [ 'Macedonia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mg': [ 'Madagascar',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mw': [ 'Malawi',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'my': [ 'Malaysia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 8, type: 'country'}
+ ],
+ 'mv': [ 'Maldives',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ml': [ 'Mali',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mt': [ 'Malta',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'mh': [ 'Marshall Islands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mq': [ 'Martinique',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mr': [ 'Mauritania',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mu': [ 'Mauritius',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mx': [ 'Mexico',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 8, type: 'country'}
+ ],
+ 'fm': [ 'Micronesia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
+ {fid: 8, type: 'country'}
+ ],
+ 'md': [ 'Moldova',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mc': [ 'Monaco',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mn': [ 'Mongolia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'me': [ 'Montenegro',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ma': [ 'Morocco',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mz': [ 'Mozambique',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'mm': [ 'Myanmar',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'na': [ 'Namibia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'nr': [ 'Nauru',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
+ {fid: 11, type: 'country'},
+ ],
+ 'np': [ 'Nepal',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'nl': [ 'Netherlands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'nc': [ 'New Caledonia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'nz': [ 'New Zealand',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressSuburb},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostal},
+ {fid: 11, type: 'country'}
+ ],
+ 'ni': [ 'Nicaragua',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
+ {fid: 11, type: 'country'}
+ ],
+ 'ne': [ 'Niger',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ng': [ 'Nigeria',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 11, type: 'country'}
+ ],
+ 'no': [ 'Norway',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'om': [ 'Oman',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'pk': [ 'Pakistan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'pw': [ 'Palau',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
+ {fid: 8, type: 'country'}
+ ],
+ 'ps': [ 'Palestinian Territories',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'pa': [ 'Panama',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 9, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'}
+ ],
+ 'pg': [ 'Papua New Guinea',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 8, type: 'country'}
+ ],
+ 'py': [ 'Paraguay',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'pe': [ 'Peru',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ph': [ 'Philippines',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrictSubdivision},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostCode},
+ {fid: 7, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 8, type: 'country'}
+ ],
+ 'pl': [ 'Poland',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'pt': [ 'Portugal',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'pr': [ 'Puerto Rico',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
+ {fid: 8, type: 'country'}
+ ],
+ 'qa': [ 'Qatar',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 're': [ 'Réunion',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ro': [ 'Romania',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ru': [ 'Russia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCityRegion},
+ {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 11, type: 'country'},
+ {fid: 12, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode}
+ ],
+ 'rw': [ 'Rwanda',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'bl': [ 'Saint Barthélemy',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sh': [ 'Saint Helena',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'kn': [ 'Saint Kitts and Nevis',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressIslandName},
+ {fid: 8, type: 'country'}
+ ],
+ 'lc': [ 'Saint Lucia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'mf': [ 'Saint Martin',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'vc': [ 'Saint Vincent and the Grenadines',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ws': [ 'Samoa',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sm': [ 'San Marino',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 8, type: 'country'}
+ ],
+ 'st': [ 'Sao Tome and Principe',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sa': [ 'Saudi Arabia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'sn': [ 'Senegal',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'rs': [ 'Serbia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sc': [ 'Seychelles',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sl': [ 'Sierra Leone',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sg': [ 'Singapore',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'sk': [ 'Slovak Republic',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'si': [ 'Slovenia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sb': [ 'Solomon Islands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'so': [ 'Somalia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressRegion},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 8, type: 'country'}
+ ],
+ 'za': [ 'South Africa',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'gs': [ 'South Georgia and South Sandwich Islands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'es': [ 'Spain',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 8, type: 'country'}
+ ],
+ 'lk': [ 'Sri Lanka',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'sd': [ 'Sudan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sr': [ 'Suriname',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalDistrict},
+ {fid: 11, type: 'country'}
+ ],
+ 'sz': [ 'Swaziland',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'se': [ 'Sweden',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ch': [ 'Switzerland',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'sy': [ 'Syria',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'tw': [ 'Taiwan',
+ {fid: 1, type: 'country'},
+ {fid: 2, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressCountyCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressTownshipDistrict},
+ {fid: 9, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet}
+ ],
+ 'tj': [ 'Tajikistan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'tz': [ 'Tanzania',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'th': [ 'Thailand',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrictSubdivision},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'tl': [ 'Timor-Leste',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'tg': [ 'Togo',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'to': [ 'Tonga',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'tt': [ 'Trinidad and Tobago',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'tn': [ 'Tunisia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'tr': [ 'Turkey',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDistrict},
+ {fid: 7, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 8, type: 'country'}
+ ],
+ 'tm': [ 'Turkmenistan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'tv': [ 'Tuvalu',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'vi': [ 'U.S. Virgin Islands',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
+ {fid: 8, type: 'country'}
+ ],
+ 'ug': [ 'Uganda',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'ua': [ 'Ukraine',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ae': [ 'United Arab Emirates',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'gb': [ 'United Kingdom',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 4, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressCounty},
+ {fid: 9, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'us': [ 'United States',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 7, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressZip},
+ {fid: 8, type: 'country'}
+ ],
+ 'uy': [ 'Uruguay',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressDepartment},
+ {fid: 8, type: 'country'}
+ ],
+ 'uz': [ 'Uzbekistan',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'},
+ {fid: 12, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode}
+ ],
+ 'vu': [ 'Vanuatu',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'va': [ 'Vatican',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 've': [ 'Venezuela',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 7, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressState},
+ {fid: 8, type: 'country'}
+ ],
+ 'vn': [ 'Vietnam',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'region', placeholder: localization[globalInterfaceLanguage].pholderAddressProvince},
+ {fid: 5, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 6, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 11, type: 'country'}
+ ],
+ 'ye': [ 'Yemen',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'zm': [ 'Zambia',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 5, type: 'input', 'data-addr-field': 'code', placeholder: localization[globalInterfaceLanguage].pholderAddressPostalCode},
+ {fid: 6, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ],
+ 'zw': [ 'Zimbabwe',
+ {fid: 2, type: 'input', 'data-addr-field': 'street', placeholder: localization[globalInterfaceLanguage].pholderAddressStreet},
+ {fid: 3, type: 'input', 'data-addr-field': 'locality', placeholder: localization[globalInterfaceLanguage].pholderAddressCity},
+ {fid: 11, type: 'country'}
+ ]
+ };
+}
+function vObjectLineFolding(inputText)
+{
+ var outputText='';
+ var maxLineOctetLength=75;
+ var count=0;
+
+ for(var i=0; inputText[i]!=undefined; i++)
+ {
+ var currentChar=inputText.charCodeAt(i);
+ var nextChar=inputText.charCodeAt(i+1);
+ if(currentChar==0x000D && nextChar==0x000A)
+ {
+ count=0;
+ outputText+='\r\n';
+ i++;
+ continue;
+ }
+
+ var surrogatePair=false;
+ if(currentChar<0x0080)
+ var charNum=1;
+ else if(currentChar<0x0800)
+ var charNum=2;
+ else if(currentChar<0xd800 || currentChar>=0xe000)
+ var charNum=3;
+ else
+ {
+ // surrogate pair
+ // UTF-16 encodes 0x10000-0x10FFFF by subtracting 0x10000 and splitting
+ // the 20 bits of 0x0-0xFFFFF into two halves
+ charNum=4;
+ surrogatePair=true;
+ }
+
+ if(count>maxLineOctetLength-charNum)
+ {
+ outputText+='\r\n ';
+ count=1;
+ }
+ outputText+=String.fromCharCode(currentChar);
+ if(surrogatePair)
+ {
+ outputText+=String.fromCharCode(vCardText.charCodeAt(i+1));
+ i++;
+ }
+ count+=charNum;
+ }
+ return outputText;
+}
+
+function rgbToHex(rgb)
+{
+ rgb=rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d*)?|(?:\.\d+)))?\)$/);
+ function hex(x)
+ {
+ return ("0"+parseInt(x).toString(16)).slice(-2);
+ }
+ return "#"+hex(rgb[1])+hex(rgb[2])+hex(rgb[3]);
+}
+
+function hexToRgba(hex, transparency) {
+ var bigint=parseInt(hex.substring(1), 16);
+ var r=(bigint >> 16) & 255;
+ var g=(bigint >> 8) & 255;
+ var b=bigint & 255;
+
+ return 'rgba('+r+','+g+','+b+','+transparency+')';
+}
+
+function rgbToRgba(rgb, transparency)
+{
+ rgb=rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d*)?|(?:\.\d+)))?\)$/);
+ return 'rgba('+rgb[1]+','+rgb[2]+','+rgb[3]+','+transparency+')';
+}
+
+function dataGetChecked(resourceListSelector)
+{
+ var checkedArr=$(resourceListSelector).find('input[type=checkbox]:checked').not('.unloadCheck').filter('[data-id]').filter(function(){return this.indeterminate==false}).map(function(){return $(this).attr('data-id')}).get();
+
+ for(i=checkedArr.length-1; i>=0; i--)
+ if(checkedArr[i].match(new RegExp('[^/]$'))!=null && checkedArr.indexOf(checkedArr[i].replace(new RegExp('[^/]+$'), ''))!=-1)
+ checkedArr.splice(i, 1);
+
+ return checkedArr;
+}
+
+function resourceChBoxClick(obj, resourceListSelector, headerSelector, returnChecked)
+{
+ $(obj).parent().nextUntil(headerSelector).find('input[type=checkbox]:visible').prop('checked', $(obj).prop('checked')).prop('indeterminate', false);
+ if(returnChecked)
+ return dataGetChecked(resourceListSelector);
+}
+
+function collectionChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, groupSelector, returnChecked)
+{
+ if(collectionSelector.match('_item$'))
+ {
+ var tmp_coh=$(obj).parent().prevAll(headerSelector).first();
+ var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find('input[type=checkbox]:visible');
+ }
+ else
+ {
+ var tmp_coh=$(obj).parent().parent().prevAll(headerSelector).first();
+ var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find(collectionSelector).find('input[type=checkbox]:visible');
+ }
+
+ if(groupSelector!=null)
+ {
+ if($(obj).prop('checked')==false && $(obj).prop('indeterminate')==false && $(obj).attr('data-ind')=='false' &&
+ $(obj).parent().next(groupSelector).height()>0/* note: ':visible' is not working! */)
+ {
+ $(obj).prop('indeterminate', true);
+ $(obj).prop('checked', true);
+ $(obj).attr('data-ind', 'true');
+ tmp_coh.find('input[type=checkbox]:visible').prop('indeterminate', true).prop('checked', false);
+
+ if(returnChecked)
+ return dataGetChecked(resourceListSelector);
+ return true;
+ }
+ else if($(obj).attr('data-ind')=='true')
+ $(obj).attr('data-ind', 'false');
+
+ $(obj).parent().next(groupSelector).find('input[type=checkbox]').prop('checked', $(obj).prop('checked'));
+ }
+
+ if(tmp_co_chbxs.length==tmp_co_chbxs.filter(':checked').length)
+ tmp_coh.find('input[type=checkbox]:visible').prop('checked', true).prop('indeterminate', false);
+ else if(tmp_co_chbxs.filter(':checked').length==0 && tmp_co_chbxs.filter(function(){return this.indeterminate==true}).length==0)
+ tmp_coh.find('input[type=checkbox]:visible').prop('checked', false).prop('indeterminate', false);
+ else
+ tmp_coh.find('input[type=checkbox]:visible').prop('indeterminate', true).prop('checked', false);
+
+ if(returnChecked)
+ return dataGetChecked(resourceListSelector);
+}
+
+function groupChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, groupSelector, returnChecked)
+{
+ var tmp_cg=$(obj).closest(groupSelector);
+ var tmp_cg_chbxs=tmp_cg.find('input[type=checkbox]:visible');
+ var tmp_co_chbxs=tmp_cg.prev().find('input[type=checkbox]:visible');
+
+ if(tmp_cg_chbxs.filter(':checked').length==0)
+ tmp_co_chbxs.prop('checked', false).prop('indeterminate', false);
+ else
+ tmp_co_chbxs.prop('indeterminate', true).prop('checked', false);
+
+ return collectionChBoxClick(tmp_co_chbxs, resourceListSelector, headerSelector, collectionSelector, null, returnChecked);
+}
+
+function loadResourceChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, resourceItemSelector)
+{
+ if(collectionSelector.match('_item$'))
+ {
+ var firstCollection=$(obj).parent().nextUntil(headerSelector).first();
+ if($(obj).prop('checked'))
+ $(obj).parent().nextUntil(headerSelector).addBack().removeClass('unloaded');
+ else
+ $(obj).parent().nextUntil(headerSelector).addBack().addClass('unloaded');
+ }
+ else
+ {
+ var firstCollection=$(obj).parent().nextUntil(headerSelector).first().find(collectionSelector);
+ if($(obj).prop('checked'))
+ {
+ $(obj).parent().nextUntil(headerSelector).find(collectionSelector).removeClass('unloaded');
+ $(obj).parent().removeClass('unloaded');
+ }
+ else
+ {
+ $(obj).parent().nextUntil(headerSelector).find(collectionSelector).addClass('unloaded');
+ $(obj).parent().addClass('unloaded');
+ }
+ }
+
+ $(resourceListSelector).find(headerSelector).find('.unloadCheckHeader:checked').prop('disabled',false);
+ $(resourceListSelector).find(collectionSelector).find('.unloadCheck:checked').prop('disabled',false);
+ if(!$(resourceListSelector).find(headerSelector).find('.unloadCheckHeader').filter(function(){return $(this).prop('checked') || $(this).prop('indeterminate');}).length)
+ {
+ $(obj).prop({'checked':false,'indeterminate':true});
+ $(obj).parent().removeClass('unloaded');
+ $(obj).parent().nextUntil(headerSelector).find('.unloadCheck').prop({'checked':false,'indeterminate':false});
+ firstCollection.removeClass('unloaded').find('.unloadCheck').prop({'checked':true,'indeterminate':false,'disabled':true});
+ }
+ else
+ {
+ $(obj).parent().nextUntil(headerSelector).find('.unloadCheck').prop({'checked':$(obj).prop('checked'),'indeterminate':false});
+ var checkedCollections=$(resourceListSelector).find(collectionSelector).find('.unloadCheck:checked');
+ if(checkedCollections.length==1)
+ {
+ var collection=checkedCollections.parents(resourceItemSelector);
+ if(!collection.prev().hasClass(resourceItemSelector.slice(1)) && !collection.next().hasClass(resourceItemSelector.slice(1)))
+ collection.prev().find('.unloadCheckHeader').prop('disabled',true);
+ checkedCollections.prop('disabled',true);
+ }
+ }
+}
+
+function loadCollectionChBoxClick(obj, resourceListSelector, headerSelector, collectionSelector, resourceItemSelector)
+{
+ if($(obj).prop('checked'))
+ $(obj).parent().removeClass('unloaded');
+ else
+ $(obj).parent().addClass('unloaded');
+
+ var checkedCollections=$(resourceListSelector).find(collectionSelector).find('.unloadCheck:checked');
+ if(checkedCollections.length==1)
+ {
+ var collection=checkedCollections.parents(resourceItemSelector);
+ if(!collection.prev().hasClass(resourceItemSelector.slice(1)) && !collection.next().hasClass(resourceItemSelector.slice(1)))
+ collection.prev().find('.unloadCheckHeader').prop('disabled',true);
+ checkedCollections.prop('disabled',true);
+ }
+ else
+ {
+ $(resourceListSelector).find(headerSelector).find('.unloadCheckHeader:checked').prop('disabled',false);
+ checkedCollections.prop('disabled',false);
+ }
+
+ if(collectionSelector.match('_item$'))
+ {
+ var tmp_coh=$(obj).parent().prevAll(headerSelector).first();
+ var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find('.unloadCheck');
+ }
+ else
+ {
+ var tmp_coh=$(obj).parent().parent().prevAll(headerSelector).first();
+ var tmp_co_chbxs=tmp_coh.nextUntil(headerSelector).find(collectionSelector).find('.unloadCheck');
+ }
+
+ if(tmp_co_chbxs.length==tmp_co_chbxs.filter(':checked').length)
+ tmp_coh.removeClass('unloaded').find('.unloadCheckHeader').prop('checked', true).prop('indeterminate', false);
+ else if(tmp_co_chbxs.filter(':checked').length==0 && tmp_co_chbxs.filter(function(){return this.indeterminate==true}).length==0)
+ tmp_coh.addClass('unloaded').find('.unloadCheckHeader').prop('checked', false).prop('indeterminate', false);
+ else
+ tmp_coh.removeClass('unloaded').find('.unloadCheckHeader').prop('indeterminate', true).prop('checked', false);
+}
+
+// Escape vCalendar value - RFC2426 (Section 2.4.2)
+function vcalendarEscapeValue(inputValue)
+{
+ return (inputValue==undefined ? '' : inputValue).replace(vCalendar.pre['escapeRex'],"\\$1").replace(vCalendar.pre['escapeRex2'],'\\n');
+}
+
+// Unescape vCalendar value - RFC2426 (Section 2.4.2)
+function vcalendarUnescapeValue(inputValue)
+{
+ var outputValue='';
+
+ if(inputValue!=undefined)
+ {
+ for(var i=0;i<inputValue.length;i++)
+ if(inputValue[i]=='\\' && i+1<inputValue.length)
+ {
+ if(inputValue[++i]=='n')
+ outputValue+='\n';
+ else
+ outputValue+=inputValue[i];
+ }
+ else
+ outputValue+=inputValue[i];
+ }
+ return outputValue;
+}
+
+// Split parameters and remove double quotes from values (if parameter values are quoted)
+function vcalendarSplitParam(inputValue)
+{
+ var result=vcalendarSplitValue(inputValue, ';');
+ var index;
+
+ for(var i=0;i<result.length;i++)
+ {
+ index=result[i].indexOf('=');
+ if(index!=-1 && index+1<result[i].length && result[i][index+1]=='"' && result[i][result[i].length-1]=='"')
+ result[i]=result[i].substring(0,index+1)+result[i].substring(index+2,result[i].length-1);
+ }
+ return result;
+}
+
+// Split string by separator (but not '\' escaped separator)
+function vcalendarSplitValue(inputValue, inputDelimiter)
+{
+ var outputArray=new Array();
+ var i=0;
+ var j=0;
+
+ for(i=0;i<inputValue.length;i++)
+ {
+ if(inputValue[i]==inputDelimiter)
+ {
+ if(outputArray[j]==undefined)
+ outputArray[j]='';
+ ++j;
+ continue;
+ }
+ outputArray[j]=(outputArray[j]==undefined ? '' : outputArray[j])+inputValue[i];
+ if(inputValue[i]=='\\' && i+1<inputValue.length)
+ outputArray[j]=outputArray[j]+inputValue[++i];
+ }
+ return outputArray;
+}
+
+function dateFormatJqToFc(input)
+{
+ return input.replaceAll('DD','dddd').replaceAll('D','ddd').replace(/(MM|M)/g, '$1MM').replaceAll('m','M').replace(/y/g,'yy');
+}
+
+// Escape vCard value - RFC2426 (Section 2.4.2)
+function vcardEscapeValue(inputValue)
+{
+ return (inputValue==undefined ? '' : inputValue).replace(/(,|;|\\)/g,"\\$1").replace(/\n/g,'\\n');
+}
+
+// Unescape vCard value - RFC2426 (Section 2.4.2)
+function vcardUnescapeValue(inputValue)
+{
+ var outputValue='';
+ if(inputValue!=undefined)
+ {
+ for(var i=0;i<inputValue.length;i++)
+ if(inputValue[i]=='\\' && i+1<inputValue.length)
+ {
+ if(inputValue[++i]=='n')
+ outputValue+='\n';
+ else
+ outputValue+=inputValue[i];
+ }
+ else
+ outputValue+=inputValue[i];
+ }
+ return outputValue;
+}
+
+// Split parameters and remove double quotes from values (if parameter values are quoted)
+function vcardSplitParam(inputValue)
+{
+ var result=vcardSplitValue(inputValue, ';');
+ var index;
+
+ for(var i=0;i<result.length;i++)
+ {
+ index=result[i].indexOf('=');
+ if(index!=-1 && index+1<result[i].length && result[i][index+1]=='"' && result[i][result[i].length-1]=='"')
+ result[i]=result[i].substring(0,index+1)+result[i].substring(index+2,result[i].length-1);
+ }
+
+ return result;
+}
+
+// Split string by separator (but not '\' escaped separator)
+function vcardSplitValue(inputValue, inputDelimiter)
+{
+ var outputArray=new Array(),
+ i=0,j=0;
+
+ for(i=0;i<inputValue.length;i++)
+ {
+ if(inputValue[i]==inputDelimiter)
+ {
+ if(outputArray[j]==undefined)
+ outputArray[j]='';
+ ++j;
+ continue;
+ }
+ outputArray[j]=(outputArray[j]==undefined ? '' : outputArray[j])+inputValue[i];
+
+ if(inputValue[i]=='\\' && i+1<inputValue.length)
+ outputArray[j]=outputArray[j]+inputValue[++i];
+ }
+
+ if(inputValue[inputValue.length-1]==inputDelimiter)
+ outputArray[j]='';
+
+ return outputArray;
+}
+
+// equivalent data types (multiply types and/or type combinations can represent the same thing)
+// the vcard editor by default uses the "key" value as a type, but when this type is matched by
+// by "value" regexp then the server specified type is used as default
+var dataTypes=new Object();
+dataTypes['address_type']={
+ 'work': RegExp('^work$'),
+ 'home': RegExp('^home$'),
+ ':_$!<other>!$_:': RegExp('^(?::_\\$!<other>!\\$_:|other)$')
+};
+
+dataTypes['address_type_store_as']={
+ '_$!<other>!$_':'_$!<Other>!$_'
+};
+
+dataTypes['phone_type']={
+ 'work': RegExp('^(?:voice,)?work$'),
+ 'home': RegExp('^home(?:,voice)?$'),
+ 'cell': RegExp('^cell(?:,voice)?$'),
+ 'cell,work': RegExp('^cell(?:,voice)?,work$'),
+ 'cell,home': RegExp('^cell,home(?:,voice)?$'),
+ 'main': RegExp('^main(?:,voice)?$'),
+ 'pager': RegExp('^pager$'),
+ 'fax': RegExp('^fax$'),
+ 'fax,work': RegExp('^fax,work$'),
+ 'fax,home': RegExp('^fax,home$'),
+ 'iphone': RegExp('^(?::_\\$!<iphone>!\\$_:|(?:cell,)?iphone(?:,voice)?)$'),
+ 'other': RegExp('^(?::_\\$!<other>!\\$_:|other)(?:,voice)?$')
+};
+
+dataTypes['phone_type_store_as']={
+ '_$!<iphone>!$_':'_$!<iPhone>!$_',
+ '_$!<other>!$_':'_$!<Other>!$_'
+};
+
+dataTypes['email_type']={
+ 'internet,work': RegExp('^internet,work$'),
+ 'home,internet': RegExp('^home,internet$'),
+ ':mobileme:,internet': RegExp('^(?::mobileme:,internet|internet,mobileme)$'),
+ ':_$!<other>!$_:,internet': RegExp('^(?::_\\$!<other>!\\$_:,internet|internet,other)$')
+};
+
+dataTypes['email_type_store_as']={
+ '_$!<mobileme>!$_':'_$!<mobileMe>!$_',
+ '_$!<other>!$_':'_$!<Other>!$_'
+};
+
+dataTypes['url_type']={
+ 'work': RegExp('^work$'),
+ 'home': RegExp('^home$'),
+ ':_$!<homepage>!$_:': RegExp('^(?::_\\$!<homepage>!\\$_:|homepage)$'),
+ ':_$!<other>!$_:': RegExp('^(?::_\\$!<other>!\\$_:|other)$')
+};
+
+dataTypes['url_type_store_as']={
+ '_$!<homepage>!$_':'_$!<HomePage>!$_',
+ '_$!<other>!$_':'_$!<Other>!$_'
+};
+
+dataTypes['date_type']={
+ ':_$!<anniversary>!$_:': RegExp('^:_\\$!<anniversary>!\\$_:$'),
+ ':_$!<other>!$_:': RegExp('^:_\\$!<other>!\\$_:$')
+};
+
+dataTypes['date_store_as']={
+ '_$!<anniversary>!$_':'_$!<Anniversary>!$_',
+ '_$!<other>!$_':'_$!<Other>!$_'
+};
+
+dataTypes['person_type']={
+ ':_$!<father>!$_:': RegExp('^:_\\$!<father>!\\$_:$'),
+ ':_$!<mother>!$_:': RegExp('^:_\\$!<mother>!\\$_:$'),
+ ':_$!<parent>!$_:': RegExp('^:_\\$!<parent>!\\$_:$'),
+ ':_$!<brother>!$_:': RegExp('^:_\\$!<brother>!\\$_:$'),
+ ':_$!<sister>!$_:': RegExp('^:_\\$!<sister>!\\$_:$'),
+ ':_$!<child>!$_:': RegExp('^:_\\$!<child>!\\$_:$'),
+ ':_$!<friend>!$_:': RegExp('^:_\\$!<friend>!\\$_:$'),
+ ':_$!<spouse>!$_:': RegExp('^:_\\$!<spouse>!\\$_:$'),
+ ':_$!<partner>!$_:': RegExp('^:_\\$!<partner>!\\$_:$'),
+ ':_$!<assistant>!$_:': RegExp('^:_\\$!<assistant>!\\$_:$'),
+ ':_$!<manager>!$_:': RegExp('^:_\\$!<manager>!\\$_:$'),
+ ':_$!<other>!$_:': RegExp('^:_\\$!<other>!\\$_:$')
+};
+
+dataTypes['person_type_store_as']={
+ '_$!<manager>!$_':'_$!<Manager>!$_',
+ '_$!<assistant>!$_':'_$!<Assistant>!$_',
+ '_$!<father>!$_':'_$!<Father>!$_',
+ '_$!<mother>!$_':'_$!<Mother>!$_',
+ '_$!<parent>!$_':'_$!<Parent>!$_',
+ '_$!<brother>!$_':'_$!<Brother>!$_',
+ '_$!<sister>!$_':'_$!<Sister>!$_',
+ '_$!<child>!$_':'_$!<Child>!$_',
+ '_$!<friend>!$_':'_$!<Friend>!$_',
+ '_$!<spouse>!$_':'_$!<Spouse>!$_',
+ '_$!<partner>!$_':'_$!<Partner>!$_',
+ '_$!<other>!$_':'_$!<Other>!$_'
+};
+
+dataTypes['im_type']={
+ 'work': RegExp('^work$'),
+ 'home': RegExp('^home$'),
+ ':mobileme:': RegExp('^(?::mobileme:|mobileme)$'),
+ ':_$!<other>!$_:': RegExp('^(?::_\\$!<other>!\\$_:|other)$')
+};
+
+dataTypes['im_type_store_as']={
+ '_$!<mobileme>!$_':'_$!<mobileMe>!$_',
+ '_$!<other>!$_':'_$!<Other>!$_'
+};
+
+dataTypes['im_service_type_store_as']={
+ 'aim':'AIM',
+ 'icq':'ICQ',
+ 'irc':'IRC',
+ 'jabber':'Jabber',
+ 'msn':'MSN',
+ 'yahoo':'Yahoo',
+ 'facebook':'Facebook',
+ 'gadugadu':'GaduGadu',
+ 'googletalk':'GoogleTalk',
+ 'qq':'QQ',
+ 'skype':'Skype'
+};
+
+dataTypes['profile_type']={
+ 'twitter': RegExp('^twitter$'),
+ 'facebook': RegExp('^facebook$'),
+ 'flickr': RegExp('^flickr$'),
+ 'linkedin': RegExp('^linkedin$'),
+ 'myspace': RegExp('^myspace$'),
+ 'sinaweibo': RegExp('^sinaweibo$')
+};
+
+dataTypes['profile_type_store_as']={};
diff --git a/public/infcloud/config.js b/public/infcloud/config.js
new file mode 100644
index 0000000..ab2410b
--- /dev/null
+++ b/public/infcloud/config.js
@@ -0,0 +1,1440 @@
+/*
+InfCloud - the open source CalDAV/CardDAV Web Client
+Copyright (C) 2011-2015
+ Jan Mate <jan.mate@inf-it.com>
+ Andrej Lezo <andrej.lezo@inf-it.com>
+ Matej Mihalik <matej.mihalik@inf-it.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+
+// NOTE: see readme.txt before you start to configure this client!
+
+
+// NOTE: do not forget to execute the cache_update.sh script every time you
+// update this configuration file or any other files (otherwise your browser
+// will use the previous version of files stored in HTML5 cache). Alternatively
+// you can update the cache.manifest manually - edit the second line beginning
+// with "#V 20" to anything else (this file simple needs "some" change)
+
+
+// Supported setup types (use ONE of them):
+// a.) globalAccountSettings => username and password is hardcoded
+// in config.js, automatic login without the login screen
+// - advantages: fast login process = no username/password is required
+// - disadvantages: username/password is visible in your config.js, so
+// this type of setup is recommended ONLY for intranet/home users
+// b.) globalNetworkCheckSettings => standard setup with login screen
+// - advantages: username/password is required (no visible
+// username/password in config.js)
+// - disadvantages: if a user enters wrong username/password then
+// the browser will show authentication popup window (it is NOT
+// possible to disable it in JavaScript; see the next option)
+// c.) globalNetworkAccountSettings => advanced setup with login screen
+// - advantages: no authentication popup if you enter wrong username/
+// password, dynamic XML configuration generator (you can generate
+// different configurations for your users /by modifying the "auth"
+// module configuration or the PHP code itself/)
+// - disadvantages: requires PHP >= 5.3 and additional configuration,
+// only basic http authentication is supported => always use https!
+//
+//
+// What is a "principal URL"? => Check you server documentation!
+// - "principal URL" is NOT "collection URL"
+// - this client automatically detects collections for "principal URL"
+// - PROPER "principal URL" looks like:
+// https://server.com:8443/principals/users/USER/
+// https://server.com:8443/caldav.php/USER/
+// - INVALID principal URL looks like:
+// https://server.com:8443/principals/users/USER/collection/
+// => this is a collection URL
+// https://server.com:8443/caldav.php/USER/collection/
+// => this is a collection URL
+// https://server.com:8443/principals/users/USER
+// => missing trailing '/'
+// https://server.com:8443/caldav.php/USER
+// => missing trailing '/'
+// /caldav.php/USER/
+// => relative URL instead of full URL
+//
+//
+// List of properties used in globalAccountSettings, globalNetworkCheckSettings
+// and globalNetworkAccountSettings variables (+ in the "auth" module):
+// - href
+// Depending on the setup type set the value to:
+// a.) globalAccountSettings: full "principal URL"
+// b.) globalNetworkCheckSettings: "principal URL" WITHOUT the "USER/" part
+// c.) globalNetworkAccountSettings: "full URL" to the "auth" directory
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings
+// - userAuth
+// - userName
+// Set the username you want to login.
+// - userPassword
+// Set the password for the given username.
+// This property is supported in:
+// globalAccountSettings
+// - timeOut
+// This option sets the timeout for jQuery .ajax call (in miliseconds).
+// Example:
+// timeOut: 90000
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings
+// - lockTimeOut
+// NOTE: used only if server supports LOCK requests
+// This option sets the LOCK timeout value if resource locking
+// is used (in miliseconds).
+// Example:
+// lockTimeOut: 10000
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only)
+// - checkContentType
+// This option enables a content-type checking for server response.
+// If enabled then only objects with proper content-type are inserted
+// into the interface.
+// If you cannot see data in the interface you may try to disable it (useful
+// if your server returns wrong value in "propstat/prop/getcontenttype").
+// If undefined then content-type checking is enabled.
+// Examples:
+// checkContentType: true
+// checkContentType: false
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only)
+// - settingsAccount
+// NOTE: server support for custom DAV properties is REQUIRED!
+// This option sets the account where the client properties such as:
+// loaded collections, enabled collections, ... are saved during
+// the logout and resource/collection synchronisation
+// NOTE: set it to true ONLY for ONE account!
+// Examples:
+// settingsAccount: true
+// settingsAccount: false
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only)
+// - delegation
+// NOTE: server support for this functionality is REQUIRED!
+// This option allows you to load delegated (shared) collections.
+// If set to true (default) then delegation functionality is enabled,
+// and the interface allows you to load delegated collections.
+// If false then delegation functionality is completely disabled.
+// Examples:
+// delegation: true
+// delegation: false
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only)
+// - additionalResources
+// This options sets the list of additional resources (e.g. shared resources
+// accessible by all users). If the server supports delegation (see
+// the delegation option above) there is no reason to use this option!
+// Supported values:
+// - array of URL encoded resource names (not collections), such as:
+// 'company'
+// 'shared_resource'
+// If empty (default) or undefined then shared resources are not loaded
+// using this option, but may be loaded using the delegation option.
+// Examples:
+// additionalResources=[]
+// additionalResources=['public', 'shared_resource']
+// This property is supported in:
+// globalNetworkCheckSettings
+// - hrefLabel
+// This option sets the server name in the resource header (useful if
+// you want to see custom resource header above the collections).
+// You can use the following variables in the value:
+// %H = full hostname (including the port number)
+// %h = full hostname (without the port number)
+// %D = full domain name
+// %d = only the first and second level domain
+// %P = principal name
+// %p = principal name without the @domain.com part (if present)
+// %U = logged user name
+// %u = logged user name without the @domain.com part (if present)
+// If undefined, empty or or null then '%d/%p [%u]' is used.
+// Examples:
+// hrefLabel: '%d/%p [%u]'
+// hrefLabel: '%D/%u'
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only)
+// - forceReadOnly
+// This option sets the list of collections as "read-only".
+// Supported values:
+// - true
+// all collections will be "read-only"
+// - array of URL encoded
+// - collections, such as:
+// '/caldav.php/user/calendar/'
+// '/caldav.php/user%40domain.com/calendar/'
+// - regexes, such as:
+// new RegExp('^/caldav.php/user/calendar[0-9]/$', 'i')
+// specifies the list of collections marked as "read-only"
+// If null (default) or undefined then server detected privileges are used.
+// Examples:
+// forceReadOnly: null
+// forceReadOnly: true
+// forceReadOnly: ['/caldav.php/user/calendar/',
+// '/caldav.php/user/calendar2/']
+// forceReadOnly: [new RegExp('^/.*/user/calendar[0-9]/$', 'i')]
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only, with
+// different syntax for regexes)
+// - ignoreAlarms
+// This option sets list of calendar collections with disabled
+// alarm functionality.
+// Supported values:
+// - true
+// alarm functionality is disabled for all collections
+// - array of URL encoded
+// - collections, such as:
+// '/caldav.php/user/calendar/'
+// '/caldav.php/user%40domain.com/calendar/'
+// - regexes, such as:
+// new RegExp('^/caldav.php/user/calendar[0-9]/$', 'i')
+// specifies the list of collections with disabled alarm functionality.
+// If false (default) or undefined then alarm functionality is enabled
+// for all collections.
+// Examples:
+// ignoreAlarms: true
+// ignoreAlarms: ['/caldav.php/user/calendar/',
+// '/caldav.php/user/calendar2/']
+// ignoreAlarms: [new RegExp('^/.*/user/calendar[0-9]/$', 'i')]
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only, with
+// different syntax for regexes)
+// - backgroundCalendars
+// This options defines a list of background calendars. If there is
+// at least one event defined for the given day in a background calendar,
+// the background color for that day will be pink/light-red.
+// Supported values:
+// - array of URL encoded
+// - collections, such as:
+// '/caldav.php/user/calendar/'
+// '/caldav.php/user%40domain.com/calendar/'
+// - regexes, such as:
+// new RegExp('^/caldav.php/user/calendar[0-9]/$', 'i')
+// specifies the list of background calendar collections.
+// Examples:
+// backgroundCalendars: ['/caldav.php/user/calendar/',
+// '/caldav.php/user/calendar2/']
+// backgroundCalendars: [new RegExp('^/.*/user/calendar[0-9]/$', 'i')]
+// This property is supported in:
+// globalAccountSettings
+// globalNetworkCheckSettings
+// globalNetworkAccountSettings (available in auth module only, with
+// different syntax for regexes)
+// Special options not present in configuration examples:
+// NOTE: use ONLY if you know what are you doing!
+// - crossDomain
+// This option sets the crossDomain for jQuery .ajax call. If null (default)
+// then the value is autodetected /and the result is shown in the console/
+// - withCredentials
+// This option sets the withCredentials for jQuery .ajax call. The default
+// value is false and there is NO REASON to change it to true!
+// NOTE: if true, Access-Control-Allow-Origin "*" (CORS header) not works!
+
+
+// globalAccountSettings
+// Use this option if you want to use automatic login (without a login
+// screen) with hardcoded username/password in config.js. Otherwise use
+// globalNetworkCheckSettings or globalNetworkAccountSettings (see below).
+// NOTE: if this option is used the value must be an array of object(s).
+// List of properties used in globalAccountSettings variable:
+// - href
+// Set this option to the full "principal URL".
+// NOTE: the last character in the value must be '/'
+// - userAuth
+// - userName
+// Set the username you want to login.
+// - userPassword
+// Set the password for the given username.
+// NOTE: for description of other properties see comments at the beginning
+// of this file.
+// NOTE: for minimal/fast setup you need to set only the href and userAuth
+// options. It is safe/recommended to keep the remaining options unchanged!
+// Example:
+//var globalAccountSettings=[
+// {
+// href: 'https://server1.com:8443/caldav.php/USERNAME1/',
+// userAuth:
+// {
+// userName: 'USERNAME1',
+// userPassword: 'PASSWORD1'
+// },
+// timeOut: 90000,
+// lockTimeOut: 10000,
+// checkContentType: true,
+// settingsAccount: true,
+// delegation: true,
+// hrefLabel: null,
+// forceReadOnly: null,
+// ignoreAlarms: false,
+// backgroundCalendars: []
+// },
+// {
+// href: 'https://server2.com:8443/caldav.php/USERNAME2/',
+// ...
+// ...
+// }
+//];
+
+
+// globalNetworkCheckSettings
+// Use this option if you want to use standard login screen without
+// hardcoded username/password in config.js (used by globalAccountSettings).
+// NOTE: if this option is used the value must be an object.
+// List of properties used in globalAccountSettings variable:
+// - href
+// Set this option to the "principal URL" WITHOUT the "USERNAME/"
+// part (this options uses the username from the login screen).
+// NOTE: the last character in the value must be '/'
+// NOTE: for description of other properties see comments at the beginning
+// of this file.
+// NOTE: for minimal/fast setup you need to set only the href option. It is
+// safe/recommended to keep the remaining options unchanged!
+// Example href values:
+// OS X server http example (see misc/readme_osx.txt for server setup):
+// href: 'http://osx.server.com:8008/principals/users/'
+// OS X server https example (see misc/readme_osx.txt for server setup):
+// href: 'https://osx.server.com:8443/principals/users/'
+// Cyrus server https example:
+// href: 'https://cyrus.server.com/dav/principals/user/'
+// Example:
+// Davical example which automatically detects the protocol, server name,
+// port, ... (client installed into Davical "htdocs" subdirectory;
+// works "out of the box", no additional setup required):
+var globalNetworkCheckSettings={
+ href: location.protocol+'//'+location.hostname+
+ (location.port ? ':'+location.port: '')+
+ location.pathname.replace(RegExp('/+[^/]+/*(index\.html)?$'),'')+
+ '/dav/principals',
+ timeOut: 90000,
+ lockTimeOut: 10000,
+ checkContentType: true,
+ settingsAccount: true,
+ delegation: true,
+ additionalResources: [],
+ hrefLabel: null,
+ forceReadOnly: null,
+ ignoreAlarms: false,
+ backgroundCalendars: []
+}
+
+
+// globalNetworkAccountSettings
+// Try this option ONLY if you have working setup using
+// globalNetworkCheckSettings and want to fix the authentication popup
+// window problem (if invalid username/password is entered)!
+// If you use this option then your browser sends username/password to the PHP
+// "auth" module ("auth" directory) instead of the DAV server itself.
+// The "auth" module then validates your username/password against your server,
+// and if the authentication is successful, then it sends back a configuration
+// XML (requires additional configuration). The resulting XML is handled
+// IDENTICALLY as the globalAccountSettings configuration option.
+// NOTE: for the "auth" module configuration see readme.txt!
+// NOTE: this option invokes a login screen and disallows access until
+// the client gets correct XML configuration file from the server!
+// List of properties used in globalNetworkAccountSettings variable:
+// - href
+// Set this option to the "full URL" of the "auth" directory
+// NOTE: the last character in the value must be '/'
+// NOTE: for description of other properties see comments at the beginning
+// of this file.
+// Example href values:
+// href: 'https://server.com/client/auth/'
+// Example:
+// Use this configuration if the "auth" module is located in the client
+// installation subdirectory (default):
+//var globalNetworkAccountSettings={
+// href: location.protocol+'//'+location.hostname+
+// (location.port ? ':'+location.port : '')+
+// location.pathname.replace(RegExp('index\.html$'),'')+
+// 'auth/',
+// timeOut: 30000
+//};
+
+
+// globalUseJqueryAuth
+// Use jQuery .ajax() auth or custom header for HTTP basic auth (default).
+// Set this option to true if your server uses digest auth (note: you may
+// experience auth popups on some browsers).
+// If undefined (or empty), custom header for HTTP basic auth is used.
+// Example:
+//var globalUseJqueryAuth=false;
+
+
+// globalBackgroundSync
+// Enable background synchronization even if the browser window/tab has no
+// focus.
+// If false, synchronization is performed only if the browser window/tab
+// is focused. If undefined or not false, then background sync is enabled.
+// Example:
+var globalBackgroundSync=true;
+
+
+// globalSyncResourcesInterval
+// This option defines how often (in miliseconds) are resources/collections
+// asynchronously synchronized.
+// Example:
+var globalSyncResourcesInterval=120000;
+
+
+// globalEnableRefresh
+// This option enables or disables the manual synchronization button in
+// the interface. If this option is enabled then users can perform server
+// synchronization manually. Enabling this option may cause high server
+// load (even DDOS) if users will try to manually synchronize data too
+// often (instead of waiting for the automatic synchronization).
+// If undefined or false, the synchronization button is disabled.
+// NOTE: enable this option only if you really know what are you doing!
+// Example:
+var globalEnableRefresh=false;
+
+
+// globalEnableKbNavigation
+// Enable basic keyboard navigation using arrow keys?
+// If undefined or not false, keyboard navigation is enabled.
+// Example:
+var globalEnableKbNavigation=true;
+
+
+// globalSettingsType
+// Where to store user settings such as: active view, enabled/selected
+// collections, ... (the client store them into DAV property on the server).
+// NOTE: not all servers support storing DAV properties (some servers support
+// only subset /or none/ of these URLs).
+// Supported values:
+// - 'principal-URL', '', null or undefined (default) => settings are stored
+// to principal-URL (recommended for most servers)
+// - 'addressbook-home-set' => settings are are stored to addressbook-home-set
+// - 'calendar-home-set' => settings are stored to calendar-home-set
+// Example:
+//var globalSettingsType='';
+
+
+// globalCrossServerSettingsURL
+// Settings such as enabled/selected collections are stored on the server
+// (see the previous option) in form of full URL
+// (e.g.: https://user@server:port/principal/collection/), but even if this
+// approach is "correct" (you can use the same principal URL with multiple
+// different logins, ...) it causes a problem if your server is accessible
+// from multiple URLs (e.g. http://server/ and https://server/). If you want
+// to store only the "principal/collection/" part of the URL (instead of the
+// full URL) then enable this option.
+// Example:
+//var globalCrossServerSettingsURL=false;
+
+
+// globalInterfaceLanguage
+// Default interface language (note: this option is case sensitive):
+// cs_CZ (Čeština [Czech])
+// da_DK (Dansk [Danish]; thanks Niels Bo Andersen)
+// de_DE (Deutsch [German]; thanks Marten Gajda and Thomas Scheel)
+// en_US (English [English/US])
+// es_ES (Español [Spanish]; thanks Damián Vila)
+// fr_FR (Français [French]; thanks John Fischer)
+// it_IT (Italiano [Italian]; thanks Luca Ferrario)
+// ja_JP (日本語 [Japan]; thanks Muimu Nakayama)
+// hu_HU (Magyar [Hungarian])
+// nl_NL (Nederlands [Dutch]; thanks Johan Vromans)
+// sk_SK (Slovenčina [Slovak])
+// tr_TR (Türkçe [Turkish]; thanks Selcuk Pultar)
+// ru_RU (Русский [Russian]; thanks Александр Симонов)
+// uk_UA (Українська [Ukrainian]; thanks Serge Yakimchuck)
+// zh_CN (中国 [Chinese]; thanks Fandy)
+// Example:
+var globalInterfaceLanguage='en_US';
+
+
+// globalInterfaceCustomLanguages
+// If defined and not empty then only languages listed here are shown
+// at the login screen, otherwise (default) all languages are shown
+// NOTE: values in the array must refer to an existing localization
+// (see the option above)
+// Example:
+// globalInterfaceCustomLanguages=['en_US', 'sk_SK'];
+var globalInterfaceCustomLanguages=[];
+
+
+// globalSortAlphabet
+// Use JavaScript localeCompare() or custom alphabet for data sorting.
+// Custom alphabet is used by default because JavaScript localeCompare()
+// not supports collation and often returns "wrong" result. If set to null
+// then localeCompare() is used.
+// Example:
+// var globalSortAlphabet=null;
+var globalSortAlphabet=' 0123456789'+
+ 'AÀÁÂÄÆÃÅĀBCÇĆČDĎEÈÉÊËĒĖĘĚFGĞHIÌÍÎİÏĪĮJKLŁĹĽMNŃÑŇOÒÓÔÖŐŒØÕŌ'+
+ 'PQRŔŘSŚŠȘșŞşẞTŤȚțŢţUÙÚÛÜŰŮŪVWXYÝŸZŹŻŽ'+
+ 'aàáâäæãåābcçćčdďeèéêëēėęěfgğhiìíîïīįıjklłĺľmnńñňoòóôöőœøõō'+
+ 'pqrŕřsśšßtťuùúûüűůūvwxyýÿzźżžАБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЮЯ'+
+ 'Ьабвгґдеєжзиіїйклмнопрстуфхцчшщюяь';
+
+
+// globalSearchTransformAlphabet
+// To support search without diacritics (e.g. search for 'd' will find: 'Ď', 'ď')
+// it is required to define something like "character equivalence".
+// key = regex text, value = search character
+// Example:
+var globalSearchTransformAlphabet={
+ '[ÀàÁáÂâÄäÆæÃãÅåĀā]': 'a', '[ÇçĆćČč]': 'c', '[Ďď]': 'd',
+ '[ÈèÉéÊêËëĒēĖėĘęĚě]': 'e', '[Ğğ]': 'g', '[ÌìÍíÎîİıÏïĪīĮį]': 'i',
+ '[ŁłĹ弾]': 'l', '[ŃńÑñŇň]': 'n', '[ÒòÓóÔôÖöŐőŒœØøÕõŌō]': 'o',
+ '[ŔŕŘř]': 'r', '[ŚśŠšȘșŞşẞß]': 's', '[ŤťȚțŢţ]': 't',
+ '[ÙùÚúÛûÜüŰűŮůŪū]': 'u', '[ÝýŸÿ]': 'y', '[ŹźŻżŽž]': 'z'
+};
+
+// globalResourceAlphabetSorting
+// If more than one resource (server account) is configured, sort the
+// resources alphabetically?
+// Example:
+var globalResourceAlphabetSorting=true;
+
+
+// globalNewVersionNotifyUsers
+// Update notification will be shown only to users with login names defined
+// in this array.
+// If undefined (or empty), update notifications will be shown to all users.
+// Example:
+// globalNewVersionNotifyUsers=['admin', 'peter'];
+var globalNewVersionNotifyUsers=[];
+
+
+// globalDatepickerFormat
+// Set the datepicker format (see
+// http://docs.jquery.com/UI/Datepicker/formatDate for valid values).
+// NOTE: date format is predefined for each localization - use this option
+// ONLY if you want to use custom date format (instead of the localization
+// predefined one).
+// Example:
+//var globalDatepickerFormat='dd.mm.yy';
+
+
+// globalDatepickerFirstDayOfWeek
+// Set the datepicker first day of the week: Sunday is 0, Monday is 1, etc.
+// Example:
+var globalDatepickerFirstDayOfWeek=1;
+
+
+// globalHideInfoMessageAfter
+// How long are information messages (such as: success, error) displayed
+// (in miliseconds).
+// Example:
+var globalHideInfoMessageAfter=1800;
+
+
+// globalEditorFadeAnimation
+// Set the editor fade in/out animation duration when editing or saving data
+// (in miliseconds).
+// Example:
+var globalEditorFadeAnimation=666;
+
+
+
+
+// ******* CalDAV (CalDavZAP) related settings ******* //
+
+// globalEventStartPastLimit, globalEventStartFutureLimit, globalTodoPastLimit
+// Number of months pre-loaded from past/future in advance for calendars
+// and todo lists (if null then date range synchronization is disabled).
+// NOTE: interval synchronization is used only if your server supports
+// sync-collection REPORT (e.g. DAViCal).
+// NOTE: if you experience problems with data loading and your server has
+// no time-range filtering support set these variables to null.
+// Example:
+var globalEventStartPastLimit=3;
+var globalEventStartFutureLimit=3;
+var globalTodoPastLimit=1;
+
+
+// globalLoadedCalendarCollections
+// This option sets the list of calendar collections (down)loaded after login.
+// If empty then all calendar collections for the currently logged user are
+// loaded.
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+var globalLoadedCalendarCollections=[];
+
+
+// globalLoadedTodoCollections
+// This option sets the list of todo collections (down)loaded after login.
+// If empty then all todo collections for the currently logged user are loaded.
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+var globalLoadedTodoCollections=[];
+
+
+// globalActiveCalendarCollections
+// This options sets the list of calendar collections checked (enabled
+// checkbox => data visible in the interface) by default after login.
+// If empty then all loaded calendar collections for the currently logged
+// user are checked.
+// NOTE: only already (down)loaded collections can be checked (see
+// the globalLoadedCalendarCollections option).
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+var globalActiveCalendarCollections=[];
+
+
+// globalActiveTodoCollections
+// This options sets the list of todo collections checked (enabled
+// checkbox => data visible in the interface) by default after login.
+// If empty then all loaded todo collections for the currently logged
+// user are checked.
+// NOTE: only already (down)loaded collections can be checked (see
+// the globalLoadedTodoCollections option).
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+var globalActiveTodoCollections=[];
+
+
+// globalCalendarSelected
+// This option sets which calendar collection will be pre-selected
+// (if you create a new event) by default after login.
+// The value must be URL encoded path to a calendar collection,
+// for example: 'USER/calendar/'
+// If empty or undefined then the first available calendar collection
+// is selected automatically.
+// NOTE: only already (down)loaded collections can be pre-selected (see
+// the globalLoadedCalendarCollections option).
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+//var globalCalendarSelected='';
+
+
+// globalTodoCalendarSelected
+// This option sets which todo collection will be pre-selected
+// (if you create a new todo) by default after login.
+// The value must be URL encoded path to a todo collection,
+// for example: 'USER/todo_calendar/'
+// If empty or undefined then the first available todo collection
+// is selected automatically.
+// NOTE: only already (down)loaded collections can be pre-selected (see
+// the globalLoadedTodoCollections option).
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+//var globalTodoCalendarSelected='';
+
+
+// globalActiveView
+// This options sets the default fullcalendar view option (the default calendar
+// view after the first login).
+// Supported values:
+// - 'month'
+// - 'multiWeek'
+// - 'agendaWeek'
+// - 'agendaDay'
+// NOTE: we use custom and enhanced version of fullcalendar!
+// Example:
+var globalActiveView='multiWeek';
+
+
+// globalOpenFormMode
+// Open new event form on 'single' or 'double' click.
+// If undefined or not 'double', then 'single' is used.
+// Example:
+var globalOpenFormMode='double';
+
+
+// globalTodoListFilterSelected
+// This options sets the list of filters in todo list that are selected
+// after login.
+// Supported options:
+// - 'filterAction'
+// - 'filterProgress' (available only if globalAppleRemindersMode is disabled)
+// - 'filterCompleted'
+// - 'filterCanceled' (available only if globalAppleRemindersMode is disabled)
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+var globalTodoListFilterSelected=['filterAction', 'filterProgress'];
+
+
+// globalCalendarStartOfBusiness, globalCalendarEndOfBusiness
+// These options set the start and end of business hours with 0.5 hour
+// precision. Non-business hours are faded out in the calendar interface.
+// If both variables are set to the same value then no fade out occurs.
+// Example:
+var globalCalendarStartOfBusiness=8;
+var globalCalendarEndOfBusiness=17;
+
+
+// globalDefaultEventDuration
+// This option sets the default duration (in minutes) for newly created events.
+// If undefined or null, globalCalendarEndOfBusiness value will be taken as
+// a default end time instead.
+// Example:
+var globalDefaultEventDuration=120;
+
+
+// globalAMPMFormat
+// This option enables to use 12 hours format (AM/PM) for displaying time.
+// NOTE: time format is predefined for each localization - use this option
+// ONLY if you want to use custom time format (instead of the localization
+// predefined one).
+// Example:
+//var globalAMPMFormat=false;
+
+
+// globalTimeFormatBasic
+// This option defines the time format information for events in month and
+// multiweek views. If undefined or null then default value is used.
+// If defined as empty string no time information is shown in these views.
+// See http://arshaw.com/fullcalendar/docs/utilities/formatDate/ for exact
+// formating rules.
+// Example:
+//var globalTimeFormatBasic='';
+
+
+// globalTimeFormatAgenda
+// This option defines the time format information for events in day and
+// week views. If undefined or null then default value is used.
+// If defined as empty string no time information is shown in these views.
+// See http://arshaw.com/fullcalendar/docs/utilities/formatDate/ for exact
+// formating rules.
+// Example:
+//var globalTimeFormatAgenda='';
+
+
+// globalDisplayHiddenEvents
+// This option defined whether events from unechecked calendars are displayed
+// with certain transparency (true) or completely hidden (false).
+// Example:
+var globalDisplayHiddenEvents=false;
+
+
+// globalTimeZoneSupport
+// This option enables timezone support in the client.
+// NOTE: timezone cannot be specified for all-day events because these don't
+// have start and end time.
+// If this option is disabled then local time is used.
+// Example:
+var globalTimeZoneSupport=true;
+
+
+// globalTimeZone
+// If timezone support is enabled, this option sets the default timezone.
+// See timezones.js or use the following command to get the list of supported
+// timezones (defined in timezones.js):
+// grep "'[^']\+': {" timezones.js | sed -Ee "s#(\s*'|':\s*\{)##g"
+// Example:
+var globalTimeZone='Europe/Berlin';
+
+
+// globalTimeZonesEnabled
+// This option sets the list of available timezones in the interface (for the
+// list of supported timezones see the comment for the previous configuration
+// option).
+// NOTE: if there is at least one event/todo with a certain timezone defined,
+// that timezone is enabled (even if it is not present in this list).
+// Example:
+// var globalTimeZonesEnabled=['America/New_York', 'Europe/Berlin'];
+var globalTimeZonesEnabled=[];
+
+
+// globalRewriteTimezoneComponent
+// This options sets whether the client will enhance/replace (if you edit an
+// event or todo) the timezone information using the official IANA timezone
+// database information (recommended).
+// Example:
+var globalRewriteTimezoneComponent=true;
+
+
+// globalRemoveUnknownTimezone
+// This options sets whether the client will remove all non-standard timezone
+// names from events and todos (if you edit an event or todo)
+// (e.g.: /freeassociation.sourceforge.net/Tzfile/Europe/Vienna)
+// Example:
+var globalRemoveUnknownTimezone=false;
+
+
+// globalShowHiddenAlarms
+// This option sets whether the client will show alarm notifications for
+// unchecked calendars. If this option is enabled and you uncheck a calendar
+// in the calendar list, alarm notifications will be temporary disabled for
+// unchecked calendar(s).
+// Example:
+var globalShowHiddenAlarms=false;
+
+
+// globalIgnoreCompletedOrCancelledAlarms
+// This options sets whether the client will show alarm notifications for
+// already completed or cancelled todos. If enabled then alarm notification
+// for completed and cancelled todos are disabled.
+// Example:
+var globalIgnoreCompletedOrCancelledAlarms=true;
+
+
+// globalMozillaSupport
+// Mozilla automatically treats custom repeating event calculations as if
+// the start day of the week is Monday, despite what day is chosen in settings.
+// Set this variable to true to use the same approach, ensuring compatible
+// event rendering in special cases.
+// Example:
+var globalMozillaSupport=false;
+
+
+// globalCalendarColorPropertyXmlns
+// This options sets the namespace used for storing the "calendar-color"
+// property by the client.
+// If true, undefined (or empty) "http://apple.com/ns/ical/" is used (Apple
+// compatible). If false, then the calendar color modification functionality
+// is completely disabled.
+// Example:
+//var globalCalendarColorPropertyXmlns=true;
+
+
+// globalWeekendDays
+// This option sets the list of days considered as weekend days (these
+// are faded out in the calendar interface). Non-weekend days are automatically
+// considered as business days.
+// Sunday is 0, Monday is 1, etc.
+// Example:
+var globalWeekendDays=[0, 6];
+
+
+// globalAppleRemindersMode
+// If this option is enabled then then client will use the same approach
+// for handling repeating reminders (todos) as Apple. It is STRONGLY
+// recommended to enabled this option if you use any Apple clients for
+// reminders (todos).
+// Supported options:
+// - 'iOS6'
+// - 'iOS7'
+// - true (support of the latest iOS version - 'iOS8')
+// - false
+// If this option is enabled:
+// - RFC todo support is SEVERELY limited and the client mimics the behaviour
+// of Apple Reminders.app (to ensure maximum compatibility)
+// - when a single instance of repeating todo is edited, it becomes an
+// autonomous non-repeating todo with NO relation to the original repeating
+// todo
+// - capabilities of repeating todos are limited - only the first instance
+// is ever visible in the interface
+// - support for todo DTSTART attribute is disabled
+// - support for todo STATUS attribute other than COMPLETED and NEEDS-ACTION
+// is disabled
+// - [iOS6 only] support for LOCATION and URL attributes is disabled
+// Example:
+var globalAppleRemindersMode=true;
+
+
+// globalSubscribedCalendars
+// This option specifies a list of remote URLs to ics files (e.g.: used
+// for distributing holidays information). Subscribed calendars are
+// ALWAYS read-only. Remote servers where ics files are hosted MUST
+// return proper CORS headers (see readme.txt) otherwise this functionality
+// will not work!
+// NOTE: subsribed calendars are NOT "shared" calendars. For "shared"
+// calendars see the delegation option in globalAccountSettings,
+// globalNetworkCheckSettings and globalNetworkAccountSettings.
+// List of properties used in globalSubscribedCalendars variable:
+// - hrefLabel
+// This options defines the header string above the subcsribed calendars.
+// - calendars
+// This option specifies an array of remote calendar objects with the
+// following properties:
+// - href
+// Set this option to the "full URL" of the remote calendar
+// - userAuth
+// NOTE: keep empty if remote authentication is not required!
+// - userName
+// Set the username you want to login.
+// - userPassword
+// Set the password for the given username.
+// - typeList
+// Set the list of objects you want to process from remote calendars;
+// two options are available:
+// - 'vevent' (show remote events in the interface)
+// - 'vtodo' (show remote todos in the interface)
+// - ignoreAlarm
+// Set this option to true if you want to disable alarm notifications
+// from the remote calendar.
+// - displayName
+// Set this option to the name of the calendar you want to see
+// in the interface.
+// - color
+// Set the calendar color you want to see in the interface.
+// Example:
+//var globalSubscribedCalendars={
+// hrefLabel: 'Subscribed',
+// calendars: [
+// {
+// href: 'http://something.com/calendar.ics',
+// userAuth: {
+// userName: '',
+// userPassword: ''
+// },
+// typeList: ['vevent', 'vtodo'],
+// ignoreAlarm: true,
+// displayName: 'Remote Calendar 1',
+// color: '#ff0000'
+// },
+// {
+// href: 'http://calendar.com/calendar2.ics',
+// ...
+// ...
+// }
+// ]
+//};
+
+
+
+// ******* CardDAV (CardDavMATE) related settings ******* //
+
+
+// globalLoadedAddressbookCollections
+// This option sets the list of addressbook collections (down)loaded after
+// login. If empty then all addressbook collections for the currently logged
+// user are loaded.
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+var globalLoadedAddressbookCollections=[];
+
+
+// globalActiveAddressbookCollections
+// This options sets the list of addressbook collections checked (enabled
+// checkbox => data visible in the interface) by default after login.
+// If empty then all loaded addressbook collections for the currently logged
+// user are checked.
+// NOTE: only already (down)loaded collections can be checked (see
+// the globalLoadedAddressbookCollections option).
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+var globalActiveAddressbookCollections=[];
+
+
+// globalAddressbookSelected
+// This option sets which addressbook collection will be pre-selected
+// (if you create a new contact) by default after login.
+// The value must be URL encoded path to an addressbook collection,
+// for example: 'USER/addressbook/'
+// If empty or undefined then the first available addressbook collection
+// is selected automatically.
+// NOTE: only already (down)loaded collections can be pre-selected (see
+// the globalLoadedAddressbookCollections option).
+// NOTE: settings stored on the server (see settingsAccount) overwrite this
+// option.
+// Example:
+//var globalAddressbookSelected='';
+
+
+// globalCompatibility
+// This options is reserved for various compatibility settings.
+// NOTE: if this option is used the value must be an object.
+// Currently there is only one supported option:
+// - anniversaryOutputFormat
+// Different clients use different (and incompatible) approach
+// to store anniversary date in vCards. Apple stores this attribute as:
+// itemX.X-ABDATE;TYPE=pref:2000-01-01\r\n
+// itemX.X-ABLabel:_$!<Anniversary>!$_\r\n'
+// other clients store this attribute as:
+// X-ANNIVERSARY:2000-01-01\r\n
+// Choose 'apple' or 'other' (lower case) for your 3rd party client
+// compatibility. You can chose both: ['apple', 'other'], but it may
+// cause many problems in the future, for example: duplicate anniversary
+// dates, invalid/old anniversary date in your clients, ...)
+// Examples:
+// anniversaryOutputFormat: ['other']
+// anniversaryOutputFormat: ['apple', 'other']
+// Example:
+var globalCompatibility={anniversaryOutputFormat: ['apple']};
+
+
+// globalUriHandler{Tel,Email,Url,Profile}
+// These options set the URI handlers for TEL, EMAIL, URL and X-SOCIALPROFILE
+// vCard attributes. Set them to null (or comment out) to disable.
+// NOTE: for globalUriHandlerTel is recommended to use 'tel:', 'callto:'
+// or 'skype:'. The globalUriHandlerUrl value is used only if no URI handler
+// is defined in the URL.
+// NOTE: it is safe to keep these values unchanged!
+// Example:
+var globalUriHandlerTel='tel:';
+var globalUriHandlerEmail='mailto:';
+var globalUriHandlerUrl='http://';
+var globalUriHandlerProfile={
+ 'twitter': 'http://twitter.com/%u',
+ 'facebook': 'http://www.facebook.com/%u',
+ 'flickr': 'http://www.flickr.com/photos/%u',
+ 'linkedin': 'http://www.linkedin.com/in/%u',
+ 'myspace': 'http://www.myspace.com/%u',
+ 'sinaweibo': 'http://weibo.com/n/%u'
+};
+
+
+// globalDefaultAddressCountry
+// This option sets the default country for new address fields.
+// See common.js or use the following command to get the list of
+// all supported country codes (defined in common.js):
+// grep -E "'[a-z]{2}':\s+\[" common.js | sed -Ee 's#^\s+|\s+\[\s+# #g'
+// Example:
+var globalDefaultAddressCountry='us';
+
+
+// globalAddressCountryEquivalence
+// This option sets the processing of the country field specified
+// in the vCard ADR attribute.
+// By default the address field in vCard looks like:
+// ADR;TYPE=WORK:;;1 Waters Edge;Baytown;LA;30314;USA\r\n
+// what cause a problem, because the country field is a plain
+// text and can contain any value, e.g.:
+// USA
+// United States of America
+// US
+// and because the address format can be completely different for
+// each country, e.g.:
+// China address example:
+// [China]
+// [Province] [City]
+// [Street]
+// [Postal]
+// Japan address example:
+// [Postal]
+// [Prefecture] [County/City]
+// [Further Divisions]
+// [Japan]
+// the client needs to correctly detect the country from the ADR
+// attribute. Apple solved this problem by using:
+// item1.ADR;TYPE=WORK:;;1 Waters Edge;Baytown;LA;30314;USA\r\n
+// item1.X-ABADR:us\r\n
+// where the second "related" attribute defines the country code
+// for the ADR attribute. This client uses the same approach, but
+// if the vCard is created by 3rd party clients and the X-ABADR
+// is missing, it is possible to define additional "rules" for
+// country matching. These rules are specied by the country code
+// (for full list of country codes see the comment for pre previous
+// option) and a case insensitive regular expression (which matches
+// the plain text value in the country field).
+// NOTE: if X-ABADR is not present and the country not matches any
+// country defined in this option, then globalDefaultAddressCountry
+// is used by default.
+// Example:
+var globalAddressCountryEquivalence=[
+ {country: 'de', regex: '^\\W*Deutschland\\W*$'},
+ {country: 'sk', regex: '^\\W*Slovensko\\W*$'}
+];
+
+
+// globalAddressCountryFavorites
+// This option defines the list of countries which are shown at the top
+// of the country list in the interface (for full list of country codes
+// see the comment for pre globalDefaultAddressCountry option).
+// Example:
+// var globalAddressCountryFavorites=['de','sk'];
+var globalAddressCountryFavorites=[];
+
+
+// globalAddrColorPropertyXmlns
+// This options sets the namespace used for storing the "addressbook-color"
+// property by the client.
+// If true, undefined (or empty) "http://inf-it.com/ns/ab/" is used.
+// If false, then the addressbook color modification functionality
+// is completely disabled, and addressbook colors in the interface are
+// generated automatically.
+// Example:
+//var globalAddrColorPropertyXmlns=true;
+
+
+// globalContactStoreFN
+// This option specifies how the FN (formatted name) is stored into vCard.
+// The value for this options must be an array of strings, that can contain
+// the following variables:
+// prefix
+// last
+// middle
+// first
+// suffix
+// The string element of the array can contain any other characters (usually
+// space or colon). Elements are added into FN only if the there is
+// a variable match, for example if:
+// last='Lastname'
+// first='Firstname'
+// middle='' (empty)
+// and this option is set to:
+// ['last', ' middle', ' first'] (space in the second and third element)
+// the resulting value for FN will be: 'Lastname Firstname' and not
+// 'Lastname Firstname' (two spaces), because the middle name is empty (so
+// the second element is completely ignored /not added into FN/).
+// NOTE: this attribute is NOT used by this client, and it is also NOT
+// possible to directly edit it in the interface.
+// Examples:
+// var globalContactStoreFN=[' last', ' middle', ' first'];
+// var globalContactStoreFN=['last', ', middle', ' ,first'];
+var globalContactStoreFN=['prefix',' last',' middle',' first',' suffix'];
+
+
+// globalGroupContactsByCompanies
+// This options specifies how contacts are grouped in the interface.
+// By default the interface looks like (very simple example):
+// A
+// Adams Adam
+// Anderson Peter
+// B
+// Brown John
+// Baker Josh
+// if grouped by company/deparment the result is:
+// Company A [Department X]
+// Adams Adam
+// Brown John
+// Company B [Department Y]
+// Anderson Peter
+// Baker Josh
+// If this option is set to true contacts are grouped by company/department,
+// otherwise (default) contacts are grouped by letters of the alphabet.
+// If undefined or not true, grouping by alphabet letters is used.
+// NOTE: see also the globalCollectionDisplay option below.
+var globalGroupContactsByCompanies=false;
+
+
+// globalCollectionDisplay
+// This options specifies how data columns in the contact list are displayed.
+//
+// NOTE: columns are displayed ONLY if there is enought horizontal place in
+// the browser window (e.g. if you define 5 columns here, but your browser
+// window is not wide enough, you will see only first 3 columns instead of 5).
+//
+// NOTE: see the globalContactDataMinVisiblePercentage option which defines the
+// width for columns.
+//
+// The value must be an array of columns, where each column is represented by
+// an object with the following properties:
+// label => the value of this option is a string used as column header
+// You can use the following localized variables in the label string:
+// - {Name}
+// - {FirstName}
+// - {LastName}
+// - {MiddleName}
+// - {NickName}
+// - {Prefix}
+// - {Suffix}
+// - {BirthDay}
+// - {PhoneticLastName}
+// - {PhoneticFirstName}
+// - {JobTitle}
+// - {Company}
+// - {Department}
+// - {Categories}
+// - {NoteText}
+// - {Address}, {AddressWork}, {AddressHome}, {AddressOther}
+// - {Phone}, {PhoneWork}, {PhoneHome}, {PhoneCell}, {PhoneMain},
+// {PhonePager}, {PhoneFax}, {PhoneIphone}, {PhoneOther}
+// - {Email}, {EmailWork}, {EmailHome}, {EmailMobileme}, {EmailOther}
+// - {URL}, {URLWork}, {URLHome}, {URLHomepage}, {URLOther}
+// - {Dates}, {DatesAnniversary}, {DatesOther}
+// - {Related}, {RelatedManager}, {RelatedAssistant}, {RelatedFather},
+// {RelatedMother}, {RelatedParent}, {RelatedBrother}, {RelatedSister},
+// {RelatedChild}, {RelatedFriend}, {RelatedSpouse}, {RelatedPartner},
+// {RelatedOther}
+// - {Profile}, {ProfileTwitter}, {ProfileFacebook}, {ProfileFlickr},
+// {ProfileLinkedin}, {ProfileMyspace}, {ProfileSinaweibo}
+// - {IM}, {IMWork}, {IMHome}, {IMMobileme}, {IMOther}, {IMAim}, {IMIcq},
+// {IMIrc}, {IMJabber}, {IMMsn}, {IMYahoo}, {IMFacebook}, {IMGadugadu},
+// {IMGoogletalk}, {IMQq}, {IMSkype}
+// value => the value of this option is an array of format strings, or
+// an object with the following properties:
+// - company (used for company contacts)
+// - personal (used for user contacts)
+// where the value of these properties is an array of format strings used
+// for company or user contacts (you can have different values in the same
+// column for personal and company contacts).
+// You can use the following simple variables in the format string:
+// - {FirstName}
+// - {LastName}
+// - {MiddleName}
+// - {NickName}
+// - {Prefix}
+// - {Suffix}
+// - {BirthDay}
+// - {PhoneticLastName}
+// - {PhoneticFirstName}
+// - {JobTitle}
+// - {Company}
+// - {Department}
+// - {Categories}
+// - {NoteText}
+// You can also use parametrized variables, where the parameter is enclosed
+// in square bracket. Paramatrized variables are useful to extract data
+// such as home phone {Phone[type=home]}, extract the second phone number
+// {Phone[:1]} (zero based indexing) or extract the third home phone number
+// {Phone[type=home][:2]} from the vCard.
+// NOTE: if the parametrized variable matches multiple items, e.g.:
+// {Phone[type=work]} (if the contact has multiple work phones) then the
+// first one is used!
+//
+// The following parametrized variables are supported (note: you can use
+// all of them also without parameters /the first one will be used/):
+// - {Address[type=XXX]} or {Address[:NUM]} or {Address[type=XXX][:NUM]}
+// where supported values for XXX are:
+// - work
+// - home
+// - other
+// - any other custom value
+// - {Phone[type=XXX]} or {Phone[:NUM]} or {Phone[type=XXX][:NUM]}
+// where supported values for XXX are:
+// - work
+// - home
+// - cell
+// - main
+// - pager
+// - fax
+// - iphone
+// - other
+// - any other custom value
+// - {Email[type=XXX]} or {Email[:NUM]} or {Email[type=XXX][:NUM]}
+// where supported values for XXX are:
+// - work
+// - home
+// - mobileme
+// - other
+// - any other custom value
+// - {URL[type=XXX]} or {URL[:NUM]} or {URL[type=XXX][:NUM]}
+// where supported values for XXX are:
+// - work
+// - home
+// - homepage
+// - other
+// - any other custom value
+// - {Dates[type=XXX]} or {Dates[:NUM]} or {Dates[type=XXX][:NUM]}
+// where supported values for XXX are:
+// - anniversary
+// - other
+// - any other custom value
+// - {Related[type=XXX]} or {Related[:NUM]} or {Related[type=XXX][:NUM]}
+// where supported values for XXX are:
+// - manager
+// - assistant
+// - father
+// - mother
+// - parent
+// - brother
+// - sister
+// - child
+// - friend
+// - spouse
+// - partner
+// - other
+// - any other custom value
+// - {Profile[type=XXX]} or {Profile[:NUM]} or {Profile[type=XXX][:NUM]}
+// where supported values for XXX are:
+// - twitter
+// - facebook
+// - flickr
+// - linkedin
+// - myspace
+// - sinaweibo
+// - any other custom value
+// - {IM[type=XXX]} or {IM[service-type=YYY]} or {IM[:NUM]}
+// where supported values for XXX are:
+// - work
+// - home
+// - mobileme
+// - other
+// - any other custom value
+// and supported values for YYY are:
+// - aim
+// - icq
+// - irc
+// - jabber
+// - msn
+// - yahoo
+// - facebook
+// - gadugadu
+// - googletalk
+// - qq
+// - skype
+// - any other custom value
+//
+// NOTE: if you want to use the "any other custom value" option (for XXX
+// or YYY above) you MUST double escape the following characters:
+// =[]{}\
+// for example:
+// - for profile type "=XXX=" use: '{Profile[type=\\=XXX\\=]}'
+// - for profile type "\XXX\" use: '{Profile[type=\\\\XXX\\\\]}'
+//
+// NOTE: if you want to use curly brackets in the format string you must
+// double escape it, e.g.: ['{Company}', '\\{{Department}\\}']
+//
+// The format string (for the value option) is an array to allow full
+// customization of the interface. For example if:
+// value: ['{LastName} {MiddleName} {FirstName}']
+// and the person has no middle name, then the result in the column
+// will be (without quotes):
+// "Parker Peter" (note: two space characters)
+// but if you use:
+// value: ['{LastName}', ' {MiddleName}', ' {FirstName}']
+// then the result will be (without quotes):
+// "Parker Peter" (note: only one space character)
+// The reason is that only those elements of the array are appended
+// into the result where non-empty substitution was performed (so the
+// ' {MiddleName}' element in this case is ignored, because the person
+// in the example above has no /more precisely has empty/ middle name).
+//
+// Examples:
+// To specify two columns (named "Company" and "Department / LastName"),
+// where the first will display the company name, and the second will display
+// department for company contacts (with "Dep -" prefix), and lastname for
+// personal contacts (with "Name -" prefix) use:
+// var globalCollectionDisplay=[
+// {
+// label: 'Company',
+// value: ['{Company}']
+// },
+// {
+// label: 'Department / LastName',
+// value: {
+// company: ['Dep - {Department}'],
+// personal: ['Name - {LastName}']
+// }
+// }
+// ];
+// To specify 3 columns (named "Categories", "URL" and "IM"), where the first
+// will display categories, second will display the third work URL, and third
+// will display ICQ IM use:
+// var globalCollectionDisplay=[
+// {
+// label: 'Categories',
+// value: ['{Categories}']
+// },
+// {
+// label: 'URL',
+// value: ['{URL[type=WORK][:2]}']
+// },
+// {
+// label: 'IM',
+// value: ['{IM[service-type=ICQ]}']
+// }
+// ];
+//
+// Recommended settings if globalGroupContactsByCompanies
+// is set to false:
+// var globalCollectionDisplay=[
+// {
+// label: '{Name}',
+// value: ['{LastName}', ' {MiddleName}', ' {FirstName}']
+// },
+// {
+// label: '{Company} [{Department}]',
+// value: ['{Company}', ' [{Department}]']
+// },
+// {
+// label: '{JobTitle}',
+// value: ['{JobTitle}']
+// },
+// {
+// label: '{Email}',
+// value: ['{Email[:0]}']
+// },
+// {
+// label: '{Phone} 1',
+// value: ['{Phone[:0]}']
+// },
+// {
+// label: '{Phone} 2',
+// value: ['{Phone[:1]}']
+// },
+// {
+// label: '{NoteText}',
+// value: ['{NoteText}']
+// }
+// ];
+//
+// Recommended settings if globalGroupContactsByCompanies
+// is set to true:
+// var globalCollectionDisplay=[
+// {
+// label: '{Name}',
+// value: {
+// personal: ['{LastName}', ' {MiddleName}', ' {FirstName}'],
+// company: ['{Company}', ' [{Department}]']
+// }
+// },
+// {
+// label: '{JobTitle}',
+// value: ['{JobTitle}']
+// },
+// {
+// label: '{Email}',
+// value: ['{Email[:0]}']
+// },
+// {
+// label: '{Phone} 1',
+// value: ['{Phone[:0]}']
+// },
+// {
+// label: '{Phone} 2',
+// value: ['{Phone[:1]}']
+// },
+// {
+// label: '{NoteText}',
+// value: ['{NoteText}']
+// }
+// ];
+//
+// NOTE: if left undefined, the recommended settings will be used.
+
+
+// globalCollectionSort
+// This options sets the ordering of contacts in the interface. In general
+// contacts are ordered alphabetically by an internal "sort string" which
+// is created for each contact. Here you can specify how this internal string
+// is created. The value is a simple array holding only the values from the
+// value property defined in the globalCollectionDisplay option.
+// If undefined, the definition from globalCollectionDisplay is used.
+// Example:
+// var globalCollectionSort = [
+// ['{LastName}'],
+// ['{FirstName}'],
+// ['{MiddleName}'],
+// {
+// company: ['{Categories}'],
+// personal: ['{Company}']
+// }
+// ];
+
+
+// globalContactDataMinVisiblePercentage
+// This option defines how the width for columns are computed. If you set
+// it to 1 then 100% of all data in the column will be visible (the column
+// width is determined by the longest string in the column). If you set it
+// to 0.95 then 95% of data will fit into the column width, and the remaining
+// 5% will be truncated (" ...").
+// Example:
+var globalContactDataMinVisiblePercentage=0.95;
+
+
diff --git a/public/infcloud/css/default.css b/public/infcloud/css/default.css
new file mode 100644
index 0000000..14e8156
--- /dev/null
+++ b/public/infcloud/css/default.css
@@ -0,0 +1,3632 @@
+/*
+InfCloud - the open source CalDAV/CardDAV Web Client
+Copyright (C) 2011-2015
+ Jan Mate <jan.mate@inf-it.com>
+ Andrej Lezo <andrej.lezo@inf-it.com>
+ Matej Mihalik <matej.mihalik@inf-it.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-Light-webfont.eot');
+ src: url('../fonts/Roboto-Light-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-Light-webfont.woff') format('woff'),
+ url('../fonts/Roboto-Light-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-Light-webfont.svg#robotolight') format('svg');
+ font-weight: 300;
+ font-style: normal;
+}
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-Regular-webfont.eot');
+ src: url('../fonts/Roboto-Regular-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-Regular-webfont.woff') format('woff'),
+ url('../fonts/Roboto-Regular-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-Regular-webfont.svg#robotoregular') format('svg');
+ font-weight: 400;
+ font-style: normal;
+}
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-Medium-webfont.eot');
+ src: url('../fonts/Roboto-Medium-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-Medium-webfont.woff') format('woff'),
+ url('../fonts/Roboto-Medium-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-Medium-webfont.svg#robotomedium') format('svg');
+ font-weight: 500;
+ font-style: normal;
+}
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-Bold-webfont.eot');
+ src: url('../fonts/Roboto-Bold-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-Bold-webfont.woff') format('woff'),
+ url('../fonts/Roboto-Bold-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-Bold-webfont.svg#robotobold') format('svg');
+ font-weight: 700;
+ font-style: normal;
+}
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-LightItalic-webfont.eot');
+ src: url('../fonts/Roboto-LightItalic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-LightItalic-webfont.woff') format('woff'),
+ url('../fonts/Roboto-LightItalic-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-LightItalic-webfont.svg#robotolight_italic') format('svg');
+ font-weight: 300;
+ font-style: italic;
+}
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-Italic-webfont.eot');
+ src: url('../fonts/Roboto-Italic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-Italic-webfont.woff') format('woff'),
+ url('../fonts/Roboto-Italic-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-Italic-webfont.svg#robotoitalic') format('svg');
+ font-weight: 400;
+ font-style: italic;
+}
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-MediumItalic-webfont.eot');
+ src: url('../fonts/Roboto-MediumItalic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-MediumItalic-webfont.woff') format('woff'),
+ url('../fonts/Roboto-MediumItalic-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-MediumItalic-webfont.svg#robotomedium_italic') format('svg');
+ font-weight: 500;
+ font-style: italic;
+}
+@font-face
+{
+ font-family: "Roboto";
+ src: url('../fonts/Roboto-BoldItalic-webfont.eot');
+ src: url('../fonts/Roboto-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('../fonts/Roboto-BoldItalic-webfont.woff') format('woff'),
+ url('../fonts/Roboto-BoldItalic-webfont.ttf') format('truetype'),
+ url('../fonts/Roboto-BoldItalic-webfont.svg#robotobold_italic') format('svg');
+ font-weight: 700;
+ font-style: italic;
+}
+
+body, input, select, textarea
+{
+ font-family: 'Roboto';
+ font-size: 14px;
+ color: #404040;
+}
+
+.System
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ bottom: 0px;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ /* XXX - System display:none changes
+ display: none;
+ visibility: visible;*/
+ display: block;
+ visibility: hidden;
+ opacity: 0;
+}
+
+.update_d
+{
+ position: absolute;
+ display: block;
+ overflow: hidden;
+ top: 25px;
+ padding-top: 8px;
+ bottom: 0px;
+ right: 0px;
+ width: 24px;
+ background: #f0f0f0;
+ border-left: 1px solid #c0c0c0;
+ z-index: 30;
+}
+
+.update_h
+{
+ width: 24px;
+ font-size: 1.1em;
+ font-weight: 500;
+ writing-mode: tb-rl;
+ white-space: nowrap;
+ -webkit-transform:rotate(90deg);
+ -moz-transform:rotate(90deg);
+ -o-transform: rotate(90deg);
+}
+
+.update_h
+{
+ cursor: pointer;
+}
+
+.collection_d
+{
+ position: absolute;
+ top: 0;
+ left: 225px;
+ right: 582px;
+ border-right: 1px solid;
+ border-right-color: #c0c0c0;
+ height: 24px;
+ background: #f0f0f0;
+ color: #404040;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.collection_h
+{
+ position: absolute;
+ margin-left: 24px;
+ margin-top: 3px;
+ font-size: 1.1em;
+ font-weight: 500;
+}
+
+.collection_a, .company_a
+{
+ position: absolute;
+ right: 0px;
+ padding-top: 4px;
+ padding-right: 6px;
+ width:17px;
+ height: 16px;
+}
+
+.contact_d
+{
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 582px;
+ height: 24px;
+ background: #f0f0f0;
+ color: #404040;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.contact_h
+{
+ position: absolute;
+ padding-left: 6px;
+ padding-top: 2px;
+ font-size: 1.1em;
+ font-weight: 400;
+}
+
+.system_l
+{
+ position: absolute;
+ right: 32px;
+ padding-top: 4px;
+ height: 16px;
+}
+
+#SearchBox
+{
+ position: absolute;
+ display: block;
+ top: 24px;
+ left: 225px;
+ right: 582px;
+ border-right: 1px solid;
+ border-right-color: #c0c0c0;
+ overflow: hidden;
+ background: #ffffff;
+ z-index: 2; /* for floating headers */
+
+ height: 24px;
+ border-top: 1px solid #c0c0c0;
+ border-bottom: 1px solid #c0c0c0;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#SearchBox > .container
+{
+ position: absolute;
+ top: 3px;
+ left: 31px;
+ right: 27px;
+}
+#SearchBox *> input[data-type=search]
+{
+ width: 100%;
+ background-color: #ffffff;
+}
+
+#ABList
+{
+ position: absolute;
+ display: block;
+ top: 50px; /* search support */
+ left: 225px;
+ right: 582px;
+ bottom: 0;
+ border-right: 1px solid;
+ border-right-color: #c0c0c0;
+ overflow: hidden;
+ background: #ffffff;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#ABListOverlay
+{
+ position: absolute;
+ top: 0;
+ left: 225px;
+ right: 583px;
+ bottom: 0;
+ overflow: hidden;
+ background: #ffffff;
+ display: none;
+ z-index: 10;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.half
+{
+ position: relative;
+ height: 50% !important;
+}
+
+#ABContact
+{
+ position: absolute;
+ top: 25px;
+ right: 0;
+ bottom: 0;
+ display: block;
+ width: 579px;
+ padding-bottom: 8px;
+ overflow: auto;
+ overflow-x: hidden;
+ background: #f0f0f0;
+ border-top: 1px solid #f0f0f0;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#ABContactColor
+{
+ background: #f0f0f0;
+ position: absolute;
+ display: block;
+ top: 25px;
+ bottom: 0;
+ right: 579px;
+ width: 3px;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#ABContactOverlay
+{
+ position: absolute;
+ top: 24px;
+ right: 0;
+ bottom: 0;
+ width: 582px;
+ overflow: hidden;
+ background: #ffffff;
+ display: none;
+ z-index: 10;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#Login img[data-type=system_logo]
+{
+ padding-bottom: 5px;
+}
+
+#Login table, .System table
+{
+ padding: 0px 0px 0px 0px;
+ border: none;
+ border-collapse: collapse;
+}
+
+#Login td, .System td
+{
+ position: relative; /* required by placeholder plugin (used for IE) */
+ padding: 1px 2px 0px 0px;
+ height: 20px;
+ line-height: 19px;
+ vertical-align: top;
+}
+
+.System td.clean
+{
+ padding: 0px 0px 0px 0px !important;
+}
+
+.System td.buttons
+{
+ padding-top: 10px;
+}
+
+.System td.type
+{
+ width: 139px;
+}
+
+.fc td
+{
+ position: static; /* required by fullcalendar */
+}
+
+*:focus
+{
+ outline: none;
+}
+
+select
+{
+ font-size: 1em;
+ min-height: 19px;
+ max-height: 19px;
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
+ border: none;
+
+ background: #ffffff url(../images/select.svg) no-repeat center right;
+
+ padding-left: 3px; /* minor problem with chrome on windows */
+ padding-right: 19px; /* original: 18 - minor problem with chrome on windows */
+
+ appearance: none;
+ -webkit-appearance: none;
+
+ border-radius: 0px;
+ -webkit-border-radius: 0px;
+ -moz-border-radius: 0px;
+
+ outline: none;
+ -moz-outline: none;
+
+ color: #404040;
+
+ left: 0px;
+ vertical-align: top;
+}
+
+@-moz-document url-prefix() {
+ select
+ {
+ font-size: 1em;
+ line-height: 19px;
+
+ padding-left: 0px;
+ padding-right: 0px !important;
+
+ padding-bottom: 1px;
+ background: transparent url(../images/select_bg.svg) repeat-x;
+
+ /* FF outline hack */
+ color: rgba(64, 64, 64, 0);
+ text-shadow: 0 0 0 #404040;
+ }
+
+ select option
+ {
+ color: #404040;
+ background-color: #ffffff !important;
+ }
+}
+
+select[disabled]
+{
+ /* Safari problem with textfield (it is one pixel higher than the selectbox) */
+ min-height: 19px;
+ max-height: 19px;
+ padding-right: 3px !important;
+
+
+ font-size: 1em;
+
+ background: #fff none;
+
+ appearance: textfield;
+ -webkit-appearance: textfield;
+}
+@-moz-document url-prefix() {
+ select[disabled]
+ {
+ font-size: 1em;
+
+ padding-left: 0px;
+
+ /* FF for windows fix */
+ padding-right: 0px !important;
+ background: transparent url(../images/select_bg_dis.svg) repeat-x;
+ }
+}
+
+select[disabled][data-type="xhalf_type"]
+{
+ /* Safari problem with textfield (it is one pixel higher than the selectbox) */
+ min-height: 19px;
+ max-height: 19px;
+
+ background: #fff;
+
+ appearance: textfield;
+ -webkit-appearance: textfield;
+}
+@-moz-document url-prefix() {
+ select[disabled][data-type="xhalf_type"]
+ {
+ margin-left: 0px !important;
+ background: transparent url(../images/select_bg_dis.svg) repeat-x;
+ }
+}
+
+select[disabled][data-type="country_type"]
+{
+ /* Safari problem with textfield (it is one pixel higher than the selectbox) */
+ min-height: 19px;
+ max-height: 19px;
+
+ background: #fff;
+
+ appearance: textfield;
+ -webkit-appearance: textfield;
+}
+@-moz-document url-prefix() {
+ select[disabled][data-type="country_type"]
+ {
+ margin-left: 0px !important;
+ background: transparent url(../images/select_bg_dis.svg) repeat-x;
+ }
+}
+
+select[disabled][data-type="im_service_type"]
+{
+ /* Safari problem with textfield (it is one pixel higher than the selectbox) */
+ min-height: 19px;
+ max-height: 19px;
+
+ background: #fff;
+
+ appearance: textfield;
+ -webkit-appearance: textfield;
+}
+select[disabled][data-type="im_service_type"]:-moz-last-node
+{
+ margin-left: 0px !important;
+ background: transparent url(../images/select_bg_dis.svg) repeat-x;
+}
+
+
+
+td[data-size="login"] > select[data-type="language"]
+{
+ min-width: 331px !important;
+ max-width: 331px !important;
+}
+
+
+
+input
+{
+ font-size: 1em !important;
+ color: #404040;
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
+}
+
+@-moz-document url-prefix()
+{
+ input
+ {
+ text-indent: 1px;
+ }
+}
+
+input::-moz-focus-inner /* FF buttons */
+{
+ border: none;
+ padding: 0.07em 0em 0em 0em !important;
+}
+
+img[data-type=system_login]
+{
+ margin-top: 10px;
+ cursor: pointer;
+}
+
+input[data-type="system_username"], input[data-type="system_password"]
+{
+ font-size: 20px !important;
+ height: 28px !important;
+ min-width: 329px !important;
+ max-width: 329px !important;
+}
+
+select[data-type="language"]
+{
+ font-size: 20px !important;
+ min-height: 28px !important;
+ max-height: 28px !important;
+ background: none;
+}
+
+td[data-size="login_logo"]
+{
+ padding-left: 60px !important;
+}
+
+td[data-size="login"], td[data-size="login_input"]
+{
+ border-bottom: 2px solid #585858;
+}
+
+input[type=button], input[type=submit], .ui-datepicker-buttonpane button
+{
+ cursor: pointer;
+ border: 1px solid;
+ border-color: #c0c0c0;
+ font-size : 0.9em !important;
+ padding-left: 0.5em;
+ padding-right: 0.5em;
+
+ background: #ffffff;
+ color: #404040;
+ position : relative;
+
+ border-radius: 3px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+
+ -webkit-appearance: none;
+}
+input[data-type=cancel]
+{
+ margin-right: 1.5em;
+}
+
+input[disabled]
+{
+ color: #404040; /* webkit bug - the black color not works */
+ border-style: none;
+ background: #fff;
+ opacity: 1 !important;
+}
+input[disabled].safari_hack
+{
+ color: #000000; /* safari bug - the black color not works #000000 looks like #545454 :-( */
+}
+
+input[readonly]
+{
+ border-style: none;
+ background: #fff !important;
+}
+
+input::-webkit-input-placeholder
+{
+ color: #e0e0e0;
+ text-shadow: none !important;
+ -webkit-font-smoothing: antialiased;
+}
+input[readonly]::-webkit-input-placeholder
+{
+ color: #e0e0e0;
+ text-shadow: none !important;
+ -webkit-font-smoothing: antialiased;
+}
+input[disabled]::-webkit-input-placeholder
+{
+ color: #e0e0e0;
+ text-shadow: none !important;
+ -webkit-font-smoothing: antialiased;
+}
+textarea::-webkit-input-placeholder
+{
+ color: #e0e0e0;
+ text-shadow: none !important;
+ -webkit-font-smoothing: antialiased;
+}
+textarea[readonly]::-webkit-input-placeholder
+{
+ color: #e0e0e0;
+ text-shadow: none !important;
+ -webkit-font-smoothing: antialiased;
+}
+
+input:-moz-placeholder
+{
+ color: #e0e0e0 !important;
+}
+input[readonly]:-moz-placeholder
+{
+ color: #e0e0e0 !important;
+}
+input[disabled]:-moz-placeholder
+{
+ color: #e0e0e0 !important;
+}
+textarea:-moz-placeholder
+{
+ color: #e0e0e0;
+}
+textarea[readonly]:-moz-placeholder
+{
+ color: #e0e0e0;
+}
+input::-moz-placeholder
+{
+ color: #e0e0e0 !important;
+}
+input[readonly]::-moz-placeholder
+{
+ color: #e0e0e0 !important;
+}
+input[disabled]::-moz-placeholder
+{
+ color: #e0e0e0 !important;
+}
+textarea::-moz-placeholder
+{
+ color: #e0e0e0;
+}
+textarea[readonly]::-moz-placeholder
+{
+ color: #e0e0e0;
+}
+input:-ms-input-placeholder
+{
+ color: #e0e0e0 !important;
+}
+input[readonly]:-ms-input-placeholder
+{
+ color: #e0e0e0 !important;
+}
+input[disabled]:-ms-input-placeholder
+{
+ color: #e0e0e0 !important;
+}
+textarea:-ms-input-placeholder
+{
+ color: #e0e0e0;
+}
+textarea[readonly]:-ms-input-placeholder
+{
+ color: #e0e0e0;
+}
+
+input[type=text]::-ms-clear {
+ display: none;
+}
+input[type=password]::-ms-clear {
+ display: none;
+}
+
+.iex
+{
+ padding-top: 1px;
+ padding-left: 0px;
+ padding-right: 0px;
+}
+
+
+input[type=text], input[type=password]
+{
+ height: 19px;
+ margin-left: 0px;
+ outline: none;
+ border: 0px;
+
+ padding-left: 2px; /* it resizes the input size :( */
+
+ /* mobile safari remove rounded corners */
+ -webkit-appearance: none;
+ -webkit-border-radius: 0px;
+}
+
+input[type=text].fs, input[type=password].fs
+{
+ width: 390px;
+}
+
+input[type=text].ms, input[type=password].ms
+{
+ width: 254px;
+}
+
+input[type=text].hs, input[type=password].hs
+{
+ width: 193px;
+}
+
+input[type=text].ss, input[type=password].ss
+{
+ width: 112px;
+}
+
+input[type=checkbox]
+{
+ vertical-align: middle;
+ margin-right: 5px;
+}
+input[type=checkbox], x:-moz-any-link, x:default /* FF checkbox hack */
+{
+ margin-bottom: 3px !important;
+}
+input[disabled][type=checkbox] /* Opera checkbox hack */
+{
+ background: #e0e0e0;
+}
+label /* checkbox + text */
+{
+ font-size: 0.95em;
+}
+
+textarea
+{
+ font-size: 1em;
+ width: 527px;
+ height: 64px; /* if <61 firefox not shows the scroll bar ?! - note: we use autoResize plugin here */
+ margin: 0px 0px 0px 0px;
+ border-style: none;
+ resize: none;
+ padding-left: 3px;
+
+ outline: none;
+ -moz-outline: none;
+ -moz-border-radius: 0px;
+
+ /* mobile safari remove rounded corners */
+ -webkit-appearance: none;
+ -webkit-border-radius: 0px;
+}
+@-moz-document url-prefix() {
+ textarea
+ {
+ width: 529px;
+ padding-left: 2px !important;
+ }
+}
+textarea[readonly]
+{
+ color: #404040;
+ background: #fff;
+}
+textarea[readonly].safari_hack
+{
+ color: #000000; /* safari bug - the black color not works #000000 looks like #545454 :-( */
+}
+@-moz-document url-prefix() {
+ textarea[readonly]
+ {
+ color: #404040;
+ }
+}
+
+#LoginPage
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ z-index: 101;
+ background: #f8f8f8;
+ display: none; /* by default the login window is hidden */
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+.window
+{
+ position: relative;
+ display: inline-block;
+ width: 503px;
+ height: 311px;
+ top: 38.2%;
+ left: 61.8%;
+
+ margin-top: -155px;
+ margin-left: -252px;
+
+ background-image: url(../images/cloud.svg);
+ color: #000000;
+ text-align: center;
+}
+
+#Login
+{
+ margin-top: 50px;
+ margin-left: 85px;
+}
+
+#login_message
+{
+ padding-top: 20px;
+ font-size: 16px;
+ font-weight: 500;
+ color: #9E2F36;
+}
+
+#LoginLoader
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ bottom: 0px;
+ overflow: visible;
+ background-image: url(../images/cloud.svg);
+ display: none;
+ z-index: 1;
+}
+
+.footer
+{
+ position: absolute;
+ left: 25px;
+ bottom: 25px;
+ font-size: 16px;
+ color: #2d2d2d;
+}
+
+#cacheDialog
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ bottom: 0px;
+ overflow: visible;
+ background: #ffffff;
+ display: none;
+ opacity: 0.95;
+ text-align: center;
+ z-index: 200;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#cacheDialogText
+{
+ position: absolute;
+ width: 100%;
+ bottom: 50%;
+ vertical-align: middle;
+ font-size: 2em;
+}
+
+#cacheDialogButtonWrapper
+{
+ position: absolute;
+ left: 40%;
+ right: 40%;
+ bottom: 40%;
+}
+
+#cacheDialogButton
+{
+ font-size: 2em !important;
+ border: 2px solid #c0c0c0;
+}
+
+#MainLoader
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ bottom: 0px;
+ overflow: visible;
+ background: #ffffff;
+ display: none;
+ opacity: 0.9;
+ z-index: 101;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+.loader
+{
+ width: 100%;
+ height: 100%;
+ background: url(../images/loadinfo.gif) no-repeat center center;
+}
+
+.loader_hidden .loader
+{
+ background: none;
+}
+
+.loaderInfo
+{
+ position: absolute;
+ width: 100%;
+ bottom: 25%;
+ vertical-align: middle;
+ text-align: center;
+ font-size: 2em;
+}
+
+#ABMessage
+{
+ position: absolute;
+ top: 24px;
+ right: 0;
+ display: block;
+ width: 582px;
+ height: 0;
+ z-index: 20;
+
+ background: #ffffff;
+ border-bottom: 1px solid;
+ border-bottom-color: #c0c0c0;
+ border-top: 0px;
+ overflow: hidden;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#ABInMessage
+{
+ position: relative;
+ top: -1px;
+
+ background: #ffffff;
+ border-bottom: 1px solid;
+ border-bottom-color: #404040;
+ border-top: 0px;
+ display: block;
+ height: 0px;
+ overflow: hidden;
+}
+
+#ABMessageText, #ABInMessageText
+{
+ position: absolute;
+ padding: 7px;
+ text-align: center;
+ vertical-align: bottom;
+ width: 100%;
+ font-weight: 500;
+ background: #ffffff;
+ bottom: 0px;
+}
+
+#ABInMessageEditBox
+{
+ position: relative;
+ top: -1px;
+ display:none;
+
+ background: #ffffff;
+ border-bottom: 1px solid;
+ border-bottom-color: #404040;
+ border-top: 0px;
+ height: 0px;
+ overflow: hidden;
+}
+
+#ABInMessageTextEditBox
+{
+ position: absolute;
+ padding: 7px;
+ text-align: center;
+ vertical-align: bottom;
+ width: 100%;
+ font-weight: 500;
+ background: #ffffff;
+ bottom: 0px;
+}
+
+.message_success
+{
+ color: #000000;
+}
+
+.message_error
+{
+ color: #ff0000;
+}
+
+.element_grayed
+{
+ color: #e0e0e0;
+}
+
+.element_default_hidden
+{
+ visibility: hidden;
+}
+
+.element_hide
+{
+ height: 0px !important;
+ max-height: 0px !important;
+ overflow: hidden;
+}
+
+.element_no_display
+{
+ display: none;
+}
+
+.element_no_display_af
+{
+ display: none !important;
+}
+
+input.non_editable
+{
+ background-color: #f5f5f5 !important;
+}
+
+.integration_d
+{
+ display: none; /* hide the integration banner if the div is present but only CardDavMATE is loaded */
+}
+
+.resourcesCardDAV_d
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ border-right: 1px solid #c0c0c0;
+ width: 224px;
+ height: 49px;
+ background: #f0f0f0;
+ color: #404040;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.resourcesCardDAV_h
+{
+ float: left;
+ margin-top: 2px;
+ margin-left: 6px;
+ width: 190px;
+ font-size: 1.1em;
+ font-weight: 400;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+#ResourceCardDAVToggle
+{
+ float: left;
+ padding-top: 4px;
+ padding-left: 7px;
+ cursor: pointer;
+}
+
+#ResourceCardDAVList
+{
+ position: absolute;
+ display: block;
+ top: 24px;
+ bottom: 0px;
+ left: 0px;
+ border-right: 1px solid;
+ border-right-color: #c0c0c0;
+ width: 224px;
+ overflow: auto;
+ overflow-x: hidden;
+ background: #ffffff;
+ border-top: 1px solid #c0c0c0;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#ResourceCardDAVListOverlay
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ bottom: 0px;
+ border-right: 1px solid;
+ border-right-color: #c0c0c0;
+ width: 224px;
+ background: #ffffff;
+ display: none;
+ z-index: 10;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#AddressbookOverlay
+{
+ position: absolute;
+ top: 0px;
+ left: 225px;
+ right: 0px;
+ bottom: 0px;
+ overflow: hidden;
+ background: #ffffff;
+ opacity: 0.8;
+ display: none;
+ z-index: 22;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.colorPicker
+{
+ display: none;
+}
+
+.resourceCardDAVColor
+{
+ width: 12px;
+ height: 24px;
+ margin-top: 0px;
+ margin-right: 6px;
+ float: left;
+}
+
+.resourceCardDAVGroupColor
+{
+ width: 12px;
+ height: 19px;
+ margin-top: 0px;
+ float: left;
+}
+
+.resourceCardDAV_header
+{
+ position: relative !important;
+ display: block;
+ overflow: hidden;
+ left: 0px;
+ top: 0px;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+ bottom: auto;
+ height: 20px;
+ line-height: 17px;
+ background-color: #ffffff;
+ color: #404040;
+ cursor: default;
+ padding-left: 6px;
+ padding-right: 6px;
+ font-size: 0.9em;
+ font-weight: 500;
+
+ border-top: 1px solid;
+ border-top-color: #ffffff;
+ border-bottom: 1px solid;
+ border-bottom-color: #ffffff;
+}
+
+.resourceCardDAV_item, .contact_group
+{
+ position: relative;
+ display: block;
+ overflow: hidden;
+
+ left: 0px;
+ top: 0px;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ width: 100%;
+}
+
+.resourceCardDAV_item input[type="checkbox"]
+{
+ margin-top: -2px;
+ margin-right: 5px;
+}
+
+@-moz-document url-prefix() {
+ .resourceCardDAV_item input[type="checkbox"]
+ {
+ margin-top: 0px;
+ }
+}
+
+.resourceCardDAV
+{
+ position: relative;
+ display: block;
+ overflow: hidden;
+
+ left: 0px;
+ top: 0px;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+ height: 25px;
+ line-height: 23px;
+ border-top: 1px solid #ffffff;
+ color: #404040;
+ cursor: default;
+ font-size: 1em;
+ font-weight: 400;
+
+ padding-left: 0px;
+ padding-right: 6px;
+}
+
+.resourceCardDAV:hover
+{
+ cursor: pointer;
+ color: #404040 !important;
+ background-color: #e7e7e7 !important;
+ border-top: 1px solid !important;
+/*
+ border-top-color: #b9b9b9 !important;
+ border-bottom: 1px solid !important;
+ border-bottom-color: #b9b9b9 !important;
+*/
+ border-top-color: #ffffff !important;
+}
+
+.resourceCardDAV.resourceCardDAV_selected
+{
+ color: #ffffff !important;
+ background: #585858 !important;
+ border-top: 1px solid !important;
+/*
+ border-top-color: #585858 !important;
+ border-bottom: 1px solid !important;
+ border-bottom-color: #585858 !important;
+*/
+ border-top-color: #ffffff !important;
+}
+
+.resourceCardDAV.resourceCardDAV_dropped_to
+{
+ background-color: #b9b9b9;
+ border: 1px dashed #ffffff !important;
+ padding-right: 7px;
+}
+
+.resourceCardDAV.resourceCardDAV_dropped_to > .resourceCardDAVColor
+{
+ width: 11px !important; /* reduce the addressbook color size during "drop" */
+}
+
+.resourceCardDAV.resourceCardDAV_ro
+{
+ background-image: url(../images/read_only_b.svg);
+ background-repeat: no-repeat !important;
+ background-position: 97% center !important;
+ padding-right: 32px !important;
+}
+
+.resourceCardDAV.resourceCardDAV_ro:hover
+{
+ background-image: url(../images/read_only_b.svg) !important;
+}
+
+.resourceCardDAV.resourceCardDAV_ro.resourceCardDAV_selected
+{
+ background-image: url(../images/read_only_w.svg) !important;
+}
+
+#ABListTable, #ABListTableInner
+{
+ width: 100%;
+ table-layout: fixed;
+}
+
+.ablist_table_header
+{
+ border-bottom: 1px solid #c0c0c0;
+}
+
+.ablist_table_header th
+{
+ font-weight: 500;
+ font-size: 0.9em;
+ border-right: 1px solid #f0f0f0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.ablist_table_container > td
+{
+ padding: 0 !important;
+}
+
+.ablist_table_wrapper
+{
+ overflow-x: hidden;
+ overflow-y: auto;
+}
+
+.ablist_column_color
+{
+ width: 6px;
+}
+
+.ablist_header
+{
+ color: #404040;
+ background-color: #f0f0f0;
+ font-size: 0.9025em;
+}
+
+.ablist_header td
+{
+ height: 18px;
+ padding: 0 10px;
+ line-height: 18px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.ablist_item
+{
+ color: #404040;
+ background-color: #fff;
+ font-size: 1.02885em;
+ border-top: 1px solid #ffffff !important;
+}
+
+.ablist_item td
+{
+ height: 15px !important;
+ padding: 2px 4px;
+ line-height: 15px !important;
+ border-right: 1px solid #f0f0f0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ background-color: inherit;
+}
+
+.ablist_item td.ablist_item_color
+{
+ height: 100%;
+ width: 6px;
+ padding: 0;
+ border-color: #f0f0f0;
+ background-color: #f0f0f0;
+ border-right: none;
+}
+
+.ablist_item, x:-moz-any-link, x:default
+{
+ line-height: 17px;
+}
+
+.ablist_item_selected
+{
+ color: #eeeeee !important;
+ background-color: #585858 !important;
+/*
+ border-top: 1px solid !important;
+ border-top-color: #585858 !important;
+ border-bottom: 1px solid !important;
+ border-bottom-color: #585858 !important;
+*/
+ border-top: 1px solid !important;
+ border-top-color: #ffffff !important;
+}
+
+.ablist_item:hover
+{
+ cursor: pointer;
+ color: #000000;
+ background-color: #b9b9b9;
+/*
+ border-top-color: #b9b9b9;
+ border-bottom-color: #b9b9b9;
+*/
+ border-top-color: #ffffff;
+}
+
+@media only screen and (device-width: 1024px)
+{
+ /* Rule matched by 1024x768 tablets, like the iPad and iPad2 and ignored by other browsers */
+ .ablist_item:hover
+ {
+ cursor: default;
+ color: #404040;
+ background-color: #ffffff;
+ border-top-color: #ffffff;
+/*
+ border-bottom-color: #ffffff;
+*/
+ }
+}
+
+@media only screen and (device-width: 768px)
+{
+ /* Rule matched by 1024x768 tablets, like the iPad and iPad2 and ignored by other browsers */
+ .ablist_item:hover
+ {
+ cursor: default;
+ color: #404040;
+ background-color: #ffffff;
+ border-top-color: #ffffff;
+/*
+ border-bottom-color: #ffffff;
+*/
+ }
+}
+
+.ablist_item:hover td
+{
+ border-right-color: #eee;
+}
+
+/*.company, .ablist_item_selected.company:hover
+{
+ padding-right: 30px;
+ background-image: url(../images/company_s_b.svg);
+ background-repeat: no-repeat;
+ background-position: right top;
+}
+
+.ablist_item_selected.company
+{
+ background-image: url(../images/company_s_w.svg) !important;
+ background-repeat: no-repeat !important;
+ background-position: right top !important;
+}*/
+
+.ablist_item_dragged
+{
+ border: 1px dashed #ffffff !important;
+ background-color: #585858 !important;
+ color: #ffffff !important;
+}
+
+.group
+{
+ position: relative;
+ display: block;
+ overflow: hidden;
+
+ left: 0px;
+ top: 0px;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+ height: 20px;
+ line-height: 17px;
+ border-top: 1px solid #ffffff;
+ color: #404040;
+ cursor: default;
+ padding-left: 0px;
+ padding-right: 6px;
+ font-size: 0.9em;
+ background-image: none !important;
+}
+
+.group input[type="checkbox"]
+{
+ margin-top: -2px;
+ margin-left: 18px;
+ margin-right: 5px;
+}
+
+@-moz-document url-prefix() {
+ .group input[type="checkbox"]
+ {
+ margin-top: 0x;
+ }
+}
+
+.group:hover
+{
+ cursor: pointer;
+ color: #404040 !important;
+ background-color: #e7e7e7 !important;
+ border-top: 1px solid !important;
+/*
+ border-top-color: #b9b9b9 !important;
+ border-bottom: 1px solid !important;
+ border-bottom-color: #b9b9b9 !important;
+*/
+ border-top-color: #ffffff !important;
+}
+
+.group.resourceCardDAV_selected
+{
+ color: #ffffff !important;
+ background: #585858 !important;
+ border-top: 1px solid !important;
+/*
+ border-top-color: #585858 !important;
+ border-bottom: 1px solid !important;
+ border-bottom-color: #585858 !important;
+*/
+ border-top-color: #ffffff !important;
+}
+
+.group_dropped_to
+{
+ background-color: #b9b9b9;
+ border: 1px dashed #ffffff !important;
+ padding-right: 7px;
+}
+
+.group_dropped_to > .resourceCardDAVGroupColor
+{
+ width: 11px !important;
+}
+
+.r_operate.resourceCardDAV, .r_operate.group
+{
+ background-image: url(../images/loadinfo_s1.gif) !important;
+ background-repeat: no-repeat !important;
+ background-position: 97% center !important;
+ padding-right: 32px;
+}
+
+.r_operate.resourceCardDAV:hover, .r_operate.group:hover
+{
+ background-image: url(../images/loadinfo_s2.gif) !important;
+}
+
+.r_operate.resourceCardDAV.resourceCardDAV_selected, .r_operate.group.resourceCardDAV_selected
+{
+ background-image: url(../images/loadinfo_s3.gif) !important;
+}
+
+.r_success.resourceCardDAV, .r_success.group
+{
+ background-image: url(../images/success_b.svg) !important;
+ background-repeat: no-repeat !important;
+ background-position: 97% center !important;
+ padding-right: 32px;
+}
+
+.r_success.resourceCardDAV:hover, .r_success.group:hover
+{
+ background-image: url(../images/success_b.svg) !important;
+}
+
+.r_success.resourceCardDAV.resourceCardDAV_selected, .r_success.group.resourceCardDAV_selected
+{
+ background-image: url(../images/success_w.svg) !important;
+}
+
+.r_error.resourceCardDAV, .er_error.resourceCardDAV, .r_error.group, .er_error.group
+{
+ background-image: url(../images/error_b.svg) !important;
+ background-repeat: no-repeat !important;
+ background-position: 97% center !important;
+ padding-right: 32px;
+}
+
+.r_error.resourceCardDAV:hover, .er_error.resourceCardDAV:hover, .r_error.group:hover, .er_error.group:hover
+{
+ background-image: url(../images/error_b.svg) !important;
+}
+
+.r_error.resourceCardDAV.resourceCardDAV_selected, .er_error.resourceCardDAV.resourceCardDAV_selected, .r_error.group.resourceCardDAV_selected, .er_error.group.resourceCardDAV_selected
+{
+ background-image: url(../images/error_w.svg) !important;
+}
+
+.resourceCardDAV_header.load_mode, .resourceCardDAV.load_mode, .resourceCardDAV.load_mode:hover
+{
+ padding-right: 24px !important;
+ background-image: none !important;
+}
+
+.contact_group.load_mode
+{
+ display: none;
+}
+
+.resourceCardDAV_header.unloaded, .resourceCardDAV.unloaded
+{
+ color: rgba(64, 64, 64, 0.4) !important;
+}
+
+.resourceCardDAV.unloaded .resourceCardDAVColor
+{
+ opacity: 0.4;
+}
+
+
+
+td[data-size="full"] > span > select[data-type="country_type"]
+{
+ min-width: 392px !important;
+ max-width: 392px !important;
+}
+td[data-size="full"] > span > select[data-type="xfull_type"]
+{
+ min-width: 392px !important;
+ max-width: 392px !important;
+}
+
+td[data-size="half"] > span > select[data-type="country_type"]
+{
+ min-width: 195px !important;
+ max-width: 195px !important;
+}
+td[data-size="half"] > span > select[data-type="xhalf_type"]
+{
+ min-width: 195px !important;
+ max-width: 195px !important;
+}
+
+td[data-size="small"] > select
+{
+ min-width: 134px !important;
+ max-width: 134px !important;
+}
+
+img[data-type="invalidCardDavTagsinput"]
+{
+ vertical-align: top;
+ margin-top: -22px;
+ margin-left: 512px;
+}
+
+#showUnloadedAddressbooks
+{
+ float:right;
+ padding-top: 4px;
+ padding-right: 6px;
+ cursor: pointer;
+}
+
+#EditorBox
+{
+ padding-left: 7px;
+ padding-top: 4px;
+ z-index: 1;
+}
+
+#EditorBox *> .attr_desc
+{
+ font-size: 1em;
+ height: 1.3em !important;
+ vertical-align: middle !important;
+ text-align: baseline !important;
+}
+
+#EditorBox *> .opw /* + and - image button IE bug with input type="image" and width */
+{
+ width:14px;
+}
+
+#EditorBox *> .op /* + and - image buttons (width is defined separately in .opw) */
+{
+ padding-top: 2px;
+}
+
+#EditorBox *> .zero_height
+{
+ height: 0px !important;
+}
+
+#EditorBox *> .photo_box
+{
+ width: 171px !important;
+ height: 160px !important;
+}
+
+#EditorBox *> .photo_div
+{
+ position: relative;
+ overflow:hidden;
+ width: 164px;
+ height: 183px;
+
+ border: 1px solid;
+ border-color: #d0d0d0;
+}
+
+#EditorBox *> .photo
+{
+ position: relative;
+ width: 164px;
+ height: 183px;
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+#EditorBox *> .photo_blank.photo_user
+{
+ background-image: url(../images/user.svg);
+}
+
+#EditorBox *> .photo_blank.photo_company
+{
+ background-image: url(../images/company.svg);
+}
+
+#EditorBox *> .heightfix
+{
+ height: 19px !important;
+ min-height: 19px !important;
+ max-height: 19px !important;
+ line-height: 16px !important;
+}
+
+select.inverse_select
+{
+ background: #ffffff url(../images/select_inv.svg) no-repeat center right;
+}
+
+#ExtendedDest
+{
+ position: absolute;
+ top: 22px;
+ height: 0;
+ width: 392px;
+ background-color: #fff;
+ overflow-y: auto;
+ overflow-x: hidden;
+ z-index: 1;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.extended_dest_header
+{
+ overflow: hidden;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+ height: 20px;
+ line-height: 17px;
+ color: #404040;
+ padding-left: 6px;
+ padding-right: 6px;
+ font-size: 0.9em;
+ font-weight: 500;
+
+ border-top: 1px solid;
+ border-top-color: #ffffff;
+ border-bottom: 1px solid;
+ border-bottom-color: #ffffff;
+}
+
+.extended_dest_item, .extended_dest_group_container
+{
+ overflow: hidden;
+
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ width: 100%;
+}
+
+.extended_dest_item input[type="checkbox"]
+{
+ margin-top: -2px;
+ margin-right: 5px;
+}
+
+@-moz-document url-prefix() {
+ .extended_dest_item input[type="checkbox"]
+ {
+ margin-top: 0px;
+ }
+}
+
+.extended_dest_resource
+{
+ overflow: hidden;
+
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+ height: 25px;
+ line-height: 23px;
+ border-top: 1px solid #ffffff;
+ color: #404040;
+ font-size: 1em;
+ font-weight: 400;
+
+ padding-left: 0px;
+ padding-right: 6px;
+}
+
+.extended_dest_group
+{
+ overflow: hidden;
+
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+ height: 20px;
+ line-height: 17px;
+ border-top: 1px solid #ffffff;
+ color: #404040;
+ padding-left: 0px;
+ padding-right: 6px;
+ font-size: 0.9em;
+}
+
+.extended_dest_group input[type="checkbox"]
+{
+ margin-top: -2px;
+ margin-left: 18px;
+ margin-right: 5px;
+}
+
+@-moz-document url-prefix() {
+ .extended_dest_group input[type="checkbox"]
+ {
+ margin-top: 0x;
+ }
+}
+
+.extended_dest_resource_color
+{
+ width: 12px;
+ height: 24px;
+ margin-top: 0px;
+ margin-right: 6px;
+ float: left;
+}
+
+.extended_dest_group_color
+{
+ width: 12px;
+ height: 19px;
+ margin-top: 0px;
+ float: left;
+}
+
+#photoArrow
+{
+ position: absolute;
+ top: 184px;
+ left: 74px;
+ display: none;
+ height: 0px;
+ width: 0px;
+ padding: 0px;
+ height: 9px;
+ width: 16px;
+ background: url(../images/popupArrow.svg) no-repeat center;
+/* border: 8px solid #585858;
+ border-top-color: transparent;
+ border-left-color: transparent;
+ border-right-color: transparent;*/
+ z-index: 103;
+}
+
+#photoBox
+{
+ position: absolute;
+ top: 192px;
+ left: 0;
+ display: none;
+ width: 300px;
+ background-color: #f0f0f0;
+ color: #404040;
+ border: 1px solid #c0c0c0;
+ z-index: 102;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#photoBox h1
+{
+ margin: 0;
+ font-size: 1em;
+ text-align: center;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+#photoBoxContent
+{
+ padding: 10px;
+}
+
+#photoURL
+{
+ width: 218px;
+}
+
+#photoURL.invalid
+{
+ padding-right: 22px;
+ width: 196px;
+}
+
+#photoBoxButton
+{
+ top: -1px;
+ margin-left: 6px;
+ width: 50px;
+}
+
+@-moz-document url-prefix() {
+ #photoBoxButton
+ {
+ top: 0px;
+ }
+}
+
+/* XXX - For the next version
+#SystemCalDavZAP, #SystemCalDavTODO
+{
+ display: block;
+ visibility: hidden;
+}*/
+
+#SystemCalDavZAP th, #SystemCalDavTODO th
+{
+ position: relative; /* required by placeholder plugin (used for IE) */
+ font-weight: 400;
+}
+
+.resourcesCalDAV_h
+{
+ position: absolute;
+ padding-left: 8px;
+ padding-top: 3px;
+ font-size: 1.1em;
+ font-weight: 500;
+}
+
+.resourcesCalDAV_d
+{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ right: 0px;
+ border-right: 1px solid;
+ border-right-color: #c0c0c0;
+ width: 224px;
+ height: 24px;
+ background: #2d2d2d;
+ color: #eeeeee;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#ResourceCalDAVList, #ResourceCalDAVTODOList
+{
+ position: absolute;
+ display: block;
+ top: 24px;
+ bottom: 0px;
+ left: 0px;
+ width: 224px;
+ overflow: auto;
+ overflow-x: hidden;
+ background: #ffffff;
+ border-top: 1px solid #c0c0c0;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#ResourceCalDAVListOverlay
+{
+ position: absolute;
+ top: 24px;
+ left: 0px;
+ bottom: 0px;
+ border-right: 1px solid;
+ border-right-color: #c0c0c0;
+ width: 224px;
+ background: #ffffff;
+ display: none;
+ z-index: 10;
+}
+
+.resourceCalDAV_header, .resourceCalDAVTODO_header
+{
+ position: relative !important;
+ display: block;
+ overflow: hidden;
+ left: 0px;
+ top: 0px;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ width: 100%;
+ bottom: auto;
+ height: 20px;
+ line-height: 17px;
+ background-color: #ffffff;
+ color: #404040;
+ cursor: default;
+ padding-left: 6px;
+ padding-right: 6px;
+ font-size: 0.9em;
+ font-weight: 500;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ border-top: 1px solid;
+ border-top-color: #ffffff;
+ border-bottom: 1px solid;
+ border-bottom-color: #ffffff;
+}
+
+.resourceCalDAV_item, .resourceCalDAVTODO_item
+{
+ position: relative;
+ display: block;
+ overflow: hidden;
+
+ left: 0px;
+ top: 0px;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ width: 100%;
+}
+
+body
+{
+ overflow: hidden;
+}
+
+#timezoneSelectDiv, #timezoneTodoSelectDiv
+{
+ position: absolute;
+ top: 0px;
+ left: 69px;
+}
+
+#timezoneWrapper select, #timezoneWrapperTODO select
+{
+ background: #f0f0f0 url(../images/select_black.svg) no-repeat center right;
+ color: #404040;
+}
+
+@-moz-document url-prefix() {
+ #timezoneWrapper select, #timezoneWrapperTODO select
+ {
+ background: transparent url(../images/select_bg_black.svg) repeat-x;
+
+ /* FF outline hack */
+ color: rgba(64, 64, 64, 0);
+ text-shadow: 0 0 0 #404040;
+ }
+
+ #timezoneWrapper select option
+ {
+ color: #404040;
+ background-color: #f0f0f0 !important;
+ }
+
+}
+
+#CalendarLoader, #CalendarLoaderTODO
+{
+ position: absolute;
+ top: 0px;
+ left: 225px;
+ right: 0px;
+ bottom: 0px;
+ overflow: visible;
+ background: #ffffff;
+ display: none;
+ opacity: 0.8;
+ z-index: 99;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#CAEvent .saveLoader
+{
+ top:1px;
+ left:1px;
+ position: absolute;
+ height: 100%;
+ width: 100%;
+ background: #ffffff;
+ display: none;
+ opacity: 0.95;
+ z-index: 101;
+}
+
+#todoLoader .saveLoader
+{
+ position: absolute;
+ width: 100%;
+ height: 50%;
+ background: #ffffff;
+ display: block;
+ opacity: 0.95;
+ z-index: 101;
+}
+
+.saveLoaderInfo
+{
+ position: absolute;
+ width: 100%;
+ top: 60%;
+ vertical-align: bottom;
+ text-align: center;
+ padding: 0px;
+ font-weight: 500;
+ z-index: 102;
+}
+
+#todoLoader .saveLoaderInfo
+{
+ top: 70%;
+}
+
+h1
+{
+ font-weight: 400;
+ background-color: #f0f0f0;
+ color: #404040;
+ font-size: 1.1em;
+ padding: 3px 0px 0px 6px;
+ height: 21px;
+ line-height: 19px;
+ border-bottom: 1px solid #c0c0c0;
+}
+
+h3
+{
+ color: #2d2d2d;
+ font-size: 1em;
+ padding: 15px;
+}
+
+.headers
+{
+ top: 0px;
+ position: absolute;
+ font-weight: 400;
+ background-color: #f0f0f0;
+ color: #404040;
+ font-size: 1em;
+ height: 24px;
+ z-index: 25;
+ border-bottom: 1px solid #c0c0c0;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+/*
+.headers span[data-type=calendars_txt], .resourceCalDAVTODO_text
+{
+ float: left;
+ margin-top: 3px;
+}
+*/
+
+.headers span[data-type=resourcesCalDAV_txt], .headers span[data-type=todo_txt], .headers span[data-type=resourceCalDAV_subscribe_text]
+{
+ float: left;
+ margin-top: 2px;
+ margin-left: 6px;
+ width: 190px;
+ font-size: 1.1em;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+#ResourceCalDAVToggle, #ResourceCalDAVTODOToggle
+{
+ float: left;
+ padding-top: 4px;
+ padding-left: 7px;
+ cursor: pointer;
+}
+
+#showUnloadedCalendars, #showUnloadedCalendarsTODO
+{
+ float:right;
+ padding-top: 4px;
+ padding-right: 6px;
+ cursor: pointer;
+}
+
+#eventFormShower, #eventFormShowerTODO
+{
+ float: right;
+ height: 16px;
+ width: 17px;
+ padding: 4px 6px;
+ cursor: pointer;
+}
+
+#searchFormShowerDiv
+{
+ cursor: pointer;
+ float: right;
+ height: 15px;
+ margin-right: 10px;
+}
+
+#resourceCalDAV_h, #resourceCalDAVTODO_h
+{
+ left: 0px;
+ height: 49px;
+ width: 224px;
+ border-bottom: none;
+}
+
+#todoForm_h
+{
+ right: 0;
+ width: 413px;
+}
+
+#todoForm
+{
+ position: absolute;
+ top: 25px;
+ right: 0;
+ bottom: 0;
+ width: 410px;
+ overflow: auto;
+ overflow-x: hidden;
+ background-color: #f0f0f0;
+}
+
+#todoLoader
+{
+ position: absolute;
+ display: none;
+ top: 25px;
+ right: 0;
+ bottom: 0;
+ width: 413px;
+ z-index: 101;
+ background-color: #fff;
+}
+
+#main_h
+{
+ left: 224px;
+ right: 0px;
+ border-left: 1px solid #c0c0c0;
+}
+
+#main_h_TODO
+{
+ left: 224px;
+ right: 413px;
+ border-left: 1px solid #c0c0c0;
+ border-right: 1px solid #c0c0c0;
+/* border-bottom: 1px solid #FFFFFF;*/
+}
+
+#main_h_placeholder, #mainTODO_h_placeholder
+{
+ left: 95px;
+ right: 90px;
+ position: absolute;
+ overflow: hidden;
+ padding-right: 5px;
+}
+
+#mainTODO_h_placeholder
+{
+ left: 95px;
+ right: 50px;
+}
+
+#timezoneWrapper, #timezoneWrapperTODO
+{
+ position: absolute;
+ padding-left: 6px;
+ left: 0px;
+ bottom: 0px;
+ height: 19px;
+ width: 218px;
+ background: #f0f0f0;
+ border-top: 1px solid #c0c0c0;
+ color: #404040;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#timezoneWrapper label, #timezoneWrapperTODO label
+{
+ position: relative;
+ display: inline-block;
+ top: 1px;
+ min-width: 60px;
+ max-width: 60px;
+ overflow: hidden;
+
+}
+
+#timezonePicker, #timezonePickerTODO
+{
+ width: 155px;
+ background-color: #2d2d2d;
+ color: #FFFFFF;
+}
+
+#ResourceCalDAVList, #ResourceCalDAVTODOList
+{
+ z-index: 25;
+}
+
+#searchForm
+{
+ position: absolute;
+ top: 24px;
+ left: 224px;
+ right: 0px;
+ height:100px;
+ background: #ffffff;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: #c0c0c0;
+ overflow: hidden;
+
+ z-index: 25;
+ height: 24px;
+ border-top: 1px solid;
+ border-top-color: #c0c0c0;
+ border-bottom: 1px solid;
+ border-bottom-color: #c0c0c0;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#searchFormTODO
+{
+ position: absolute;
+ top: 24px;
+ left: 224px;
+ right: 413px;
+ height: 24px;
+ background: #ffffff;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: #c0c0c0;
+ overflow: hidden;
+
+ z-index: 25;
+ border-top: 1px solid;
+ border-top-color: #c0c0c0;
+ border-bottom: 1px solid;
+ border-bottom-color: #c0c0c0;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+.searchContainer
+{
+ position: absolute;
+ display: inline-block;
+ left: 29px;
+ right: 29px;
+}
+
+.searchContainer input
+{
+ width: 100%;
+ background-color: #FFFFFF;
+ padding-left: 4px;
+}
+
+#main, #mainTODO
+{
+ position: absolute;
+ top: 50px;
+ left: 224px;
+ bottom: 0;
+ padding: 0px 7px;
+ background: #ffffff;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: #c0c0c0;
+ overflow-x: hidden;
+ overflow-y: auto;
+ z-index: 26;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#main
+{
+ right: 0;
+}
+#mainTODO
+{
+ right: 413px;
+}
+
+#calendar, #todoList
+{
+ display: inline-block;
+ width: 100%;
+ min-width: 1px;
+}
+
+#calendar
+{
+ padding: 5px 0px;
+}
+
+#todoList
+{
+ padding: 7px 0px;
+ /* Safari Scrollbar fix */
+ margin-bottom: -4px;
+}
+
+#alertBox
+{
+ position: fixed;
+ top: 20%;
+ left: 50%;
+ visibility: hidden;
+ width: 450px;
+ background: white;
+ border: 1px solid #c0c0c0;
+ z-index: 102;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#repeatConfirmBox
+{
+ width: 100%;
+ position: absolute;
+ text-align: center;
+ visibility: hidden;
+ background: white;
+ border: 1px solid #c0c0c0;
+ z-index: 100;
+}
+
+#repeatConfirmBoxTODO
+{
+ position: absolute;
+ width: 100%;
+ text-align: center;
+ visibility: hidden;
+ background-color: #f0f0f0;
+ z-index: 100;
+}
+
+#EventDisabler
+{
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ background-color: #f9f9f9;
+ opacity: 0.7;
+ filter: alpha(opacity=70);
+ z-index: 99;
+ top: 0px;
+ left: 0px;
+ display: none;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#TodoDisabler
+{
+ position: fixed;
+ background-color: #f9f9f9;
+ opacity: 0.7;
+ filter: alpha(opacity=70);
+ z-index: 99;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 414px;
+ display: none;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#AlertDisabler
+{
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ background-color: #f9f9f9;
+ opacity: 0.7;
+ filter: alpha(opacity=70);
+ z-index: 101;
+ top: 0px;
+ left: 0px;
+ display: none;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+.resourceCalDAVColor
+{
+ width: 12px;
+ height: 24px;
+ margin-top: 0px;
+ margin-right: 6px;
+ float: left;
+}
+
+.colorPicker
+{
+ display: none;
+}
+
+.addRemoveAll
+{
+ cursor: pointer;
+ margin-top: 7px !important;
+ margin-left: 5px !important;
+ display: none;
+}
+
+.resourceCalDAV_item, .resourceCalDAVTODO_item
+{
+ position: relative;
+ display: block;
+ overflow: hidden;
+
+ left: 0px;
+ top: 0px;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+ height: 25px;
+ line-height: 23px;
+ border-top: 1px solid;
+ border-top-color: #ffffff;
+/*
+ border-bottom: 1px solid;
+ border-bottom-color: #f0f0f0;
+*/
+ color: #404040;
+ cursor: default;
+ font-size: 1em;
+ font-weight: 400;
+
+ padding-left: 0px;
+ padding-right: 6px;
+}
+
+#ResourceCalDAVList .resourceCalDAV_item:hover, #ResourceCalDAVTODOList .resourceCalDAVTODO_item:hover
+{
+ cursor: pointer;
+ color: #404040 !important;
+ background-color: #e7e7e7 !important;
+ border-top: 1px solid !important;
+/*
+ border-top-color: #c0c0c0 !important;
+ border-bottom: 1px solid !important;
+ border-bottom-color: #c0c0c0 !important;
+*/
+ border-top-color: #ffffff !important;
+}
+
+#ResourceCalDAVList .resourceCalDAV_item.resourceCalDAV_item_selected, #ResourceCalDAVTODOList .resourceCalDAVTODO_item.resourceCalDAV_item_selected
+{
+ color: #ffffff !important;
+ background: #585858 !important;
+ border-top: 1px solid !important;
+/*
+ border-top-color: #585858 !important;
+ border-bottom: 1px solid !important;
+ border-bottom-color: #585858 !important;
+*/
+ border-top-color: #ffffff !important;
+}
+
+#ResourceCalDAVList .resourceCalDAV_item_ro.resourceCalDAV_item, #ResourceCalDAVTODOList .resourceCalDAV_item_ro.resourceCalDAVTODO_item
+{
+ background-image: url(../images/read_only_b.svg);
+ background-repeat: no-repeat !important;
+ background-position: 95% center !important;
+ padding-right: 32px !important;
+}
+
+#ResourceCalDAVList .resourceCalDAV_item_ro.resourceCalDAV_item:hover, #ResourceCalDAVTODOList .resourceCalDAV_item_ro.resourceCalDAVTODO_item:hover
+{
+ background-image: url(../images/read_only_b.svg) !important;
+}
+
+#ResourceCalDAVList .resourceCalDAV_item_ro.resourceCalDAV_item.resourceCalDAV_item_selected, #ResourceCalDAVTODOList .resourceCalDAV_item_ro.resourceCalDAVTODO_item.resourceCalDAV_item_selected
+{
+ background-image: url(../images/read_only_w.svg) !important;
+}
+
+#ResourceCalDAVList .r_operate.resourceCalDAV_item, #ResourceCalDAVTODOList .r_operate.resourceCalDAVTODO_item
+{
+ background-image: url(../images/loadinfo_s1.gif);
+ background-repeat: no-repeat !important;
+ background-position: 97% center !important;
+ padding-right: 32px !important;
+}
+
+#ResourceCalDAVList .r_operate.resourceCalDAV_item:hover, #ResourceCalDAVTODOList .r_operate.resourceCalDAVTODO_item:hover
+{
+ background-image: url(../images/loadinfo_s2.gif) !important;
+}
+
+#ResourceCalDAVList .r_operate.resourceCalDAV_item.resourceCalDAV_item_selected, #ResourceCalDAVTODOList .r_operate.resourceCalDAVTODO_item.resourceCalDAV_item_selected
+{
+ background-image: url(../images/loadinfo_s3.gif) !important;
+}
+
+#ResourceCalDAVList .r_error.resourceCalDAV_item, #ResourceCalDAVTODOList .r_error.resourceCalDAVTODO_item
+{
+ background-image: url(../images/error_b.svg);
+ background-repeat: no-repeat !important;
+ background-position: 97% center !important;
+ padding-right: 32px !important;
+}
+
+#ResourceCalDAVList .r_error.resourceCalDAV_item:hover, #ResourceCalDAVTODOList .r_error.resourceCalDAVTODO_item:hover
+{
+ background-image: url(../images/error_b.svg) !important;
+}
+
+#ResourceCalDAVList .r_error.resourceCalDAV_item.resourceCalDAV_item_selected, #ResourceCalDAVTODOList .r_error.resourceCalDAVTODO_item.resourceCalDAV_item_selected
+{
+ background-image: url(../images/error_w.svg) !important;
+}
+
+#ResourceCalDAVList .resourceCalDAV_header.load_mode, #ResourceCalDAVTODOList .resourceCalDAVTODO_header.load_mode,
+#ResourceCalDAVList .resourceCalDAV_item.load_mode, #ResourceCalDAVTODOList .resourceCalDAVTODO_item.load_mode,
+#ResourceCalDAVList .resourceCalDAV_item.load_mode:hover, #ResourceCalDAVTODOList .resourceCalDAVTODO_item.load_mode:hover
+{
+ padding-right: 24px !important;
+ background-image: none !important;
+}
+
+.resourceCalDAV_header.unloaded, .resourceCalDAV_item.unloaded, .resourceCalDAVTODO_header.unloaded, .resourceCalDAVTODO_item.unloaded
+{
+ color: rgba(64, 64, 64, 0.4) !important;
+}
+
+.resourceCalDAV_item.unloaded .resourceCalDAVColor, .resourceCalDAVTODO_item.unloaded .resourceCalDAVColor
+{
+ opacity: 0.4;
+}
+
+.resourceCalDAV_item input[type="checkbox"], .resourceCalDAVTODO_item input[type="checkbox"]
+{
+ margin-top: -2px;
+ margin-right: 5px;
+}
+
+/* FF checkbox hack */
+@-moz-document url-prefix()
+{
+ .resourceCalDAV_item input[type="checkbox"], .resourceCalDAVTODO_item input[type="checkbox"]
+ {
+ margin-top: 0px;
+ }
+}
+
+.todoTextFirst
+{
+ padding-left: 5px;
+}
+
+.todoText
+{
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+#CATodo, #CAEvent
+{
+ position: absolute;
+ cursor:default;
+
+ user-select: none;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+}
+
+#event_details_template, #todo_details_template
+{
+ width: 413px;
+ position: absolute;
+ display: none;
+ background-color: #f0f0f0;
+ overflow-x: hidden;
+ overflow-y: auto;
+ border: 1px solid #c0c0c0;
+ z-index: 100;
+}
+
+#todo_details_template
+{
+ width: 410px;
+}
+
+#todo_details_template
+{
+ z-index: 26;
+}
+
+#eventColor
+{
+ width: 3px;
+ float: left;
+ background-color: #f0f0f0;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#eventDetailsContainer
+{
+ position: relative;
+ left: 3px;
+}
+
+#todoColor
+{
+ position: absolute;
+ display: block;
+ top: 24px;
+ bottom: 0;
+ right: 410px;
+ width: 3px;
+ background-color: #f0f0f0;
+ border-top: 1px solid #f0f0f0;
+ border-bottom: 1px solid #f0f0f0;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#event_details_template h1, #todo_details_template h1
+{
+ -webkit-border-top-left-radius: 4px;
+ -moz-border-top-left-radius: 4px;
+ border-top-left-radius: 4px;
+ -webkit-border-top-right-radius: 4px;
+ -moz-border-top-right-radius: 4px;
+ border-top-right-radius: 4px;
+ text-align: center;
+ display: none;
+ background-color: transparent;
+ margin: 4px 0px 0px 0px;
+}
+
+#TodoInMessage, #EventInMessage
+{
+ position: relative;
+ display: block;
+ height: 0px;
+ overflow: hidden;
+ z-index: 102;
+ background: #f0f0f0;
+ border-bottom: 1px solid;
+ border-bottom-color: #c0c0c0;
+}
+
+#TodoInMessageText, #EventInMessageText
+{
+ position: absolute;
+ padding: 7px;
+ text-align: center;
+ vertical-align: bottom;
+ width: 100%;
+ font-weight: 500;
+}
+
+#eventDetailsTable, #todoDetailsTable
+{
+ margin: 6px 4px 6px 6px;
+ text-align: left;
+ /*-2px from margin-right to offset td 2px in padding-left*/
+}
+
+#event_details_template textarea.header, #todo_details_template textarea.header
+{
+ position: relative;
+ font-size: 1.1em;
+ font-weight: 500;
+ width: 393px;
+ margin-bottom: 10px;
+ height: 40px;
+}
+
+@-moz-document url-prefix()
+{
+ #event_details_template textarea.header, #todo_details_template textarea.header
+ {
+ width: 395px;
+ }
+}
+
+#event_details_template textarea.header.leftspace, #todo_details_template textarea.header.leftspace
+{
+ left: 20px;
+ width: 373px;
+}
+
+#event_details_template textarea.header.rightspace, #todo_details_template textarea.header.rightspace
+{
+ width: 373px;
+}
+
+@-moz-document url-prefix()
+{
+ #event_details_template textarea.header.leftspace, #todo_details_template textarea.header.leftspace, #event_details_template textarea.header.rightspace, #todo_details_template textarea.header.rightspace
+ {
+ width: 375px;
+ }
+}
+
+#event_details_template textarea.header.leftspace.rightspace, #todo_details_template textarea.header.leftspace.rightspace
+{
+ width: 353px;
+}
+
+@-moz-document url-prefix()
+{
+ #event_details_template textarea.header.leftspace.rightspace, #todo_details_template textarea.header.leftspace.rightspace
+ {
+ width: 355px;
+ }
+}
+
+.formNav
+{
+ display: none;
+ position: absolute;
+ height: 42px;
+ width: 18px;
+ border: 1px solid #c0c0c0;
+ font-size: 1.1em;
+ font-weight: 400;
+ background-color: #ffffff;
+ cursor: pointer;
+}
+
+@-moz-document url-prefix()
+{
+ .formNav
+ {
+ height: 38px;
+ }
+}
+
+.formNav:hover
+{
+ background-color: #f0f0f0;
+}
+
+.formNav.prev
+{
+ top: 0px;
+ left: 0px;
+ text-align: right;
+}
+
+.formNav.prev img
+{
+ padding-top: 14px;
+ padding-right: 3px;
+}
+
+@-moz-document url-prefix()
+{
+ .formNav.prev img
+ {
+ padding-top: 12px;
+ }
+}
+
+.formNav.next
+{
+ top: 0px;
+ right: 2px;
+ text-align: left;
+}
+
+.formNav.next img
+{
+ padding-top: 14px;
+ padding-left: 3px;
+}
+
+@-moz-document url-prefix()
+{
+ .formNav.next img
+ {
+ padding-top: 12px;
+ }
+}
+
+.formNav.top
+{
+ top: 0px;
+ height: 21px;
+ border-bottom: none;
+}
+
+.formNav.top img
+{
+ padding-top: 3px;
+}
+
+@-moz-document url-prefix()
+{
+ .formNav.top
+ {
+ height: 19px;
+ }
+ .formNav.top img
+ {
+ padding-top: 2px;
+ }
+}
+
+.formNav.bottom
+{
+ top: 22px;
+ height: 21px;
+ border-top: none;
+}
+
+.formNav.bottom img
+{
+ padding-top: 4px;
+}
+
+@-moz-document url-prefix()
+{
+ .formNav.bottom
+ {
+ top: 20px;
+ height: 19px;
+ }
+ .formNav.bottom img
+ {
+ padding-top: 3px;
+ }
+}
+
+#event_details_template .headerContainer, #todo_details_template .headerContainer
+{
+ padding: 0px 2px 0px 0px;
+ /*2px to offset td padding in the rest of the form*/
+ /*maybe add 2px to th as well?*/
+}
+
+#eventDetailsTable .label, #todoDetailsTable .label
+{
+ width: 98px;
+ display: block;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.label.repeat label
+{
+ padding-left: 15px;
+}
+
+.long
+{
+ width: 298px;
+}
+
+textarea.long
+{
+ width: 293px;
+}
+
+@-moz-document url-prefix()
+{
+ textarea.long
+ {
+ width: 295px;
+ }
+}
+
+input.long[type="text"]
+{
+ width: 296px;
+}
+
+.small
+{
+ width: 148px;
+}
+
+input.small[type="text"]
+{
+ width: 146px;
+}
+
+input.verySmall
+{
+ width: 73px;
+}
+
+input.verySmall[type="text"]
+{
+ width: 71px;
+}
+
+#event_details_template input[type="checkbox"], #todo_details_template input[type="checkbox"]
+{
+ width: 15px;
+ margin-top: 1px;
+ margin-left: -1px;
+}
+
+#event_details_template input[type="button"], #todo_details_template input[type="button"], #event_details_template input[type="submit"], #todo_details_template input[type="submit"]
+{
+ width: 23%;
+ margin: 5px 2px 0px 0px;
+ float: left;
+}
+
+.customTable
+{
+ width: 100%;
+}
+
+.customTable td
+{
+ position: static;
+ background-color: #FFFFFF;
+ border-right: 2px solid #F0F0F0;
+ border-bottom: 2px solid #F0F0F0;
+ vertical-align: middle;
+ text-align: center;
+ cursor: pointer;
+}
+
+.customTable td.lastCol
+{
+ border-right: 0px;
+}
+
+.customTableWeek td, .customTableMonth td
+{
+ width: 39px;
+}
+
+.customTableWeek td.firstCol, .customTableMonth td.firstCol
+{
+ width: 38px;
+}
+
+.customTableYear td
+{
+ width: 68px;
+ height: 30px;
+}
+
+.customTable td.disabled
+{
+ cursor: default;
+ background-color: #ffffff;
+}
+
+.customTable td.selected
+{
+ color: #FFFFFF;
+ background-color: #585858;
+}
+
+button.ui-datepicker-current
+{
+ width: 40%;
+ margin: 5px 1px 5px 1px;
+ float: left;
+}
+
+button.ui-datepicker-close
+{
+ width: 40%;
+ margin: 5px 1px 5px 1px;
+ float: right;
+}
+
+.invalidWrapper
+{
+ width: 0px;
+ height: 0px;
+}
+
+img[data-type="invalidSmall"]
+{
+ vertical-align: top;
+ margin-top: -18px;
+ margin-left: 128px;
+}
+
+img[data-type="invalidVerySmall"]
+{
+ vertical-align: top;
+ margin-top: 1px;
+ margin-left: -30px;
+}
+
+#alertBox h1, #repeatConfirmBox h1
+{
+ margin: 0;
+ -webkit-border-top-left-radius: 2px;
+ -moz-border-top-left-radius: 2px;
+ border-top-left-radius: 2px;
+ -webkit-border-top-right-radius: 2px;
+ -moz-border-top-right-radius: 2px;
+ border-top-right-radius: 2px;
+}
+
+#alertBoxContent
+{
+ width: 100%;
+}
+
+#repeatConfirmBoxContent, #repeatConfirmBoxQuestion, #repeatConfirmBoxContentTODO, #repeatConfirmBoxQuestionTODO
+{
+ width: 100%;
+ height: 50px;
+}
+
+#repeatConfirmBoxContent, #repeatConfirmBoxContentTODO
+{
+ width: 400px;
+ padding-top: 20px;
+ padding-left: 5px;
+ word-wrap: break-word;
+}
+
+#alertBox input
+{
+ float: right;
+ margin: 7px;
+ padding: 1px 5px 1px 5px;
+}
+#repeatConfirmBox input, #repeatConfirmBoxTODO input
+{
+ margin: 2px;
+ padding: 1px 4px 1px 4px;
+ width: 250px;
+}
+
+#repeatConfirmBox input[data-type="closeRepeat"], #repeatConfirmBoxTODO input[data-type="closeRepeat"]
+{
+ margin-top: 6px;
+ margin-bottom: 6px;
+}
+
+.alert_item
+{
+ left: 0px;
+ top: 0px;
+ width: 446px;
+ cursor: default;
+ position: relative;
+ display: block;
+ padding: 2px 2px 0px 2px;
+ border-bottom: 1px solid #c0c0c0;
+ font-weight: 400;
+ font-size: 1em;
+}
+
+.alert_item label
+{
+ vertical-align: top;
+}
+
+.alert_item img
+{
+ margin-left: 5px;
+ margin-right: 5px;
+}
+
+.fc-header td
+{
+ padding: 5px !important;
+ padding-top: 3px !important;
+}
+
+.fc-header td span
+{
+ height: 16px !important;
+}
+
+.fc-today.fc-widget-header, .fc-today.fc-list-header td
+{
+ background-color: #585858 !important;
+ color: #ffffff !important;
+}
+
+.fc-day-text, .fc-week-number
+{
+ float: left;
+ position: relative;
+ display: inline-block;
+ text-align: right;
+ padding-left: 5px;
+ font-weight: 400;
+}
+
+.fc-week-number
+{
+ width: 16px;
+ line-height: 17px;
+ padding: 0px 3px 0px 2px;
+ color: #ffffff;
+ background-color: #c0c0c0;
+ font-size: 1em;
+ /*-moz-border-radius-bottomright: 3px;
+ border-bottom-right-radius: 3px; */
+}
+
+/*
+.fc-agenda-axis.fc-widget-header
+{
+ border-top: 1px solid #c0c0c0;
+}
+*/
+
+.fc-agenda-axis .fc-week-number
+{
+ margin-left: -4px;
+ padding-top: 2px;
+ line-height: 15px;
+ font-size: 1em;
+}
+
+.fc-today .fc-day-text
+{
+ text-transform: capitalize;
+}
+
+.fc-day-number
+{
+ position: relative;
+ display: inline-block;
+ text-align: right;
+ padding-right: 3px !important;
+}
+
+.fc-today .fc-day-header
+{
+ width: 100%;
+ float: left;
+ height: 17px;
+ line-height: 17px;
+
+ background-color: #585858;
+ font-weight: 400;
+ color: #ffffff;
+}
+
+.fc-today .fc-day-header .fc-week-number
+{
+ background-color: #c0c0c0;
+ color: #ffffff;
+}
+
+.fc-today .fc-day-header div
+{
+ opacity: 1 !important;
+}
+
+.fc-button-content
+{
+ height: 20px !important;
+ line-height: 16px !important;
+}
+
+.fc-header-title h2
+{
+ font-size: 1.3em;
+ font-weight: 300;
+ margin-top: 2px !important;
+
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.fc-header-space
+{
+ display: inline-block;
+ width: 10px;
+}
+
+.fc-header-center.r_operate_all
+{
+ background-image: url("../images/loadinfo_s4.gif") !important;
+ background-position: 97% 15% !important;
+ background-repeat: no-repeat !important;
+}
+
+.fc-header-center.r_error_all
+{
+ background-image: url(../images/error_b.svg) !important;
+ background-position: 97% 15% !important;
+ background-repeat: no-repeat !important;
+}
+
+#SystemCalDavZAP input[data-type="delete"], #SystemCalDavTODO input[data-type="delete"]
+{
+ margin: 5px 0px 0px 2px;
+ float: right !important;
+}
+
+.fc-event
+{
+ opacity: 1; /* replaced by rgba() */
+}
+
+.fc-event-skin
+{
+ border-color: #FFFFFF;
+ background-color: #2d2d2d;
+ color: white;
+}
+
+.searchCalDAV_hide, .checkCalDAV_hide
+{
+ opacity: 0.2;
+}
+
+.fc-view.fc-view-table .searchCalDAV_hide, .fc-view.fc-view-table .checkCalDAV_hide,
+.fc-view.fc-view-todo .searchCalDAV_hide, .fc-view.fc-view-todo .checkCalDAV_hide
+{
+ display: none;
+}
+
+.fc-state-default .fc-button-effect span
+{
+ background: none !important;
+}
+
+.fc-state-default .fc-button-effect
+{
+ top: 0px !important;
+}
+
+.fc-state-default, .fc-state-default .fc-button-inner
+{
+ border-color: #c0c0c0 !important;
+}
+
+.fc-state-default, .fc-state-default .fc-button-inner
+{
+ background: none repeat scroll 0 0 #ffffff !important;
+}
+
+.fc-state-hover, .fc-state-hover .fc-button-inner
+{
+ background: none repeat scroll 0 0 #e7e7e7 !important;
+}
+
+.fc-state-active, .fc-state-active .fc-button-inner
+{
+ background: none repeat scroll 0 0 #585858 !important;
+}
+
+.ui-datepicker-simple
+{
+ z-index: 100 !important;
+}
+
+.ui-datepicker-simple .ui-datepicker-title
+{
+ margin: -1px 24px !important;
+}
+
+.ui-autocomplete-caldav
+{
+ z-index: 100;
+}
+
+#CATodo, #todo_details_template
+{
+ display: block;
+ border: none;
+ width: 100%;
+ height: 100%;
+}
+
+#CATodo
+{
+ display: none;
+}
+
+.title_cancelled
+{
+ text-decoration: line-through;
+}
+
+#CalDavZAPPopup
+{
+ display: none;
+ position: absolute;
+ max-width: 413px;
+ border: 1px solid #c0c0c0;
+ background: #f0f0f0;
+ z-index: 30;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+#CalDavZAPPopupColor
+{
+ float: left;
+ width: 3px;
+}
+
+#CalDavZAPPopupTable
+{
+ float: left;
+ margin: 6px 4px 6px 6px;
+ text-align: left;
+}
+
+#CalDavZAPPopupTable .header
+{
+ max-width: 398px;
+ font-size: 1.1em;
+ font-weight: 500;
+}
+
+#CalDavZAPPopupTable .label
+{
+ display: block;
+ width: 98px;
+ font-size: 0.95em;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+#CalDavZAPPopupTable .value
+{
+ max-width: 298px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+#CalDavZAPPopupTable .multiline
+{
+ white-space: normal;
+ word-wrap: break-word;
+}
diff --git a/public/infcloud/css/default_ie.css b/public/infcloud/css/default_ie.css
new file mode 100644
index 0000000..41dbb3a
--- /dev/null
+++ b/public/infcloud/css/default_ie.css
@@ -0,0 +1,81 @@
+/*
+InfCloud - the open source CalDAV/CardDAV Web Client
+Copyright (C) 2011-2015
+ Jan Mate <jan.mate@inf-it.com>
+ Andrej Lezo <andrej.lezo@inf-it.com>
+ Matej Mihalik <matej.mihalik@inf-it.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+select
+{
+ padding-top: 1px;
+ padding-left: 0px;
+ padding-right: 0px;
+}
+
+select[disabled]
+{
+ padding-left: 0px;
+ padding-right: 0px !important;
+}
+
+input[type=text], input[type=password]
+{
+ padding-left: 3px; /* it resizes the input size :( */
+}
+
+input[type=text].fs, input[type=password].fs
+{
+ width: 389px;
+}
+
+input[type=text].ms, input[type=password].ms
+{
+ width: 253px;
+}
+
+input[type=text].hs, input[type=password].hs
+{
+ width: 192px;
+}
+
+input[type=button]
+{
+ padding-top: 2px;
+}
+
+input[data-type="system_username"], input[data-type="system_password"]
+{
+ min-width: 328px !important;
+ max-width: 328px !important;
+}
+
+textarea
+{
+ padding-top: 3px;
+}
+
+/* IE placeholder */
+label.placeholder {
+ font-size: inherit;
+ cursor: text;
+ padding: 2px 0px 0px 3px;
+ color: #e0e0e0;
+}
+
+#tags_addTag *> label.placeholder {
+ padding-left: 1px;
+}
diff --git a/public/infcloud/css/default_integration.css b/public/infcloud/css/default_integration.css
new file mode 100644
index 0000000..35aa3c5
--- /dev/null
+++ b/public/infcloud/css/default_integration.css
@@ -0,0 +1,180 @@
+.integration_d
+{
+ position: absolute;
+ display: none;
+ overflow: hidden;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ width: 49px;
+ background: #f0f0f0;
+ color: #FFFFFF;
+ border-right: 1px solid #c0c0c0;
+ z-index: 26;
+ padding-top: 3px;
+ cursor: default;
+
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.integration_d div
+{
+ display: none;
+ height: 36px;
+ width: 36px;
+ padding: 7px 7px;
+ cursor: pointer;
+}
+
+.integration_d .intBlank
+{
+ cursor: default;
+}
+
+#intCaldav
+{
+ background: url(../images/banner_calendar.svg) no-repeat center;
+}
+
+#intCaldavTodo
+{
+ background: url(../images/banner_todo.svg) no-repeat center;
+}
+
+#intCarddav
+{
+ background: url(../images/banner_addressbook.svg) no-repeat center;
+}
+
+#intProjects
+{
+ background: url(../images/banner_projects.svg) no-repeat center;
+}
+
+#intReports
+{
+ background: url(../images/banner_reports.svg) no-repeat center;
+}
+
+#intSettings
+{
+ background: url(../images/banner_settings.svg) no-repeat center;
+}
+
+#intRefresh
+{
+ background: url(../images/banner_refresh.svg) no-repeat center;
+}
+
+#intLogout
+{
+ background: url(../images/banner_logout.svg) no-repeat center;
+}
+
+.int_error
+{
+ display: none;
+ margin: 28px 0px 0px 28px;
+}
+
+#resourceCalDAV_h, #resourceCalDAVTODO_h, #ResourceCalDAVList, #ResourceCalDAVTODOList, #timezoneWrapper, #timezoneWrapperTODO
+{
+ left: 50px;
+}
+
+#main, #main_h, #searchForm, #mainTODO, #main_h_TODO, #searchFormTODO
+{
+ left: 274px;
+}
+
+#MainLoader, #EventDisabler, #TodoDisabler, #AlertDisabler, #ProjectsDisabler
+{
+ left: 50px;
+}
+
+#CalendarLoader, #CalendarLoaderTODO
+{
+ left: 275px;
+}
+
+.resourcesCardDAV_d, #ResourceCardDAVList, #ResourceCardDAVListOverlay
+{
+ left: 50px;
+}
+
+.collection_d, #SearchBox, #ABList, #ABListOverlay, #AddressbookOverlay
+{
+ left: 275px;
+}
+
+/*.contact_d, #ABContactColor, #ABContactOverlay, #ABMessage
+{
+ left: 526px;
+}
+
+#ABContact
+{
+ left: 529px;
+}*/
+
+.filters_d, .statistics_d, #FilterList, #ProjectsData, #SystemProjectsLock, #SystemReportsLock, #ProjectListDisabler
+{
+ left: 50px;
+}
+
+.projects_d, #ProjectList, #SearchBoxProject, #ProjectListOverlay
+{
+ left: 375px;
+}
+
+.project_d, #ProjectForm, #ProjectFormLoader, #ProjectEventsContainer, #ActivityListDisabler, #ProjectFormMessage
+{
+ left: 626px;
+}
+
+.resourcesReports_d, #ResourceReportsList
+{
+ left: 50px;
+}
+
+.resourcesSettings_d, #ResourceSettingsList
+{
+ left: 50px;
+}
+
+#ResourceReportsListOverlay
+{
+ left: 50px;
+}
+
+.report_filters_d, #ReportFilterList
+{
+ left: 275px;
+}
+
+.reports_d, #ReportsColor, #ReportsFormOverlay
+{
+ left: 600px;
+}
+
+#ReportsForm
+{
+ left: 603px;
+}
+
+#ResourceSettingsListOverlay
+{
+ left: 50px;
+}
+
+.settings_d, #SettingsColor, #SettingsFormOverlay
+{
+ left: 275px;
+}
+
+#SettingsForm
+{
+ left: 278px;
+}
diff --git a/public/infcloud/css/fullcalendar.css b/public/infcloud/css/fullcalendar.css
new file mode 100644
index 0000000..de14fbd
--- /dev/null
+++ b/public/infcloud/css/fullcalendar.css
@@ -0,0 +1,1464 @@
+/*
+ * FullCalendar v1.5.4 Stylesheet
+ *
+ * Copyright (c) 2011 Adam Shaw
+ * Dual licensed under the MIT and GPL licenses, located in
+ * MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
+ *
+ * Date: Tue Sep 4 23:38:33 2012 -0700
+ *
+ */
+
+
+.fc {
+ direction: ltr;
+ text-align: left;
+ }
+
+.fc table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ }
+
+html .fc,
+.fc table {
+ font-size: 0.95em;
+ }
+
+.fc td,
+.fc th {
+ padding: 0;
+ vertical-align: top;
+ }
+
+
+
+/* Header
+------------------------------------------------------------------------*/
+
+.fc-header td {
+ white-space: nowrap;
+ }
+
+.fc-header-left {
+ text-align: left;
+ }
+
+.fc-header-center {
+ width: 100%;
+ text-align: center;
+ }
+
+.fc-header-right {
+ text-align: right;
+ }
+
+.fc-header-title {
+ display: inline-block;
+ vertical-align: top;
+ margin-top: -2px;
+ }
+
+.fc-header-title h2 {
+ margin-top: 0;
+ white-space: nowrap;
+ }
+
+.fc .fc-header-space {
+ padding-left: 10px;
+ }
+
+.fc-header .fc-button {
+ margin-bottom: 1em;
+ vertical-align: top;
+ }
+
+/* buttons edges butting together */
+
+.fc-header .fc-button {
+ margin-right: -1px;
+ }
+
+.fc-header .fc-corner-right {
+ margin-right: 1px; /* back to normal */
+ }
+
+.fc-header .ui-corner-right {
+ margin-right: 0; /* back to normal */
+ }
+
+/* button layering (for border precedence) */
+
+.fc-header .fc-state-hover,
+.fc-header .ui-state-hover {
+ z-index: 2;
+ }
+
+.fc-header .fc-state-down {
+ z-index: 3;
+ }
+
+.fc-header .fc-state-active,
+.fc-header .ui-state-active {
+ z-index: 4;
+ }
+
+
+
+/* Content
+------------------------------------------------------------------------*/
+
+.fc-content {
+ clear: both;
+ }
+
+.fc-view {
+ width: 100%; /* needed for view switching (when view is absolute) */
+ overflow: hidden;
+ }
+
+.fc-week-table {
+ font-weight: 500;
+ text-align: center;
+ vertical-align: middle;
+}
+
+
+
+/* Cell Styles
+------------------------------------------------------------------------*/
+
+.fc-widget-header { /* <td>, usually */
+ border-bottom: 1px solid #c0c0c0;
+/* border-right: 1px solid transparent;*/
+ }
+.fc-widget-content { /* <td>, usually */
+ border-top: 1px solid #c0c0c0;
+ border-right: 1px solid transparent;
+ }
+.fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
+ background: #fafadd;
+ }
+.fc-source-bg {
+ background-color: #fff4f4;
+}
+.fc-widget-content.fc-weekend-day, .fc-widget-content tr.fc-weekend-day {
+ background: #f7f7f7;
+}
+.fc-source-bg.fc-state-highlight {
+ background: #fdf7e9;
+}
+.fc-widget-content.fc-state-highlight.fc-weekend-day, .fc-widget-content tr.fc-state-highlight.fc-weekend-day {
+ background: #f9f9ea;
+}
+.fc-widget-content.fc-source-bg.fc-weekend-day, .fc-widget-content tr.fc-source-bg.fc-weekend-day {
+ background: #fbf6f6;
+}
+.fc-widget-content.fc-state-highlight.fc-source-bg.fc-weekend-day, .fc-widget-content tr.fc-state-highlight.fc-source-bg.fc-weekend-day {
+ background: #faf7f0;
+}
+.fc-cell-overlay { /* semi-transparent rectangle while dragging */
+ background: #b2d9ff;
+ opacity: .2;
+ filter: alpha(opacity=20); /* for IE */
+ }
+
+
+/* Buttons
+------------------------------------------------------------------------*/
+
+.fc-button {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ }
+
+.fc-state-default { /* non-theme */
+ border-style: solid;
+ border-width: 1px 0;
+ }
+
+.fc-button-inner {
+ position: relative;
+ float: left;
+ overflow: hidden;
+ }
+
+.fc-state-default .fc-button-inner { /* non-theme */
+ border-style: solid;
+ border-width: 0 1px;
+ }
+
+.fc-button-content {
+ position: relative;
+ float: left;
+ height: 1.9em;
+ line-height: 1.9em;
+ padding: 0 12px;
+ min-width: 12px;
+ white-space: nowrap;
+ }
+
+.fc-button-content .fc-icon-wrap {
+ position: relative;
+ float: left;
+ top: 50%;
+ }
+
+.fc-button-content img {
+ padding-top: 1px;
+}
+
+/* gloss effect */
+
+.fc-state-default .fc-button-effect {
+ position: absolute;
+ top: 50%;
+ left: 0;
+ }
+
+.fc-state-default .fc-button-effect span {
+ position: absolute;
+ top: -100px;
+ left: 0;
+ width: 500px;
+ height: 100px;
+ border-width: 100px 0 0 1px;
+ border-style: solid;
+ border-color: #fff;
+ background: #444;
+ opacity: .09;
+ filter: alpha(opacity=9);
+ }
+
+/* button states (determines colors) */
+
+.fc-state-default,
+.fc-state-default .fc-button-inner {
+ border-style: solid;
+ border-color: #ccc #bbb #aaa;
+ background: #F3F3F3;
+ color: #404040;
+ }
+
+.fc-state-hover,
+.fc-state-hover .fc-button-inner {
+ border-color: #999;
+ }
+
+.fc-state-down,
+.fc-state-down .fc-button-inner {
+ border-color: #555;
+ background: #777;
+ }
+
+.fc-state-active,
+.fc-state-active .fc-button-inner {
+ border-color: #555;
+ background: #777;
+ color: #fff;
+ }
+
+.fc-state-disabled,
+.fc-state-disabled .fc-button-inner {
+ color: #999;
+ border-color: #ddd;
+ }
+
+.fc-state-disabled {
+ cursor: default;
+ }
+
+.fc-state-disabled .fc-button-effect {
+ display: none;
+ }
+
+
+
+/* Global Event Styles
+------------------------------------------------------------------------*/
+
+.fc-event {
+ border-style: solid;
+ border-width: 0;
+ font-size: .95em;
+ cursor: default;
+ }
+
+a.fc-event,
+.fc-event-draggable {
+ cursor: pointer;
+ }
+
+a.fc-event {
+ text-decoration: none;
+ }
+
+.fc-rtl .fc-event {
+ text-align: right;
+ }
+
+.fc-event-skin {
+ border-color: #F0F0F0; /* default BORDER color */
+ background-color: #F0F0F0; /* default BACKGROUND color */
+ color: #404040; /* default TEXT color */
+ }
+
+.fc-event-inner {
+ position: relative;
+ float: left;
+ width: 100%;
+ height: 100%;
+ border-style: solid;
+ border-width: 0;
+ overflow: hidden;
+ background-color: transparent !important; /* overit! ... priesvistnost all day veci */
+ }
+
+.fc-event-time,
+.fc-event-title {
+ padding: 0 1px;
+ }
+
+.fc-event-title-strict {
+ overflow:hidden;
+ white-space:nowrap;
+ text-overflow:ellipsis;
+ }
+
+.fc-event-tentative {
+ border-style: dashed;
+ border-color: #fff !important;
+ opacity: 0.9;
+
+ background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, rgba(255, 255, 255, .2)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.75, rgba(255, 255, 255, .2)), color-stop(.75, transparent), to(transparent));
+ background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
+ background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
+ background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
+ background-image: linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
+
+ -webkit-background-size: 20px 20px;
+ -moz-background-size: 20px 20px;
+ background-size: 20px 20px;
+}
+
+.fc-event-tentative .fc-event-inner {
+ border-style: dashed;
+}
+
+.fc-event-skin.fc-event-cancelled
+{
+ border-style: dashed;
+ border-color: #fff !important;
+ opacity: 0.9;
+}
+
+.fc-event-skin.fc-event-cancelled .fc-event-inner {
+ border-style: dashed;
+ text-decoration: line-through;
+}
+
+.fc-event-row.fc-event-cancelled {
+ text-decoration: line-through;
+}
+
+.fc .ui-resizable-handle { /*** TODO: don't use ui-resizable anymore, change class ***/
+ display: block;
+ position: absolute;
+ z-index: 99999;
+ overflow: hidden; /* hacky spaces (IE6/7) */
+ font-size: 300%; /* */
+ line-height: 50%; /* */
+ }
+
+/* Horizontal Events
+------------------------------------------------------------------------*/
+
+.fc-event-hori {
+ border-width: 1px 1px; /* overit! ... priesvistnost all day veci (bolo 1px 0) */
+ margin-bottom: 1px;
+ }
+
+/* resizable */
+
+.fc-event-hori .ui-resizable-e {
+ top: 0 !important; /* importants override pre jquery ui 1.7 styles */
+ right: -3px !important;
+ width: 7px !important;
+ height: 100% !important;
+ cursor: e-resize;
+ }
+
+.fc-event-hori .ui-resizable-w {
+ top: 0 !important;
+ left: -3px !important;
+ width: 7px !important;
+ height: 100% !important;
+ cursor: w-resize;
+ }
+
+.fc-event-hori .ui-resizable-handle {
+ _padding-bottom: 14px; /* IE6 had 0 height */
+ }
+
+
+
+/* Fake Rounded Corners (for buttons and events)
+------------------------------------------------------------*/
+
+.fc-corner-left {
+ /*margin-left: 1px;*/
+ -webkit-border-top-left-radius: 3px;
+ -moz-border-radius-topleft: 3px;
+ border-top-left-radius: 3px;
+ -webkit-border-bottom-left-radius: 3px;
+ -moz-border-radius-bottomleft: 3px;
+ border-bottom-left-radius: 3px;
+}
+
+.fc-corner-left .fc-event-inner {
+ margin-left: 2px;
+}
+
+.fc-corner-left.fc-button {
+ border-left-width: 1px;
+}
+
+.fc-corner-left .fc-button-inner {
+ margin-left: 1px;
+ border-left-width: 0px;
+}
+
+.fc-corner-right {
+ /*margin-right: 1px;*/
+ -webkit-border-top-right-radius: 3px;
+ -moz-border-radius-topright: 3px;
+ border-top-right-radius: 3px;
+ -webkit-border-bottom-right-radius: 3px;
+ -moz-border-radius-bottomright: 3px;
+ border-bottom-right-radius: 3px;
+}
+
+.fc-corner-right .fc-event-inner {
+}
+
+.fc-corner-right.fc-button {
+ border-right-width: 1px;
+}
+
+.fc-corner-right .fc-button-inner {
+ margin-right: 1px;
+ border-right-width: 0px;
+}
+
+.fc-corner-top {
+ margin-top: 1px;
+ }
+
+.fc-corner-top .fc-event-inner {
+ margin-top: -1px;
+ }
+
+.fc-corner-bottom {
+ margin-bottom: 1px;
+ }
+
+.fc-corner-bottom .fc-event-inner {
+ margin-bottom: -1px;
+ }
+
+
+
+/* Fake Rounded Corners SPECIFICALLY FOR EVENTS
+-----------------------------------------------------------------*/
+
+.fc-corner-left .fc-event-inner {
+ border-left-width: 0px; /* overit! ... priesvistnost all day veci (bolo 1) */
+ }
+
+.fc-corner-right .fc-event-inner {
+ border-right-width: 0px; /* overit! ... priesvistnost all day veci (bolo 1) */
+ }
+
+.fc-corner-top .fc-event-inner {
+ border-top-width: 1px;
+ }
+
+.fc-corner-bottom .fc-event-inner {
+ border-bottom-width: 1px;
+ }
+
+
+
+/* Reusable Separate-border Table
+------------------------------------------------------------*/
+
+table.fc-border-separate {
+ border-collapse: separate;
+ }
+
+#todoList table.fc-border-separate {
+ margin-top: -1px;
+}
+
+.fc-border-separate th,
+.fc-border-separate td {
+ border-width: 1px 0 0 1px;
+ }
+
+.fc-border-separate th.fc-last,
+.fc-border-separate td.fc-last {
+ border-right-width: 1px;
+ }
+
+.fc-border-separate tr.fc-last th,
+.fc-border-separate tr.fc-last td {
+ border-bottom-width: 1px;
+ }
+
+.fc-border-separate tbody tr.fc-first td,
+.fc-border-separate tbody tr.fc-first th {
+ border-top-width: 0;
+ }
+
+
+
+/* Month View, Basic Week View, Basic Day View
+------------------------------------------------------------------------*/
+
+.fc-grid th {
+ text-align: center;
+ }
+
+.fc-grid .fc-day-number {
+ float: right;
+ padding: 0 2px;
+ line-height: 17px;
+ }
+
+.fc-grid .fc-other-month .fc-day-number, .fc-grid .fc-other-month .fc-day-text {
+ opacity: 0.33;
+ filter: alpha(opacity=33); /* for IE */
+ /* opacity with small font can sometimes look too faded
+ might want to set the 'color' property instead
+ making day-numbers bold also fixes the problem */
+ }
+
+.fc-grid .fc-day-content {
+ clear: both;
+ padding: 2px 2px 1px; /* distance between events and day edges */
+ }
+
+/* event styles */
+
+.fc-grid .fc-event-time {
+ font-weight: 500;
+ font-size: 0.94em;
+ line-height: 13px; /* event height problem if time is shown */
+}
+
+/* right-to-left */
+
+.fc-rtl .fc-grid .fc-day-number {
+ float: left;
+ }
+
+.fc-rtl .fc-grid .fc-event-time {
+ float: right;
+ }
+
+
+
+/* Agenda Week View, Agenda Day View
+------------------------------------------------------------------------*/
+
+.fc-agenda table {
+ border-collapse: separate;
+ }
+
+.fc-agenda-days th {
+ text-align: center;
+ line-height: 17px;
+}
+
+.fc-agenda .fc-agenda-axis {
+ width: 60px;
+ padding: 0 4px;
+ vertical-align: middle;
+ text-align: right;
+ white-space: nowrap;
+ font-weight: 400;
+ font-size: 1em;
+ }
+
+.fc-agenda-allday .fc-widget-header.fc-agenda-axis {
+ text-align: center;
+ }
+
+.fc-agenda .fc-day-content {
+ padding: 2px 2px 1px;
+ }
+
+/* make axis border take precedence */
+
+.fc-agenda-days tbody .fc-agenda-axis.fc-widget-header.fc-first {
+ border-bottom-color: transparent;
+ }
+
+.fc-agenda-days .fc-agenda-axis {
+ border-right-width: 1px;
+ }
+
+.fc-agenda-days .fc-col0 {
+ border-left-width: 0;
+ }
+
+/* all-day area */
+
+.fc-agenda-allday {
+ top: 0px;
+ position: absolute;
+}
+
+.fc-agenda-allday th {
+ border-width: 0 1px;
+ }
+
+.fc-agenda-allday .fc-day-content {
+ min-height: 34px; /* TODO: doesnt work well in quirksmode */
+ _height: 34px;
+ }
+
+/* divider (between all-day and slots) */
+
+.fc-agenda-divider-inner {
+ height: 2px;
+ overflow: hidden;
+ }
+
+.fc-widget-header .fc-agenda-divider-inner {
+ background: #eee;
+ }
+
+/* slot rows */
+
+.fc-agenda-slots th {
+ border-width: 1px 1px 0;
+ }
+
+.fc-agenda-slots td {
+ height: 20px !important;
+ border-width: 1px 0 0;
+ background: none;
+ }
+
+.fc-agenda-slots td div {
+ height: 20px !important;
+ }
+
+.fc-agenda-slots tr.fc-slot0 th,
+.fc-agenda-slots tr.fc-slot0 td {
+ border-top-width: 0;
+ }
+
+.fc-agenda-slots .fc-widget-header
+{
+ border-top: 1px solid #c0c0c0;
+ padding-top: 1px;
+}
+
+.fc-agenda-slots tr.fc-minor th,
+.fc-agenda-slots tr.fc-minor td {
+ border-top-style: dotted;
+ }
+
+.fc-agenda-slots tr.fc-minor th.ui-widget-header {
+ *border-top-style: solid; /* doesn't work with background in IE6/7 */
+ }
+
+.fc-non-business-hours {
+ /*background-color: #cccccc;
+ opacity:0.3;*/
+ background-color: rgba(204,204,204,0.3);
+}
+
+.fc-slot-jumper-top
+{
+ position: absolute;
+ height: 16px;
+ width: 16px;
+ background: url(../images/jumper_top_w.svg) no-repeat center;
+ z-index: 10;
+ cursor: pointer;
+
+ -webkit-border--radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+}
+
+.fc-slot-jumper-top:hover
+{
+ background: url(../images/jumper_top_b.svg) no-repeat center;
+}
+
+.fc-slot-jumper-bottom
+{
+ position: absolute;
+ height: 16px;
+ width: 16px;
+ background: url(../images/jumper_bottom_w.svg) no-repeat center;
+ z-index: 10;
+ cursor: pointer;
+
+ -webkit-border--radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+}
+
+.fc-slot-jumper-bottom:hover
+{
+ background: url(../images/jumper_bottom_b.svg) no-repeat center;
+}
+
+/* Vertical Events
+------------------------------------------------------------------------*/
+
+.fc-event-vert {
+ border-width: 0 1px;
+ }
+
+.fc-event-vert .fc-event-head,
+.fc-event-vert .fc-event-content {
+ position: relative;
+ z-index: 2;
+ width: 100%;
+ overflow: hidden;
+ }
+
+.fc-event-vert .fc-event-time {
+ white-space: nowrap;
+ font-size: 10px;
+ }
+
+.fc-event-bg { /* makes the event lighter w/ a semi-transparent overlay */
+ position: absolute;
+ z-index: 1;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: #fff;
+ opacity: .4;
+ filter: alpha(opacity=40);
+ }
+
+.fc-event-hori .fc-event-bg {
+ opacity: .2;
+ filter: alpha(opacity=20);
+}
+
+
+.fc .ui-draggable-dragging .fc-event-bg, /* TODO: something nicer like .fc-opacity */
+.fc-select-helper .fc-event-bg {
+ display: none\9; /* for IE6/7/8. nested opacity filters while dragging don't work */
+ }
+
+/* resizable */
+
+.fc-event-vert .ui-resizable-s {
+ bottom: 0 !important; /* importants override pre jquery ui 1.7 styles */
+ width: 100% !important;
+ height: 8px !important;
+ overflow: hidden !important;
+ line-height: 8px !important;
+ font-size: 11px !important;
+ font-family: monospace;
+ text-align: center;
+ cursor: s-resize;
+ }
+
+.fc-agenda .ui-resizable-resizing { /* TODO: better selector */
+ _overflow: hidden;
+ }
+
+.fc-timeline {
+ position: absolute;
+ width: 100%;
+ left: 0;
+ margin: 0;
+ padding: 0;
+ border: none;
+ border-top: 2px solid #585858;
+ z-index: 2;
+}
+
+.fc-timeline-arrow {
+ position: absolute;
+ left: 0;
+ width: 6px;
+ height: 12px;
+ background-image: url('../images/resource_arrow_right.svg');
+ z-index: 2;
+}
+
+/* List view (by bruederli@kolabsys.com)
+------------------------------------------------------------------------*/
+
+.fc-view-list,
+.fc-view-table,
+.fc-view-todo {
+ top: 0px;
+ width: auto;
+}
+
+.fc-view-trans .fc-table-dateinfo,
+.fc-view-trans .fc-table-datepicker {
+ opacity: 0.5;
+}
+
+.fc-view-table {
+ padding-left: 8px;
+}
+
+.fc-list-content {
+ float: left;
+ position: relative;
+ border: 1px solid #ccc;
+}
+
+.fc-view-list .fc-list-header,
+.fc-view-table td.fc-list-header,
+.fc-view-todo td.fc-list-header {
+ background-color:#F0F0F0;
+ color: #404040;
+ font-size: 1em;
+ padding: 0px 10px;
+ height: 18px;
+ line-height: 18px;
+}
+
+.fc-view-table .fc-first td.fc-list-header,
+.fc-view-todo .fc-first td.fc-list-header {
+ border-top-width: 0;
+}
+
+.fc-list-header td
+{
+ height: 16px;
+}
+
+.fc-list-section td
+{
+ height: 14px;
+}
+
+.fc-list-section {
+ padding: 4px 2px;
+ border-width: 0;
+ border-bottom-width: 1px;
+}
+
+.fc-view-list .fc-last,
+.fc-view-table .fc-last,
+.fc-view-todo .fc-last {
+ border-bottom-width: 0;
+}
+
+.fc-list-section .fc-event {
+ position: relative;
+ margin: 1px 2px 3px 2px;
+}
+
+.fc-view-table tr.fc-event td,
+.fc-view-todo tr.fc-event td {
+ font-size: 1.2em;
+ height: 15px !important;
+ line-height: 15px !important;
+ padding: 2px;
+ background-clip: padding-box;
+}
+
+.fc-view-table tr.fc-event td {
+ border-top: 1px solid transparent !important;
+}
+
+.fc-view-todo tr.fc-event td {
+ border-top: 1px solid #ffffff !important;
+}
+
+.fc-view-table tr.fc-event.fc-last td/*,
+.fc-view-todo tr.fc-event.fc-last td*/ {
+ border-bottom: 1px solid transparent !important;
+ background-clip: padding-box;
+}
+
+.fc-view-table td.fc-list-header.fc-widget-header,
+.fc-view-todo td.fc-list-header.fc-widget-header {
+ border: none;
+/* border-top: 1px solid #fff; XXX*/
+}
+
+.fc-view-table .fc-list-section.fc-widget-content:last-child .fc-event-row.fc-last:last-child td,
+.fc-view-todo .fc-list-section.fc-widget-content:last-child .fc-event-row.fc-last:last-child td {
+ border-bottom-width: 0;
+}
+
+.fc-view-table tr.fc-event td.fc-event-handle,
+.fc-view-todo tr.fc-event td.fc-event-handle {
+ height: 100%;
+ width: 6px;
+ padding: 0px;
+ border-color: #F0F0F0; /* default BORDER color */
+ background-color: #F0F0F0; /* default BACKGROUND color */
+}
+
+.fc-view-table table,
+.fc-view-todo table {
+ table-layout: fixed;
+ width: 100%;
+}
+
+.fc-view-table col.fc-event-handle,
+.fc-view-todo col.fc-event-handle {
+ width: 6px;
+}
+
+.fc-event-handle .fc-event-inner {
+ border-color: inherit;
+ background-color: inherit;
+}
+
+.fc-view-table col.fc-event-date,
+.fc-view-todo col.fc-event-date {
+ width: 7em;
+}
+
+.fc-view-table .fc-list-day col.fc-event-date,
+.fc-view-todo .fc-list-day col.fc-event-date {
+ width: 1px;
+}
+
+.fc-view-table col.fc-event-time {
+ width: 23em;
+}
+
+.fc-view-table td.fc-event-date,
+.fc-view-table td.fc-event-time,
+.fc-view-todo td.fc-event-date,
+.fc-view-todo td.fc-event-time {
+ white-space: nowrap;
+ padding-right: 1em;
+}
+
+.fc-view-table td.fc-event-title,
+.fc-view-todo td.fc-event-title,
+.fc-view-todo td.fc-event-time,
+.fc-view-todo td.fc-event-location {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.fc-view-todo col.fc-event-check {
+ width: 22px;
+}
+
+.fc-event-check {
+ text-align: left;
+}
+
+.fc-event-check input[type="checkbox"]
+{
+ margin-top: -4px;
+ margin-right: 0;
+ margin-bottom: -2px !important;
+ margin-left: 4px;
+}
+
+.fc-view-todo col.fc-event-priority {
+ width: 18px;
+}
+
+.fc-view-todo col.fc-event-time {
+ width: 142px;
+}
+
+.fc-view-todo col.fc-event-location {
+ width: 150px;
+}
+
+.fc-event-title {
+ padding: 2px 4px !important;
+}
+
+.fc-view-todo col.fc-event-status {
+ width: 24px;
+}
+
+.fc-view-todo col.fc-event-percent {
+ width: 40px;
+}
+
+.fc-view-todo td.fc-event-percent {
+ text-align: right;
+ padding-right: 4px !important;
+}
+
+.fc-view-todo col.fc-hidden-empty,
+.fc-view-todo col.fc-hidden-width {
+ width: 0;
+}
+
+.fc-view-table .fc-table-dateinfo,
+.fc-view-todo .fc-table-dateinfo {
+ float: left;
+ text-align: left;
+ padding-left: 10px;
+ padding-bottom: 1px; /* check on FF */
+ margin-top: -8px; /* check on FF */
+}
+
+.fc-view-table .fc-table-datepicker,
+.fc-view-todo .fc-table-datepicker {
+ float: right;
+ text-align: right;
+ padding-right: 10px;
+ padding-bottom: 1px; /* check on FF */
+ margin-top: -8px; /* check on FF */
+}
+
+.fc-table-datepicker .ui-widget-content {
+ display: inline-block !important;
+ border-width: 0px;
+}
+
+.fc-view-table .fc-table-datepicker-no-default .ui-state-active,
+.fc-view-todo .fc-table-datepicker-no-default .ui-state-active {
+ border: 1px solid #c0c0c0;
+ background: #ffffff;
+ font-weight: 400;
+ color: #404040;
+}
+
+.fc-view-table .fc-table-dateinfo-number,
+.fc-view-todo .fc-table-dateinfo-number {
+ position: relative;
+ display: inline-block;
+ color: #c0c0c0;
+ font-weight: 300;
+ margin-top: -5px;
+}
+
+.fc-view-table .fc-table-dateinfo-number div,
+.fc-view-todo .fc-table-dateinfo-number div {
+ position: absolute;
+ padding-bottom: 15px;
+ bottom: 0px;
+}
+
+.fc-view-table .fc-table-dateinfo-text,
+.fc-view-todo .fc-table-dateinfo-text {
+ color: #c0c0c0;
+ line-height: 0.9em;
+ font-size: 1.5em;
+ font-weight: 300;
+}
+
+.fc-filter {
+ float: left;
+}
+
+.fc-filter-table-header {
+ font-weight: 500 !important;
+ height: 20px !important;
+ border: 1px dashed #c0c0c0 !important;
+ vertical-align: middle !important;
+ text-align: center;
+ cursor: default;
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.fc-filter-table-footer {
+ font-size: 0.9em;
+ height: 20px !important;
+ border-top: 1px solid #c0c0c0 !important;
+ vertical-align: middle !important;
+ text-align: center;
+ cursor: default;
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+}
+
+.fc-filter-option {
+ height: 20px !important;
+ background-color: #ffffff;
+ border: 1px solid #c0c0c0 !important;
+ vertical-align: middle !important;
+ text-align: center;
+ cursor: pointer;
+}
+
+.fc-filter-option:hover {
+ background-color: #e7e7e7;
+}
+
+/*
+.fc-filter-option.fc-filter-option-last {
+ border-right: 0px !important;
+}
+*/
+
+.fc-filter-option.fc-filter-option-selected {
+ color: #ffffff;
+ background-color: #585858;
+}
+
+.fc-filter-hide {
+ display: none;
+}
+
+.fc-view-table .fc-month-nav,
+.fc-view-todo .fc-month-nav {
+ color: #ffffff !important;
+ background: #585858 !important;
+ text-align: center;
+ cursor: pointer;
+}
+
+/*
+.fc-view-table .fc-month-nav.fc-month-prev,
+.fc-view-todo .fc-month-nav.fc-month-prev {
+ border-bottom: 1px solid #c0c0c0 !important;
+}
+
+.fc-view-table .fc-month-nav.fc-month-next,
+.fc-view-todo .fc-month-nav.fc-month-next {
+ border-top: 1px solid #c0c0c0 !important;
+}
+
+.fc-view-table .fc-month-nav:hover,
+.fc-view-todo .fc-month-nav:hover {
+ background: #e7e7e7 !important;
+}
+*/
+
+.fc-table-datepicker .ui-datepicker {
+ width: 225px;
+}
+
+.fc-table-datepicker .ui-datepicker-title {
+ height: 20px;
+ margin: 0 0 0 24px;
+}
+
+.fc-table-datepicker .ui-datepicker-title span {
+ margin-top: 0;
+ vertical-align: middle;
+}
+
+.fc-view-table .fc-table-datepicker .ui-datepicker-header {
+ display: none;
+}
+
+.fc-view-todo .fc-table-datepicker .ui-datepicker-header {
+ color: #404040;
+ background: none;
+ font-size: 0.95em;
+}
+
+.fc-view-todo .fc-table-datepicker-current .ui-datepicker-title {
+ color: #ffffff;
+ background-color: #585858;
+}
+
+.fc-view-todo .fc-table-datepicker .ui-datepicker-prev,
+.fc-view-todo .fc-table-datepicker .ui-datepicker-next {
+ display: none;
+}
+
+.fc-table-datepicker .ui-datepicker-week-col {
+ text-align: center;
+ vertical-align: middle;
+ font-size: 0.8em;
+}
+
+.fc-table-datepicker .ui-datepicker th {
+ display: table-cell;
+ text-align: center;
+ border: 0;
+ padding: 1px;
+}
+
+.fc-table-datepicker .ui-datepicker td span,
+.fc-table-datepicker .ui-datepicker td a {
+ width: 20px;
+ line-height: 17px;
+}
+
+.fc-table-datepicker tbody tr {
+ height: 23px;
+}
+
+/*
+.fc-table-datepicker .ui-datepicker-today a {
+ font-weight: 400;
+ color: #404040;
+ background: #c0c0c0;
+ border: 1px solid #c0c0c0;
+}
+
+.fc-table-datepicker .ui-datepicker-today .ui-state-active {
+ border: 1px solid #585858;
+ background: #585858;
+ color: #ffffff;
+}
+*/
+
+.fc-event-img {
+ float: left;
+ height: 15px;
+ width: 15px;
+ padding-right: 2px;
+}
+
+.fc-event-urgent {
+ color: #9E2F36;
+}
+
+.fc-event-pastdue {
+ color: #E30613;
+}
+
+.fc-event.fc-event-row:hover
+{
+ color: #404040;
+ background-color: #e7e7e7;
+ cursor: pointer;
+}
+
+.fc-event.fc-event-row.fc-event-urgent:hover
+{
+ color: #9E2F36;
+ background-color: #fedee0;
+ cursor: pointer;
+}
+
+.fc-event.fc-event-row.fc-event-pastdue:hover
+{
+ color: #e30613;
+ background-color: #fedee0;
+ cursor: pointer;
+}
+
+.fc-event.fc-event-row.fc-event-selected
+{
+ color: #eeeeee;
+ background-color: #585858 !important;
+}
+
+.fc-event.fc-event-row.fc-event-selected.fc-event-urgent
+{
+ color: #ffffff;
+ background-color: #9E2F36 !important;
+}
+
+.fc-event.fc-event-row.fc-event-selected.fc-event-pastdue
+{
+ color: #ffffff;
+ background-color: #e30613 !important;
+}
+
+.fc-event-priority-3 {
+ background-image: url(../images/priority-1.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-priority-2 {
+ background-image: url(../images/priority-2.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-priority-1 {
+ background-image: url(../images/priority-3.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-urgent .fc-event-priority-3 {
+ background-image: url(../images/priority-1-dr.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-urgent .fc-event-priority-2 {
+ background-image: url(../images/priority-2-dr.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-urgent .fc-event-priority-1 {
+ background-image: url(../images/priority-3-dr.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-pastdue .fc-event-priority-3 {
+ background-image: url(../images/priority-1-r.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-pastdue .fc-event-priority-2 {
+ background-image: url(../images/priority-2-r.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-pastdue .fc-event-priority-1 {
+ background-image: url(../images/priority-3-r.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected .fc-event-priority-3 {
+ background-image: url(../images/priority-1-w.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected .fc-event-priority-2 {
+ background-image: url(../images/priority-2-w.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected .fc-event-priority-1 {
+ background-image: url(../images/priority-3-w.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-filterAction .fc-event-status {
+ background-image: url(../images/needs_action_b.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-filterProgress .fc-event-status {
+ background-image: url(../images/in_progress_b.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-filterCompleted .fc-event-status {
+ background-image: url(../images/success_b.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-filterCanceled .fc-event-status {
+ background-image: url(../images/reset_b.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-urgent.fc-event-filterAction .fc-event-status {
+ background-image: url(../images/needs_action_dr.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-urgent.fc-event-filterProgress .fc-event-status {
+ background-image: url(../images/in_progress_dr.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-urgent.fc-event-filterCompleted .fc-event-status {
+ background-image: url(../images/success_dr.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-urgent.fc-event-filterCanceled .fc-event-status {
+ background-image: url(../images/reset_dr.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-pastdue.fc-event-filterAction .fc-event-status {
+ background-image: url(../images/needs_action_r.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-pastdue.fc-event-filterProgress .fc-event-status {
+ background-image: url(../images/in_progress_r.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-pastdue.fc-event-filterCompleted .fc-event-status {
+ background-image: url(../images/success_r.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-pastdue.fc-event-filterCanceled .fc-event-status {
+ background-image: url(../images/reset_r.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-filterAction .fc-event-status {
+ background-image: url(../images/needs_action_w.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-filterProgress .fc-event-status {
+ background-image: url(../images/in_progress_w.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-filterCompleted .fc-event-status {
+ background-image: url(../images/success_w.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-filterCanceled .fc-event-status {
+ background-image: url(../images/reset_w.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-urgent.fc-event-filterCompleted .fc-event-status {
+ background-image: url(../images/success_drw.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-urgent.fc-event-filterCanceled .fc-event-status {
+ background-image: url(../images/reset_drw.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-pastdue.fc-event-filterCompleted .fc-event-status {
+ background-image: url(../images/success_rw.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
+
+.fc-event-selected.fc-event-pastdue.fc-event-filterCanceled .fc-event-status {
+ background-image: url(../images/reset_rw.svg);
+ background-repeat: no-repeat;
+ background-position: center;
+}
diff --git a/public/infcloud/css/jquery-ui.custom.css b/public/infcloud/css/jquery-ui.custom.css
new file mode 100644
index 0000000..a0b2f47
--- /dev/null
+++ b/public/infcloud/css/jquery-ui.custom.css
@@ -0,0 +1,203 @@
+/*
+ * jQuery UI CSS Framework
+ *
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ */
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
+.ui-helper-clearfix:after { clear: both; }
+.ui-helper-clearfix { zoom: 1; }
+.ui-helper-hidden-accessible { display: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+/*
+ * jQuery UI CSS Framework
+ *
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ *
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
+ */
+
+/* Component containers
+----------------------------------*/
+.ui-widget { font-family: inherit; font-size: 1em; }
+.ui-widget-content { border: 1px solid #c0c0c0; background: #ffffff; color: #404040; }
+.ui-widget-header { border: none; background: #f0f0f0; color: #404040; font-weight: 500; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #c0c0c0; background: #ffffff; font-weight: 400; color: #404040; }
+.ui-widget-content .ui-datepicker-week-end .ui-state-default {background: #f7f7f7;}
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
+.ui-state-hover, .ui-widget-content .ui-datepicker-week-end .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { background: #e7e7e7; font-weight: 400; color: #404040; }
+.ui-state-hover a, .ui-state-hover a:hover, .ui-widget-content .ui-datepicker-week-end .ui-state-hover a:hover { color: #212121; text-decoration: none;}
+.ui-widget-content .ui-datepicker-today .ui-state-default {background: #c0c0c0; color: #404040;}
+.ui-state-active, .ui-widget-content .ui-datepicker-week-end .ui-state-active, .ui-widget-content .ui-datepicker-today .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #585858; background: #585858; font-weight: 400; color: #ffffff; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
+.ui-widget :active { outline: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec; color: #cd0a0a; }
+.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: 500; }
+
+/* states and images */
+.ui-icon { width: 17px; height: 19px; }
+
+/* positioning */
+.ui-icon-circle-triangle-e { background-image: url(../images/dp_right.svg); }
+.ui-icon-circle-triangle-w { background-image: url(../images/dp_left.svg); }
+
+/*
+ * jQuery UI Autocomplete
+ *
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; max-height: 80px; overflow-y: auto; overflow-x: hidden; padding-right: 20px;}
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+ list-style: none;
+ padding: 0px;
+ margin: 0;
+ display: block;
+ float: left;
+ border-color: #e0e0e0;
+}
+.ui-menu .ui-menu {
+ margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+ margin: 0;
+ padding: 0;
+ zoom: 1;
+ float: left;
+ clear: left;
+ width: 100%;
+ white-space: pre;
+}
+.ui-menu .ui-menu-item a {
+ text-decoration: none;
+ display: block;
+ padding: 2px 2px;
+ zoom: 1;
+ white-space: pre;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+ font-weight: 400;
+ background: #f0f0f0;
+}
+
+button.ui-datepicker-current
+{
+ width:40%;
+ margin:5px 1px 5px 1px;
+ float:left;
+}
+button.ui-datepicker-close
+{
+ width:40%;
+ margin:5px 1px 5px 1px;
+ float:right;
+}
+
+/*
+ * jQuery UI Slider
+ *
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }
+
+/*
+ * jQuery UI Datepicker
+ *
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker#theming
+ */
+
+.ui-datepicker { width: 184px; padding: 4px; z-index: 21; display: none; cursor:default; user-select: none; -webkit-user-select:none; -moz-user-select: -moz-none;}
+.ui-datepicker .ui-datepicker-header { position:relative; height: 19px; padding: 2px 0px; margin: 2px 2px 1px 2px; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 17px; height: 19px; }
+.ui-datepicker .ui-datepicker-prev { left: 2px; }
+.ui-datepicker .ui-datepicker-next { right: 2px; }
+.ui-datepicker .ui-datepicker-title { margin: 0px 24px; text-align: center; white-space: nowrap;}
+.ui-datepicker .ui-datepicker-title select { margin: 0px 0px; background-color: #ffffff; }
+.ui-datepicker .ui-datepicker-title span { display: inline-block; margin-top: 3px; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month { padding-bottom: 0px; width: 40px; max-height: 19px; line-height: 19px; margin-left: 2px; }
+.ui-datepicker select.ui-datepicker-year { padding-bottom: 0px; width: 57px; max-height: 19px; line-height: 19px; }
+.ui-datepicker table { font-size: 0.95em; border-collapse: collapse; margin: 3px 0px 1px 1px; }
+.ui-datepicker th { display: none; }
+.ui-datepicker td { border: 0; padding: 2px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; width: 18px; padding: 1px 2px 1px 0px; text-align: right; text-decoration: none; overflow: hidden; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { border: 1px solid #c0c0c0; background: #ffffff; font-weight: 400; color: #000000; padding: 0px;}
+.ui-datepicker-calendar th {font-weight: 400;}
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width: 0px; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width: 0px; border-left-width:1px; }
diff --git a/public/infcloud/css/jquery.tagsinput.css b/public/infcloud/css/jquery.tagsinput.css
new file mode 100644
index 0000000..daad03c
--- /dev/null
+++ b/public/infcloud/css/jquery.tagsinput.css
@@ -0,0 +1,14 @@
+div.tagsinput { border: none; background: #ffffff; padding: 1px; min-height: 24px; max-height: 66px; overflow-y: auto; }
+div.tagsinput.readonly { border: none; background: #ffffff; padding: 1px; overflow-y: auto; }
+div.tagsinput span.tag { border: 1px solid #585858; display: block; float: left; height: 19px; padding: 1px 2px 0px 2px; min-height: 17px; text-decoration:none; background: #585858; color: #ffffff; margin: 1px; white-space: pre; }
+div.tagsinput span.tag span { line-height: 19px; bottom: 0px; }
+div.tagsinput span.tag span, x:-moz-any-link, x:default { line-height: 17px; }
+div.tagsinput span.tag a { font-weight: 400; color: #d0d0d0; text-decoration:none; padding-left: 4px; }
+div.tagsinput.readonly span.tag { border: 1px solid #e0e0e0; background: #ffffff; color: #2d2d2d; }
+div.tagsinput.readonly span.tag a { display: none; }
+div[id$="_addTag"] { padding: 2px 0px 2px 3px;} /*div#tags_addTag { padding: 2px 0px 2px 3px;}*/
+div.tagsinput input { width:130px; margin: 0px; border: none; padding: 0px; background: transparent; color: #000; outline:0px; }
+div.tagsinput div.input_container { width:130px; position: relative; }
+div.tagsinput div { display:block; float: left; }
+.tags_clear { clear: both; width: 100%; height: 0px; }
+.not_valid { color: #90111a !important; }
diff --git a/public/infcloud/css/spectrum.custom.css b/public/infcloud/css/spectrum.custom.css
new file mode 100644
index 0000000..97a3d22
--- /dev/null
+++ b/public/infcloud/css/spectrum.custom.css
@@ -0,0 +1,553 @@
+/***
+Spectrum Colorpicker v1.2.0
+https://github.com/bgrins/spectrum
+Author: Brian Grinstead
+License: MIT
+***/
+
+.sp-container {
+ position:absolute;
+ top:0;
+ left:0;
+ display:inline-block;
+ *display: inline;
+ *zoom: 1;
+ /* https://github.com/bgrins/spectrum/issues/40 */
+ z-index: 9999994;
+ overflow: hidden;
+ border-bottom: 1px solid #c0c0c0;
+}
+
+.sp-container.sp-flat {
+ position: relative;
+}
+
+.sp-arrow
+{
+ position: absolute;
+ top: 0;
+ left: 106px;
+ width: 12px;
+ height: 6px;
+ background-image: url('../images/resource_arrow_down.svg');
+}
+
+/* http://ansciath.tumblr.com/post/7347495869/css-aspect-ratio */
+.sp-top {
+ position:relative;
+ width: 100%;
+ display:inline-block;
+}
+.sp-top-inner {
+ position:absolute;
+ top:0;
+ left:0;
+ bottom:0;
+ right:0;
+}
+.sp-color {
+ position: absolute;
+ top:0;
+ left:0;
+ bottom:0;
+ right:20%;
+}
+.sp-hue {
+ position: absolute;
+ top:0;
+ right:0;
+ bottom:0;
+ left:84%;
+ height: 100%;
+}
+
+.sp-clear-enabled .sp-hue {
+ top:33px;
+ height: 77.5%;
+}
+
+.sp-fill {
+ padding-top: 80%;
+}
+.sp-sat, .sp-val {
+ position: absolute;
+ top:0;
+ left:0;
+ right:0;
+ bottom:0;
+}
+
+.sp-alpha-enabled .sp-top {
+ margin-bottom: 18px;
+}
+.sp-alpha-enabled .sp-alpha {
+ display: block;
+}
+.sp-alpha-handle {
+ position:absolute;
+ top:-4px;
+ bottom: -4px;
+ width: 6px;
+ left: 50%;
+ cursor: pointer;
+ border: 1px solid black;
+ background: white;
+ opacity: .8;
+}
+.sp-alpha {
+ display: none;
+ position: absolute;
+ bottom: -14px;
+ right: 0;
+ left: 0;
+ height: 8px;
+}
+.sp-alpha-inner {
+ border: solid 1px #333;
+}
+
+.sp-clear {
+ display: none;
+}
+
+.sp-clear.sp-clear-display {
+ background-position: center;
+}
+
+.sp-clear-enabled .sp-clear {
+ display: block;
+ position:absolute;
+ top:0px;
+ right:0;
+ bottom:0;
+ left:84%;
+ height: 28px;
+}
+
+/* Don't allow text selection */
+.sp-container, .sp-replacer, .sp-preview, .sp-dragger, .sp-slider, .sp-alpha, .sp-clear, .sp-alpha-handle, .sp-container.sp-dragging .sp-input, .sp-container button {
+ cursor:default;
+ -webkit-user-select:none;
+ -moz-user-select: -moz-none;
+ -o-user-select:none;
+ user-select: none;
+}
+
+.sp-container.sp-input-disabled .sp-input-container {
+ display: none;
+}
+.sp-container.sp-buttons-disabled .sp-button-container {
+ display: none;
+}
+.sp-palette-only .sp-picker-container {
+ display: none;
+}
+.sp-palette-disabled .sp-palette-container {
+ display: none;
+}
+
+.sp-initial-disabled .sp-initial {
+ display: none;
+}
+
+
+/* Gradients for hue, saturation and value instead of images. Not pretty... but it works */
+.sp-sat {
+ background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204, 154, 129, 0)));
+ background-image: -webkit-linear-gradient(left, #FFF, rgba(204, 154, 129, 0));
+ background-image: -moz-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
+ background-image: -o-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
+ background-image: -ms-linear-gradient(left, #fff, rgba(204, 154, 129, 0));
+ background-image: linear-gradient(to right, #fff, rgba(204, 154, 129, 0));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";
+ filter : progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81');
+}
+.sp-val {
+ background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#000000), to(rgba(204, 154, 129, 0)));
+ background-image: -webkit-linear-gradient(bottom, #000000, rgba(204, 154, 129, 0));
+ background-image: -moz-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
+ background-image: -o-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
+ background-image: -ms-linear-gradient(bottom, #000, rgba(204, 154, 129, 0));
+ background-image: linear-gradient(to top, #000, rgba(204, 154, 129, 0));
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";
+ filter : progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000');
+}
+
+.sp-hue {
+ background: -moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
+ background: -ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
+ background: -o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
+ background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000));
+ background: -webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
+}
+
+/* IE filters do not support multiple color stops.
+ Generate 6 divs, line them up, and do two color gradients for each.
+ Yes, really.
+ */
+.sp-1 {
+ height:17%;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00');
+}
+.sp-2 {
+ height:16%;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00');
+}
+.sp-3 {
+ height:17%;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff');
+}
+.sp-4 {
+ height:17%;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff');
+}
+.sp-5 {
+ height:16%;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff');
+}
+.sp-6 {
+ height:17%;
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000');
+}
+
+.sp-hidden {
+ display: none !important;
+}
+
+/* Clearfix hack */
+.sp-cf:before, .sp-cf:after { content: ""; display: table; }
+.sp-cf:after { clear: both; }
+.sp-cf { *zoom: 1; }
+
+/* Mobile devices, make hue slider bigger so it is easier to slide */
+@media (max-device-width: 480px) {
+ .sp-color { right: 40%; }
+ .sp-hue { left: 63%; }
+ .sp-fill { padding-top: 60%; }
+}
+.sp-dragger {
+ border-radius: 5px;
+ height: 5px;
+ width: 5px;
+ border: 1px solid #fff;
+ background: #000;
+ cursor: pointer;
+ position:absolute;
+ top:0;
+ left: 0;
+}
+.sp-slider {
+ position: absolute;
+ top:0;
+ cursor:pointer;
+ height: 3px;
+ left: -1px;
+ right: -1px;
+ border: 1px solid #000;
+ background: white;
+ opacity: .8;
+}
+
+/*
+Theme authors:
+Here are the basic themeable display options (colors, fonts, global widths).
+See http://bgrins.github.io/spectrum/themes/ for instructions.
+*/
+
+.sp-container {
+ border-radius: 0;
+ background-color: #f0f0f0;
+ padding: 0;
+}
+.sp-container, .sp-container button, .sp-container input, .sp-color, .sp-hue, .sp-clear
+{
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+.sp-top
+{
+ margin-bottom: 3px;
+}
+
+.sp-color, .sp-hue, .sp-clear
+{
+ border: solid 1px #666;
+}
+
+/* Input */
+/*.sp-input-container {
+ float:right;
+ width: 100px;
+ margin-bottom: 4px;
+}
+.sp-initial-disabled .sp-input-container {
+ width: 100%;
+}
+.sp-input {
+ font-size: 12px !important;
+ border: 1px inset;
+ padding: 4px 5px;
+ margin: 0;
+ width: 100%;
+ background:transparent;
+ border-radius: 3px;
+ color: #222;
+}
+.sp-input:focus {
+ border: 1px solid orange;
+}*/
+.sp-input-container {
+ width: 100%;
+ margin-bottom: 4px;
+}
+.sp-input {
+ padding: 4px 5px;
+ margin: 0;
+ width: 100%;
+}
+/*.sp-input.sp-validation-error
+{
+ border: 1px solid red;
+ background: #fdd;
+}*/
+.sp-picker-container , .sp-palette-container
+{
+ float:left;
+ position: relative;
+ padding: 10px;
+}
+.sp-picker-container
+{
+ width: 204px;
+ /*width: 172px;*/
+}
+
+/* Palettes */
+.sp-palette-container
+{
+ border-right: solid 1px #ccc;
+}
+
+.sp-palette .sp-thumb-el {
+ display: block;
+ position:relative;
+ float:left;
+ width: 24px;
+ height: 15px;
+ margin: 3px;
+ cursor: pointer;
+ border:solid 2px transparent;
+}
+.sp-palette .sp-thumb-el:hover, .sp-palette .sp-thumb-el.sp-thumb-active {
+ border-color: orange;
+}
+.sp-thumb-el
+{
+ position:relative;
+}
+
+/* Initial */
+.sp-initial
+{
+ float: left;
+ border: solid 1px #333;
+}
+.sp-initial span {
+ width: 30px;
+ height: 25px;
+ border:none;
+ display:block;
+ float:left;
+ margin:0;
+}
+
+.sp-initial .sp-clear-display {
+ background-position: center;
+}
+
+/* Buttons */
+.sp-button-container {
+ width: 100%;
+}
+
+/* Replacer (the little preview div that shows up instead of the <input>) */
+.sp-replacer {
+ margin:0;
+ overflow:hidden;
+ cursor:pointer;
+ padding: 4px;
+ /*display:inline-block;*/
+ display: none;
+ *zoom: 1;
+ *display: inline;
+ border: solid 1px #91765d;
+ background: #eee;
+ color: #333;
+ vertical-align: middle;
+}
+.sp-replacer:hover, .sp-replacer.sp-active {
+ border-color: #F0C49B;
+ color: #111;
+}
+.sp-replacer.sp-disabled {
+ cursor:default;
+ border-color: silver;
+ color: silver;
+}
+.sp-dd {
+ padding: 2px 0;
+ height: 16px;
+ line-height: 16px;
+ float:left;
+ font-size:10px;
+}
+.sp-preview
+{
+ position:relative;
+ width:25px;
+ height: 20px;
+ border: solid 1px #222;
+ margin-right: 5px;
+ float:left;
+ z-index: 0;
+}
+
+.sp-palette
+{
+ *width: 220px;
+ max-width: 220px;
+}
+.sp-palette .sp-thumb-el
+{
+ width:16px;
+ height: 16px;
+ margin:2px 1px;
+ border: solid 1px #d0d0d0;
+}
+
+.sp-container
+{
+ padding-bottom:0;
+}
+
+
+/* Buttons: http://hellohappy.org/css3-buttons/ */
+/*.sp-container button {
+ background-color: #eeeeee;
+ background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
+ background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
+ background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
+ background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
+ background-image: linear-gradient(to bottom, #eeeeee, #cccccc);
+ border: 1px solid #ccc;
+ border-bottom: 1px solid #bbb;
+ border-radius: 3px;
+ color: #333;
+ font-size: 14px;
+ line-height: 1;
+ padding: 5px 4px;
+ text-align: center;
+ text-shadow: 0 1px 0 #eee;
+ vertical-align: middle;
+}
+.sp-container button:hover {
+ background-color: #dddddd;
+ background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb);
+ background-image: -moz-linear-gradient(top, #dddddd, #bbbbbb);
+ background-image: -ms-linear-gradient(top, #dddddd, #bbbbbb);
+ background-image: -o-linear-gradient(top, #dddddd, #bbbbbb);
+ background-image: linear-gradient(to bottom, #dddddd, #bbbbbb);
+ border: 1px solid #bbb;
+ border-bottom: 1px solid #999;
+ cursor: pointer;
+ text-shadow: 0 1px 0 #ddd;
+}
+.sp-container button:active {
+ border: 1px solid #aaa;
+ border-bottom: 1px solid #888;
+ -webkit-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
+ -moz-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
+ -ms-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
+ -o-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
+ box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
+}
+.sp-cancel
+{
+ font-size: 11px;
+ color: #d93f3f !important;
+ margin:0;
+ padding:2px;
+ margin-right: 5px;
+ vertical-align: middle;
+ text-decoration:none;
+
+}
+.sp-cancel:hover
+{
+ color: #d93f3f !important;
+ text-decoration: underline;
+}*/
+
+.sp-container input[type=button]
+{
+ width: 40%;
+}
+
+.sp-cancel
+{
+ float: right;
+}
+
+.sp-palette span:hover, .sp-palette span.sp-thumb-active
+{
+ border-color: #000;
+}
+
+.sp-preview, .sp-alpha, .sp-thumb-el
+{
+ position:relative;
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
+}
+.sp-preview-inner, .sp-alpha-inner, .sp-thumb-inner
+{
+ display:block;
+ position:absolute;
+ top:0;left:0;bottom:0;right:0;
+}
+
+.sp-palette .sp-thumb-inner
+{
+ background-position: 50% 50%;
+ background-repeat: no-repeat;
+}
+
+.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner
+{
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=);
+}
+
+.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner
+{
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=);
+}
+
+.sp-clear-display {
+ background-repeat:no-repeat;
+ background-position: center;
+ background-image: url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==);
+}
+
+.sp-inverse.sp-container {
+ border-top: 1px solid #c0c0c0;
+ border-bottom: none;
+}
+
+.sp-inverse .sp-arrow
+{
+ top: auto;
+ bottom: 0;
+ background-image: url('../images/resource_arrow_up.svg');
+}
diff --git a/public/infcloud/data_process.js b/public/infcloud/data_process.js
new file mode 100644
index 0000000..d52f7dc
--- /dev/null
+++ b/public/infcloud/data_process.js
@@ -0,0 +1,7792 @@
+/*
+InfCloud - the open source CalDAV/CardDAV Web Client
+Copyright (C) 2011-2015
+ Jan Mate <jan.mate@inf-it.com>
+ Andrej Lezo <andrej.lezo@inf-it.com>
+ Matej Mihalik <matej.mihalik@inf-it.com>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+String.prototype.parseComnpactISO8601=function(uid)
+{
+ if(this.length>=15)
+ var formattedString=this.substring(0, 4)+'/'+this.substring(4, 6)+'/'+this.substring(6, 8)+' '+this.substring(9, 11)+':'+this.substring(11, 13)+':'+this.substring(13, 15);
+ else
+ var formattedString=this.substring(0, 4)+'/'+this.substring(4, 6)+'/'+this.substring(6, 8)+' '+'00:00:00';
+
+ var value=Date.parse(formattedString);
+ if(isNaN(value))
+ return false
+ else
+ return new Date(value);
+}
+
+function repeatStartCompare(objA,objB)
+{
+ var startA='',startB='';
+ if(objA.rec_id!='')
+ startA=objA.rec_id.parseComnpactISO8601();
+ else if(objA.start)
+ startA=new Date(objA.start.getTime());
+ else if(objA.end)
+ startA=new Date(objA.end.getTime());
+ else
+ startA=Infinity;
+
+ if(objB.rec_id!='')
+ startB=objB.rec_id.parseComnpactISO8601();
+ else if(objB.start)
+ startB=new Date(objB.start.getTime());
+ else if(objB.end)
+ startB=new Date(objB.end.getTime());
+ else
+ startB=Infinity;
+
+ if(startA<startB)
+ return -1;
+ if(startA>startB)
+ return 1;
+
+ return 0;
+}
+
+function findWeek(weekNo,inDate,day)
+{
+ var distance = (day + 7 - inDate.getDay()) % 7;
+ var date = new Date(inDate.getTime());
+ date.setDate(date.getDate() + distance);
+ if(date.getWeekNo() <= weekNo)
+ date.setDate(date.getDate() + 7*(weekNo-date.getWeekNo()));
+ else
+ {
+ var actualYearWeeks = new Date(date.getFullYear(),11,31,1,1,1).getWeekNo();
+ date.setDate(date.getDate() + 7*(actualYearWeeks-date.getWeekNo()));
+ }
+
+}
+String.prototype.getSecondsFromOffset=function()
+{
+ if(this.length>=5)
+ {
+ var hours=this.substring(1,3);
+ var minutes=this.substring(3,5);
+ var seconds='00';
+ if(this.length>=7)
+ seconds=this.substring(5,7);
+
+ var value=parseInt(hours,10)*60*60+parseInt(minutes,10)*60+parseInt(seconds,10);
+ if(this.charAt(0)=='-')
+ value=value*-1;
+
+ if(!isNaN(value))
+ return value
+ else
+ return 0;
+ }
+ else
+ return 0;
+}
+Array.prototype.indexElementOf=function(value)
+{
+ for(var i=0;i<this.length;i++)
+ if(this[i].indexOf(value)!=-1)
+ return i;
+return -1;
+}
+
+function setAlertTimeouts(isTodo, alertTime, dateStart, dateEnd, params, firstInstance, uid)
+{
+ var alertTimeOut=new Array();
+ if(isTodo && dateEnd!='')
+ {
+ if(typeof dateEnd=='string')
+ dateStart = dateEnd;
+ else
+ dateStart=new Date(dateEnd.getTime());
+ }
+ else if(isTodo && dateStart!='')
+ {
+ if(typeof dateStart=='string')
+ dateEnd=dateStart;
+ else
+ dateEnd=new Date(dateStart.getTime());
+ }
+
+ if(alertTime.length>0)
+ {
+ for(var v=0;v<alertTime.length;v++)
+ {
+ if((alertTime[v].charAt(0)=='-') || (alertTime[v].charAt(0)=='+') || firstInstance)
+ {
+ var startTime;
+ var aTime='';
+ if((dateStart!='' || dateEnd!='') && alertTime[v].charAt(0)=='-')
+ {
+ if(typeof dateStart=='string')
+ startTime = $.fullCalendar.parseDate(dateStart);
+ else
+ startTime=new Date(dateStart.getTime());
+ aTime=startTime.getTime() - parseInt(alertTime[v].substring(1, alertTime[v].length-1));
+ }
+ else if((dateStart!='' || dateEnd!='') && alertTime[v].charAt(0)=='+')
+ {
+ if(typeof dateEnd=='string')
+ startTime = $.fullCalendar.parseDate(dateEnd);
+ else
+ startTime=new Date(dateEnd.getTime());
+ aTime=startTime.getTime() + parseInt(alertTime[v].substring(1, alertTime[v].length-1));
+ }
+ else if(firstInstance)
+ {
+ aTime=$.fullCalendar.parseDate(alertTime[v]);
+ if(isTodo)
+ var displayDate=(dateEnd=='' ? dateStart : dateEnd);
+ else
+ var displayDate=dateStart;
+ if(displayDate!='')
+ startTime = new Date(displayDate.getTime());
+ else
+ startTime='';
+ }
+ var now=new Date();
+
+ if(aTime!==''&&aTime>now)
+ {
+ var delay=aTime-now;
+ if(maxAlarmValue<delay)
+ delay=maxAlarmValue;
+ if(isTodo)
+ alertTimeOut[alertTimeOut.length]=setTimeout(function(startTime){
+ showAlertTODO(uid, (aTime-now), {start:(startTime!='' ? new Date(startTime.getTime()) : ''), status:params.status, title:params.title});
+ }, delay,startTime);
+ else
+ alertTimeOut[alertTimeOut.length]=setTimeout(function(startTime){
+ showAlertEvents(uid, (aTime-now), {start:new Date(startTime.getTime()), allDay:params.allDay, title:params.title});
+ }, delay,startTime);
+ }
+ }
+ }
+ }
+ return alertTimeOut;
+}
+
+
+function isInRecurrenceArray(varDate,stringUID,recurrence_id_array, tzName)
+{
+ var checkRec=false;
+ var checkDate='';
+ if(typeof varDate=='string')
+ checkDate=$.fullCalendar.parseDate(varDate);
+ else
+ checkDate=new Date(varDate.getTime());
+
+ if(recurrence_id_array.length>0)
+ {
+ for(var ir=0;ir<recurrence_id_array.length;ir++)
+ {
+ var recString = recurrence_id_array[ir].split(';')[0];
+ if(recString.charAt(recString.length-1)=='Z')
+ {
+ if(globalSettings.timezonesupport.value && tzName in timezones)
+ {
+ var recValOffsetFrom=getOffsetByTZ(tzName, varDate);
+ var recTime = new Date(recString.parseComnpactISO8601().getTime());
+ if(recValOffsetFrom)
+ {
+ var rintOffset=recValOffsetFrom.getSecondsFromOffset()*1000;
+ recTime.setTime(recTime.getTime()+rintOffset);
+ }
+ if(recTime.toString()+recurrence_id_array[ir].split(';')[1] == varDate+stringUID)
+ checkRec=true;
+ }
+ }
+ else
+ {
+ if(recString.parseComnpactISO8601().toString()+recurrence_id_array[ir].split(';')[1] == varDate+stringUID)
+ checkRec=true;
+ }
+ }
+ }
+ return checkRec;
+}
+
+
+
+function applyTimezone(previousTimezone,isEventLocal)
+{
+ updateMainLoaderTextTimezone();
+ $('#MainLoader').show();
+
+ var eventsDone=false;
+ var todosDone=false;
+ var collections=globalResourceCalDAVList.collections;
+ var todoCollections=globalResourceCalDAVList.TodoCollections;
+ var calendarCount=0, calendarCounter=0;
+ var todoCount=0, todoCounter=0;
+
+ for(var i=0;i<collections.length;i++)
+ if(collections[i].uid!=undefined)
+ calendarCount++;
+ for(var i=0;i<todoCollections.length;i++)
+ if(todoCollections[i].uid!=undefined)
+ todoCount++;
+
+ var eventsArray=globalEventList.displayEventsArray;
+ var todosArray=globalEventList.displayTodosArray;
+
+ for(var i=0;i<collections.length;i++)
+ if(collections[i].uid!=undefined)
+ {
+ setTimeout(function(i){
+ for(var j=0;j<eventsArray[collections[i].uid].length;j++)
+ {
+ if(eventsArray[collections[i].uid][j].timeZone=='local' || eventsArray[collections[i].uid][j].allDay)
+ continue;
+ var dateStart=eventsArray[collections[i].uid][j].start;
+ var previousOffset=getOffsetByTZ(previousTimezone, dateStart).getSecondsFromOffset();
+ var actualOffset='';
+ if(typeof globalSessionTimeZone!='undefined' && globalSessionTimeZone!=null && globalSessionTimeZone!='')
+ actualOffset=getOffsetByTZ(globalSessionTimeZone, dateStart).getSecondsFromOffset();
+ else
+ actualOffset=dateStart.getTimezoneOffset()*60*-1;
+//if timezonesupport is turned off go to local
+ if(typeof isEventLocal!='undefined')
+ actualOffset=getOffsetByTZ(eventsArray[collections[i].uid][j].timeZone, dateStart).getSecondsFromOffset();
+
+ if(typeof isEventLocal!='undefined' && !isEventLocal)
+ var intOffset=(previousOffset-actualOffset)*1000;
+ else
+ var intOffset=(actualOffset-previousOffset)*1000;
+ eventsArray[collections[i].uid][j].start.setTime(eventsArray[collections[i].uid][j].start.getTime()+intOffset);
+
+ if(eventsArray[collections[i].uid][j].end)
+ eventsArray[collections[i].uid][j].end.setTime(eventsArray[collections[i].uid][j].end.getTime()+intOffset);
+
+ var calEvent=eventsArray[collections[i].uid][j];
+ if(j==0 || j>0 && eventsArray[collections[i].uid][j].id!=eventsArray[collections[i].uid][j-1].id)
+ if(calEvent.alertTime.length>0)
+ {
+ for(var k=0; k<calEvent.alertTimeOut.length; k++)
+ clearTimeout(calEvent.alertTimeOut[k]);
+
+ var aTime='', now=new Date();
+ for(var alarmIterator=0;alarmIterator<calEvent.alertTime.length;alarmIterator++)
+ {
+ if(eventsArray[collections[i].uid][j].start!=null && calEvent.alertTime[alarmIterator].charAt(0)=='-')
+ aTime=eventsArray[collections[i].uid][j].start.getTime() - parseInt(calEvent.alertTime[alarmIterator].substring(1, calEvent.alertTime[alarmIterator].length-1));
+ else if(eventsArray[collections[i].uid][j].end!=null && calEvent.alertTime[alarmIterator].charAt(0)=='+')
+ aTime=eventsArray[collections[i].uid][j].end.getTime() + parseInt(calEvent.alertTime[alarmIterator].substring(1, calEvent.alertTime[alarmIterator].length-1));
+ else
+ {
+ var previousOffset=getOffsetByTZ(previousTimezone, $.fullCalendar.parseDate(calEvent.alertTime[alarmIterator])).getSecondsFromOffset();
+ var actualOffset='';
+ if(typeof globalSessionTimeZone!='undefined' && globalSessionTimeZone!=null && globalSessionTimeZone!='')
+ actualOffset=getOffsetByTZ(globalSessionTimeZone, $.fullCalendar.parseDate(calEvent.alertTime[alarmIterator])).getSecondsFromOffset();
+ else
+ actualOffset=$.fullCalendar.parseDate(calEvent.alertTime[alarmIterator]).getTimezoneOffset()*60*-1;
+
+ if(typeof isEventLocal!='undefined')
+ actualOffset=getOffsetByTZ(eventsArray[collections[i].uid][j].timeZone, $.fullCalendar.parseDate(calEvent.alertTime[alarmIterator])).getSecondsFromOffset();
+
+ if(typeof isEventLocal!='undefined' && !isEventLocal)
+ var intOffset=(previousOffset-actualOffset)*1000;
+ else
+ var intOffset=(actualOffset-previousOffset)*1000;
+
+ aTime=new Date($.fullCalendar.parseDate(calEvent.alertTime[alarmIterator]).getTime()+intOffset);
+ eventsArray[collections[i].uid][j].alertTime[alarmIterator]=$.fullCalendar.formatDate(aTime, "yyyy-MM-dd HH:mm:ss");
+ }
+
+ if(aTime>now)
+ {
+ var delay=aTime-now;
+ if(maxAlarmValue<delay)
+ delay=maxAlarmValue;
+ eventsArray[collections[i].uid][j].alertTimeOut[alarmIterator]=setTimeout(function(){
+ showAlertEvents(calEvent.id, (aTime-now), {start:calEvent.start, allDay:calEvent.allDay, title:calEvent.title});
+ }, delay);
+ }
+ }
+ }
+ }
+ calendarCounter++;
+ if(calendarCounter==calendarCount)
+ {
+ refetchCalendarEvents();
+ eventsDone=true;
+ if(todosDone)
+ $('#MainLoader').hide();
+ }
+ },10,i);
+ }
+
+ for(var i=0;i<todoCollections.length;i++)
+ if(todoCollections[i].uid!=undefined)
+ {
+ setTimeout(function(i){
+ for(var j=0;j<todosArray[todoCollections[i].uid].length;j++)
+ {
+ if(todosArray[todoCollections[i].uid][j].start)
+ {
+ if(typeof todosArray[todoCollections[i].uid][j].start =='string')
+ todosArray[todoCollections[i].uid][j].start = $.fullCalendar.parseDate(todosArray[todoCollections[i].uid][j].start);
+ var dateStart = todosArray[todoCollections[i].uid][j].start;
+ var previousOffset=getOffsetByTZ(previousTimezone, dateStart).getSecondsFromOffset();
+ var actualOffset='';
+ if(typeof globalSessionTimeZone!='undefined' && globalSessionTimeZone!=null && globalSessionTimeZone!='')
+ actualOffset=getOffsetByTZ(globalSessionTimeZone, dateStart).getSecondsFromOffset();
+ else
+ actualOffset=dateStart.getTimezoneOffset()*60*-1;
+ var intOffset=(actualOffset-previousOffset)*1000;
+ todosArray[todoCollections[i].uid][j].start.setTime(todosArray[todoCollections[i].uid][j].start.getTime()+intOffset);
+ }
+ if(todosArray[todoCollections[i].uid][j].end)
+ {
+ if(typeof todosArray[todoCollections[i].uid][j].end =='string')
+ todosArray[todoCollections[i].uid][j].end=$.fullCalendar.parseDate(todosArray[todoCollections[i].uid][j].end);
+ var dateEnd = todosArray[todoCollections[i].uid][j].end;
+ var previousOffset=getOffsetByTZ(previousTimezone, dateEnd).getSecondsFromOffset();
+ var actualOffset='';
+ if(typeof globalSessionTimeZone!='undefined' && globalSessionTimeZone!=null && globalSessionTimeZone!='')
+ actualOffset=getOffsetByTZ(globalSessionTimeZone, dateEnd).getSecondsFromOffset();
+ else
+ actualOffset=dateEnd.getTimezoneOffset()*60*-1;
+
+ if(typeof isEventLocal!='undefined')
+ actualOffset=getOffsetByTZ(todosArray[todoCollections[i].uid][j].timeZone, dateStart).getSecondsFromOffset();
+
+ if(typeof isEventLocal!='undefined' && !isEventLocal)
+ var intOffset=(previousOffset-actualOffset)*1000;
+ else
+ var intOffset=(actualOffset-previousOffset)*1000;
+ todosArray[todoCollections[i].uid][j].end.setTime(todosArray[todoCollections[i].uid][j].end.getTime()+intOffset);
+ }
+
+ var todoEvent=todosArray[todoCollections[i].uid][j];
+ if(j==0 || j>0 && todosArray[todoCollections[i].uid][j].id!=todosArray[todoCollections[i].uid][j-1].id)
+ if(todoEvent.alertTime.length>0)
+ {
+ if(todoEvent.end)
+ var showDate= new Date(todoEvent.end.getTime());
+ else if(todoEvent.start)
+ var showDate= new Date(todoEvent.start.getTime());
+ else
+ var showDate=new Date();
+ for(var k=0; k<todoEvent.alertTimeOut.length; k++)
+ clearTimeout(todoEvent.alertTimeOut[k]);
+
+ var aTime='', now='';
+ for(var alarmIterator=0;alarmIterator<todoEvent.alertTime.length;alarmIterator++)
+ {
+ if(todoEvent.alertTime[alarmIterator].charAt(0)=='-' || todoEvent.alertTime[alarmIterator].charAt(0)=='+')
+ {
+ aTime=showDate.getTime();
+ var dur=parseInt(todoEvent.alertTime[alarmIterator].substring(1, todoEvent.alertTime[alarmIterator].length-1));
+
+ if(todoEvent.alertTime[alarmIterator].charAt(0)=='-')
+ aTime=aTime-dur;
+ else
+ aTime=aTime+dur;
+
+ now=new Date();
+ }
+ else
+ {
+ var previousOffset=getOffsetByTZ(previousTimezone, $.fullCalendar.parseDate(todoEvent.alertTime[alarmIterator])).getSecondsFromOffset();
+ var actualOffset='';
+ if(typeof globalSessionTimeZone!='undefined' && globalSessionTimeZone!=null && globalSessionTimeZone!='')
+ actualOffset=getOffsetByTZ(globalSessionTimeZone, $.fullCalendar.parseDate(todoEvent.alertTime[alarmIterator])).getSecondsFromOffset();
+ else
+ actualOffset=$.fullCalendar.parseDate(todoEvent.alertTime[alarmIterator]).getTimezoneOffset()*60*-1;
+
+ if(typeof isEventLocal!='undefined')
+ actualOffset=getOffsetByTZ(todosArray[todoCollections[i].uid][j].timeZone, $.fullCalendar.parseDate(todoEvent.alertTime[alarmIterator])).getSecondsFromOffset();
+
+ if(typeof isEventLocal!='undefined' && !isEventLocal)
+ var intOffset=(previousOffset-actualOffset)*1000;
+ else
+ var intOffset=(actualOffset-previousOffset)*1000;
+
+ aTime=new Date($.fullCalendar.parseDate(todoEvent.alertTime[alarmIterator]).getTime()+intOffset);
+ todosArray[todoCollections[i].uid][j].alertTime[alarmIterator]=$.fullCalendar.formatDate(aTime, "yyyy-MM-dd HH:mm:ss");
+ now=new Date();
+ }
+
+ if(aTime>now)
+ {
+ var delay=aTime-now;
+ if(maxAlarmValue<delay)
+ delay=maxAlarmValue;
+ todosArray[todoCollections[i].uid][j].alertTimeOut[alarmIterator]=setTimeout(function(){
+ showAlertEvents(todoEvent.id, (aTime-now), {start:showDate, allDay:todoEvent.allDay, title:todoEvent.title});
+ }, delay);
+ }
+ }
+ }
+ }
+ todoCounter++;
+ if(todoCounter==todoCount)
+ {
+ refetchTodoEvents();
+ todosDone=true;
+ if(eventsDone)
+ $('#MainLoader').hide();
+ }
+ },10,i);
+ }
+}
+
+function getLocalOffset(date)
+{
+ if(typeof globalSessionTimeZone!='undefined' && globalSessionTimeZone!=null && globalSessionTimeZone!='')
+ return getOffsetByTZ(globalSessionTimeZone, date).getSecondsFromOffset()*-1;
+ else
+ date.getTimezoneOffset()*60;
+}
+
+function changeRuleForFuture(inputEvent, repeatCount)
+{
+ var vcalendar=inputEvent.vcalendar;
+ var vcalendar_element=vcalendar.match(vCalendar.pre['contentline_RRULE2']);
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ var ruleParts=parsed[4].split(';');
+ var foundUntil=false;
+ var parsedLine=parsed[0];
+ for(var i=0; i<ruleParts.length;i++)
+ {
+ if(ruleParts[i].indexOf('UNTIL')!=-1 || ruleParts[i].indexOf('COUNT')!=-1)
+ {
+ parsedLine=parsedLine.replace(ruleParts[i],'COUNT='+(repeatCount-1));
+ foundUntil=true;
+ }
+ }
+
+ if(!foundUntil)
+ {
+ var tmp=parsed[4]+';COUNT='+(repeatCount-1);
+ parsedLine=parsedLine.replace(parsed[4], tmp);
+ }
+ vcalendar=vcalendar.replace(parsed[0], parsedLine);
+ }
+ return vcalendar;
+}
+
+function buildTimezoneComponent(tzName)
+{
+ var component='';
+ var dayNames=['SU','MO', 'TU', 'WE', 'TH', 'FR', 'SA'];
+ if(!tzName || tzName=='local' || tzName=='UTC')
+ return component;
+ if(tzName in timezones)
+ {
+ component+='BEGIN:VTIMEZONE\r\nTZID:'+tzName+'\r\n';
+ for(comp in timezones[tzName])
+ {
+ if(comp=='daylightComponents')
+ {
+ var daylightC=timezones[tzName].daylightComponents;
+ var compName='DAYLIGHT';
+ }
+ else if(comp=='standardComponents')
+ {
+ var daylightC=timezones[tzName].standardComponents;
+ var compName='STANDARD';
+ }
+
+ for(var i in daylightC)
+ {
+ if(isNaN(i))
+ continue;
+
+ component+='BEGIN:'+compName+'\r\n';
+ for(key in daylightC[i])
+ {
+ switch(key)
+ {
+ case 'dtStart':
+ component+='DTSTART:'+daylightC[i][key]+'\r\n';
+ break;
+ case 'tzName':
+ component+='TZNAME:'+daylightC[i][key]+'\r\n';
+ break;
+ case 'tzOffsetFROM':
+ component+='TZOFFSETFROM:'+daylightC[i][key]+'\r\n';
+ break;
+ case 'tzOffsetTO':
+ component+='TZOFFSETTO:'+daylightC[i][key]+'\r\n';
+ break;
+ case 'startMonth':
+ component+='RRULE:FREQ=YEARLY';
+ if(daylightC[i]['startMonth'])
+ component+=';BYMONTH='+daylightC[i]['startMonth'];
+
+ if(typeof daylightC[i]['startDay']!='undefined' && typeof dayNames[daylightC[i]['startDay']]!='undefined')
+ {
+ if(!daylightC[i]['startCount'])
+ component+=';BYDAY='+dayNames[daylightC[i]['startDay']];
+ else
+ component+=';BYDAY='+daylightC[i]['startCount']+dayNames[daylightC[i]['startDay']];
+ }
+ component+='\r\n';
+ break;
+ case 'rDates':
+ if(daylightC[i]['rDates'])
+ for(var j=0;j<daylightC[i]['rDates'].length;j++)
+ component+='RDATE:'+daylightC[i]['rDates'][j]+'\r\n';
+ break;
+ default:
+ break;
+ }
+ }
+ component+='END:'+compName+'\r\n';
+ }
+ }
+ component+='END:VTIMEZONE\r\n';
+ }
+ return component;
+}
+
+function getOffsetByTZ(tZone, date,uid)
+{
+ var offset='+0000';
+ if(tZone in timezones && tZone!='UTC')
+ {
+ var objDayLight='', objStandard='';
+ var checkRule=true;
+
+ var daylightComponents=timezones[tZone].daylightComponents;
+ var actualDaylightComponent;
+ if(daylightComponents)
+ {
+ for(var i=0;i<daylightComponents.length;i++)
+ {
+ if(daylightComponents[i].dtStart.parseComnpactISO8601()>date)
+ continue;
+
+ if(checkRule && daylightComponents[i].startMonth) // is RRULE SET
+ {
+ objDayLight=daylightComponents[i];
+ actualDaylightComponent=getDateFromDay(objDayLight, date,false,uid);
+ break;
+ }
+ else
+ {
+ for(var j=0;j<daylightComponents[i].rDates.length; j++)
+ {
+ if(daylightComponents[i].rDates[j].parseComnpactISO8601()<date && (actualDaylightComponent==null || (date-daylightComponents[i].rDates[j].parseComnpactISO8601())<(date-actualDaylightComponent.startDate)))
+ {
+ objDayLight=daylightComponents[i];
+ actualDaylightComponent={offsetFrom:objDayLight.tzOffsetFROM, offsetTo: objDayLight.tzOffsetTO,startDate: daylightComponents[i].rDates[j].parseComnpactISO8601()};
+ }
+ }
+ }
+ checkRule=false;
+ }
+ }
+
+ var standardComponents=timezones[tZone].standardComponents;
+ var actualStandardComponent;
+ checkRule=true;
+ if(standardComponents)
+ {
+ for(var i=0;i<standardComponents.length;i++)
+ {
+ if(standardComponents[i].dtStart.parseComnpactISO8601()>date)
+ continue;
+
+ if(checkRule && standardComponents[i].startMonth) // is RRULE SET
+ {
+ objDayLight=standardComponents[i];
+ actualStandardComponent=getDateFromDay(objDayLight, date);
+ break;
+ }
+ else
+ {
+ for(var j=0;j<standardComponents[i].rDates.length; j++)
+ {
+ if(standardComponents[i].rDates[j].parseComnpactISO8601()<date && (actualStandardComponent==null || (date-standardComponents[i].rDates[j].parseComnpactISO8601())<(date-actualStandardComponent.startDate)))
+ {
+ objStandard=standardComponents[i];
+ actualStandardComponent={offsetFrom:objStandard.tzOffsetFROM, offsetTo: objStandard.tzOffsetTO,startDate: standardComponents[i].rDates[j].parseComnpactISO8601()};
+ }
+ }
+ }
+ checkRule=false;
+ }
+ }
+
+ if(actualDaylightComponent && actualStandardComponent)
+ {
+ if(actualDaylightComponent.startDate>actualStandardComponent.startDate)
+ offset=actualDaylightComponent.offsetTo;
+ else
+ offset=actualStandardComponent.offsetTo;
+ }
+ else if(actualDaylightComponent)
+ offset=actualDaylightComponent.offsetTo;
+ else if(actualStandardComponent)
+ offset=actualStandardComponent.offsetTo;
+ }
+ else if(tZone == 'local')
+ offset = getStringLocalOffset(date);
+ return offset;
+}
+
+function getStringLocalOffset(date)
+{
+ var offset = '+0000';
+ var localOffset = date.getTimezoneOffset();
+ if(localOffset>0)
+ {
+ var hours = Math.floor(localOffset/60);
+ var minutes = localOffset - hours*60;
+ offset = '-' + (hours<10 ? '0'+hours : hours);
+ offset += (minutes<10 ? '0'+minutes : minutes);
+ }
+ else if(localOffset<0)
+ {
+ localOffset = localOffset*-1;
+ var hours = Math.floor(localOffset/60);
+ var minutes = localOffset - hours*60;
+ offset = '+' + (hours<10 ? '0'+hours : hours);
+ offset += (minutes<10 ? '0'+minutes : minutes);
+ }
+
+ return offset;
+}
+
+function getDayLightObject(tzObject,t)
+{
+ var dayLightStartDate, dayLightEndDate, myDate=t;
+ dayLightStartDate=getDateFromDay(tzObject, t);
+ dayLightEndDate=getDateFromDay(tzObject, t);
+
+ for(var i=0;i<tzObject.rDatesDT.length;i++)
+ {
+ var dateDT=tzObject.rDatesDT[i].parseComnpactISO8601();
+ if(dateDT)
+ if(dateDT.getFullYear()==t.getFullYear())
+ {
+ dayLightStartDate=dateDT;
+ break;
+ }
+ }
+
+ for(var i=0;i<tzObject.rDatesST.length;i++)
+ {
+ var dateST=tzObject.rDatesST[i].parseComnpactISO8601();
+ if(dateST && dateST.getFullYear()==t.getFullYear())
+ {
+ dayLightEndDate=dateST;
+ break;
+ }
+ }
+
+ if(dayLightStartDate>dayLightEndDate)
+ {
+ if(myDate>dayLightStartDate)
+ dayLightEndDate.setFullYear(dayLightEndDate.getFullYear()+1);
+ else
+ dayLightStartDate.setFullYear(dayLightStartDate.getFullYear()-1);
+ }
+
+ return {dayLightStartDate : dayLightStartDate, dayLightEndDate: dayLightEndDate};
+}
+
+function deleteEventFromArray(uid)
+{
+ var rid=uid.substring(0, uid.lastIndexOf('/')+1);
+ var count=0;
+ if(globalEventList.displayEventsArray[rid]!=null && typeof globalEventList.displayEventsArray[rid] != 'undefined')
+ for(var i=globalEventList.displayEventsArray[rid].length-1;i>=0;i--)
+ if(globalEventList.displayEventsArray[rid][i].id==uid)
+ {
+ count++;
+ for(var o=0;o<globalEventList.displayEventsArray[rid][i].alertTimeOut.length;o++)
+ clearTimeout(globalEventList.displayEventsArray[rid][i].alertTimeOut[o]);
+ globalEventList.displayEventsArray[rid].splice(i, 1);
+ }
+ if(count==0)
+ if(globalEventList.displayTodosArray[rid]!=null && typeof globalEventList.displayTodosArray[rid] != 'undefined')
+ for(var i=globalEventList.displayTodosArray[rid].length-1;i>=0;i--)
+ if(globalEventList.displayTodosArray[rid][i].id==uid)
+ {
+ for(var o=0;o<globalEventList.displayTodosArray[rid][i].alertTimeOut.length;o++)
+ clearTimeout(globalEventList.displayTodosArray[rid][i].alertTimeOut[o]);
+ globalEventList.displayTodosArray[rid].splice(i, 1);
+ }
+}
+
+function findEventInArray(uid, isEvent,repeatHash)
+{
+ var rid=uid.substring(0, uid.lastIndexOf('/')+1);
+ var firstItem=null;
+ if(isEvent)
+ {
+ for(var i=0; i<globalEventList.displayEventsArray[rid].length;i++)
+ if(globalEventList.displayEventsArray[rid][i].id==uid)
+ return globalEventList.displayEventsArray[rid][i];
+ }
+ else
+ {
+ for(var i=0; i<globalEventList.displayTodosArray[rid].length;i++)
+ if(globalEventList.displayTodosArray[rid][i].id==uid)
+ {
+ if(typeof repeatHash=='undefined' || repeatHash==null)
+ return globalEventList.displayTodosArray[rid][i];
+ else if(globalEventList.displayTodosArray[rid][i].repeatHash==repeatHash)
+ return globalEventList.displayTodosArray[rid][i];
+ else if(firstItem==null)
+ firstItem=globalEventList.displayTodosArray[rid][i];
+ }
+ }
+ return firstItem || '';
+}
+
+function getvCalendarstart(inputEvent)
+{
+ var vcalendar_element='',
+ itsOK=false;
+ var vEvent=inputEvent.vcalendar;
+ if(vEvent.match(vCalendar.pre['vcalendar']))
+ {
+ vcalendar_element=vEvent.match(vCalendar.pre['beginVTODO']);
+ if(vcalendar_element!=null)
+ {
+ var endVT=vEvent.match(vCalendar.pre['endVTODO']);
+ if(endVT!=null)
+ return '1970-01-01T01:01:01Z';
+ return false;
+ }
+
+ vcalendar_element=vEvent.match(vCalendar.pre['beginVEVENT']);
+ if(vcalendar_element==null)
+ itsOK=false;
+ else
+ itsOK=true;
+
+ if(!itsOK)
+ return false;
+
+ vcalendar_element=vEvent.match(vCalendar.pre['endVEVENT']);
+
+ if(vcalendar_element==null)
+ itsOK=false;
+ else
+ itsOK=true;
+
+ if(!itsOK)
+ return false;
+
+ var oo='',
+ start='',
+ help1;
+
+ /*
+ vcalendar_element=vEvent.match(vCalendar.pre['tzone']);
+
+ if(vcalendar_element!=null)
+ vEvent=vEvent.replace(vcalendar_element[0],'');
+ */
+
+ //FIX
+ // var beginTimeZone=vEvent.indexOf('BEGIN:VTIMEZONE');
+ // var startEndTimeZone=vEvent.lastIndexOf('END:VTIMEZONE');
+ // var endTimeZone=0;
+
+ // if(beginTimeZone!=-1 && startEndTimeZone!=-1)
+ // {
+ // for(i=(startEndTimeZone+2);i<vEvent.length;i++)
+ // {
+ // if(vEvent.charAt(i)=='\n')
+ // {
+ // endTimeZone=i+1;
+ // break;
+ // }
+ // }
+ // vTimeZone=vEvent.substring(beginTimeZone, endTimeZone);
+ // vEvent=vEvent.substring(0, beginTimeZone)+vEvent.substring(endTimeZone, vEvent.length);
+ // }
+
+ vEvent = vEvent.replace(/BEGIN:VTIMEZONE((\s|.)*?)END:VTIMEZONE\r\n/g, '');
+
+ vcalendar_element=vEvent.match(vCalendar.pre['contentline_DTSTART']);
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ start=parsed[4];
+ help1=start;
+
+ if(help1.indexOf("T")==-1)
+ help1=help1.substring(0, 4)+'-'+help1.substring(4, 6)+'-'+help1.substring(6, 8)+'T00:00:00Z';
+ else
+ help1=help1.substring(0, 4)+'-'+help1.substring(4, 6)+'-'+help1.substring(6, 8)+'T'+help1.substring(9, 11)+':'+help1.substring(11, 13)+':'+help1.substring(13, 15)+'Z';
+
+ start=help1;
+ }
+
+ if(start!='')
+ {
+ var t=$.fullCalendar.parseDate(help1);
+
+ if((t.toString())=='Invalid Date')
+ return false;
+ }
+ return help1;
+ }
+ else
+ return -1;
+}
+function giveMeUntilDate(start, count, frequency, interval, allDay)
+{
+ var varDate=$.fullCalendar.parseDate(start);
+ var monthPlus=0,
+ dayPlus=0;
+ if(frequency=="DAILY")
+ {
+ monthPlus=0,
+ dayPlus=1;
+ }
+ else if(frequency=="WEEKLY")
+ {
+ monthPlus=0,
+ dayPlus=7;
+ }
+ else if(frequency=="MONTHLY")
+ {
+ monthPlus=1,
+ dayPlus=0;
+ }
+ else if(frequency=="YEARLY")
+ {
+ monthPlus=12,
+ dayPlus=0;
+ }
+ var iterator=1, counter=1;
+ while(iterator<count)
+ {
+ if(counter%interval==0)
+ iterator++;
+
+ if(allDay)
+ var td=new Date(varDate.getFullYear(), varDate.getMonth()+monthPlus, varDate.getDate()+dayPlus);
+ else
+ var td=new Date(varDate.getFullYear(), varDate.getMonth()+monthPlus, varDate.getDate()+dayPlus, varDate.getHours(), varDate.getMinutes(), varDate.getSeconds());
+
+ varDate=td;
+ counter++;
+ }
+ return varDate;
+}
+
+function checkAndFixMultipleUID(vcalendar, isEvent)
+{
+ var vcalendarOrig = vcalendar;
+ var uidArray={};
+ var uidC=0;
+ var eventStringArray=new Array();
+ var componentS = 'VEVENT';
+ if(!isEvent)
+ componentS='VTODO';
+ var checkVcalendar = vcalendarOrig;
+ var valarm=checkVcalendar.match(vCalendar.pre['valarm']);
+ if(valarm!=null)
+ checkVcalendar=checkVcalendar.replace(valarm[0], '');
+ while(checkVcalendar.match(vCalendar.pre['contentline_UID'])!= null)
+ {
+ vcalendar_element=checkVcalendar.match(vCalendar.pre['contentline_UID']);
+ if(vcalendar_element[0]!=null)
+ {
+ if(typeof uidArray[vcalendar_element[0]]=='undefined')
+ {
+ uidArray[vcalendar_element[0]]={isTimezone:false, string:''};
+ uidC++;
+ }
+ }
+ checkVcalendar=checkVcalendar.replace(vcalendar_element[0], '\r\n');
+ }
+ if(uidC==1)
+ return [vcalendar];
+ var beginTimeZone=vcalendarOrig.indexOf('BEGIN:VTIMEZONE');
+ var startEndTimeZone=vcalendarOrig.lastIndexOf('END:VTIMEZONE');
+ var endTimeZone=0;
+ var vTimeZone='';
+ if(beginTimeZone!=-1 && startEndTimeZone!=-1)
+ {
+ for(i=(startEndTimeZone+2);i<vcalendarOrig.length;i++)
+ {
+ if(vcalendarOrig.charAt(i)=='\n')
+ {
+ endTimeZone=i+1;
+ break;
+ }
+ }
+ vTimeZone=vcalendarOrig.substring(beginTimeZone, endTimeZone);
+ vcalendarOrig=vcalendarOrig.substring(0, beginTimeZone)+vcalendarOrig.substring(endTimeZone, vcalendarOrig.length);
+ }
+ while(vcalendarOrig.match(vCalendar.pre[componentS.toLowerCase()])!=null)
+ {
+ if(vcalendarOrig.substring(vcalendarOrig.indexOf('BEGIN:'+componentS)-2, vcalendarOrig.indexOf('BEGIN:'+componentS))=='\r\n')
+ {
+ var partEvent=vcalendarOrig.substring(vcalendarOrig.indexOf('BEGIN:'+componentS)-2,vcalendarOrig.indexOf('END:'+componentS)+('END:'+componentS).length);
+ vcalendarOrig=vcalendarOrig.replace(partEvent, '');
+ }
+ else
+ {
+ var partEvent=vcalendarOrig.substring(vcalendarOrig.indexOf('BEGIN:'+componentS),vcalendarOrig.indexOf('END:'+componentS)+('END:'+componentS).length);
+ vcalendarOrig=vcalendarOrig.replace(partEvent, '');
+ partEvent+='\r\n';
+ }
+ var tmpEvent = partEvent;
+ var valarm=tmpEvent.match(vCalendar.pre['valarm']);
+ if(valarm!=null)
+ tmpEvent=tmpEvent.replace(valarm[0], '');
+ vcalendar_element=tmpEvent.match(vCalendar.pre['contentline_UID']);
+ if(vcalendar_element[0]!=null)
+ {
+ var vcalendar_element_start=tmpEvent.match(vCalendar.pre['contentline_DTSTART']);
+ if(vcalendar_element_start!=null)
+ {
+ var parsed=vcalendar_element_start[0].match(vCalendar.pre['contentline_parse']);
+
+ var pars=vcalendarSplitParam(parsed[3]);
+ if(pars.indexElementOf('TZID=')!=-1)
+ uidArray[vcalendar_element[0]].isTimezone=true;
+ }
+ if(!isEvent && !uidArray[vcalendar_element[0]].isTimezone)
+ {
+ var vcalendar_element_start=tmpEvent.match(vCalendar.pre['contentline_DUE']);
+ if(vcalendar_element_start!=null)
+ {
+ var parsed=vcalendar_element_start[0].match(vCalendar.pre['contentline_parse']);
+
+ var pars=vcalendarSplitParam(parsed[3]);
+ if(pars.indexElementOf('TZID=')!=-1)
+ uidArray[vcalendar_element[0]].isTimezone=true;
+ }
+ }
+ uidArray[vcalendar_element[0]].string+=partEvent;
+ }
+ }
+ for(var uid in uidArray)
+ {
+ var vcalendarS = '';
+ // vEvent BEGIN (required by RFC)
+ if(vCalendar.tplM['begin']!=null && (process_elem=vCalendar.tplM['begin'][0])!=undefined)
+ vcalendarS+=vCalendar.tplM['begin'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['begin'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ vcalendarS+=process_elem;
+ }
+
+ // VERSION (required by RFC)
+ if(vCalendar.tplM['contentline_VERSION']!=null && (process_elem=vCalendar.tplM['contentline_VERSION'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_VERSION'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##version##:::##', '2.0');
+ vcalendarS+=process_elem;
+
+ // CALSCALE
+ if(vCalendar.tplM['contentline_CALSCALE']!=null && (process_elem=vCalendar.tplM['contentline_CALSCALE'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_CALSCALE'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##calscale##:::##', 'GREGORIAN');
+ vcalendarS+=process_elem;
+ if(uidArray[uid].isTimezone)
+ vcalendarS+=vTimeZone;
+ vcalendarS=vcalendarS.substring(0, vcalendarS.length-2);
+ vcalendarS+=uidArray[uid].string;
+ if(vcalendarS.lastIndexOf('\r\n')!=(vcalendarS.length-2))
+ vcalendarS+='\r\n';
+ // PRODID
+ if(vCalendar.tplM['contentline_PRODID']!=null && (process_elem=vCalendar.tplM['contentline_PRODID'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_PRODID'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', '-//Inf-IT//'+globalAppName+' '+globalVersion+'//EN');
+ vcalendarS+=process_elem;
+
+ if(typeof vCalendar.tplM['unprocessed']!='undefined' && vCalendar.tplM['unprocessed']!='' && vCalendar.tplM['unprocessed']!=null)
+ vcalendarS+=vCalendar.tplM['unprocessed'].replace(RegExp('^\r\n'), '');
+
+ vCalendar.tplM['unprocessed']=new Array();
+ // vCalendar END (required by RFC)
+
+ if(vCalendar.tplM['end']!=null && (process_elem=vCalendar.tplM['end'][0])!=undefined)
+ vcalendarS+=vCalendar.tplM['end'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['end'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ vcalendarS+=process_elem;
+ }
+ eventStringArray.push(vcalendarS);
+ }
+ return eventStringArray;
+}
+function dataToVcalendar(operation, accountUID, inputUID, inputEtag, delUID,isFormHidden, deleteMode)
+{
+ var vevent=false,
+ vCalendarText='',
+ groupCounter=0;
+ var sel_option='local';
+
+ // vEvent BEGIN (required by RFC)
+ if(vCalendar.tplM['begin']!=null && (process_elem=vCalendar.tplM['begin'][0])!=undefined)
+ vCalendarText+=vCalendar.tplM['begin'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['begin'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ vCalendarText+=process_elem;
+ }
+
+ // VERSION (required by RFC)
+ if(vCalendar.tplM['contentline_VERSION']!=null && (process_elem=vCalendar.tplM['contentline_VERSION'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_VERSION'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##version##:::##', '2.0');
+ vCalendarText+=process_elem;
+
+ // CALSCALE
+ if(vCalendar.tplM['contentline_CALSCALE']!=null && (process_elem=vCalendar.tplM['contentline_CALSCALE'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_CALSCALE'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##calscale##:::##', 'GREGORIAN');
+ vCalendarText+=process_elem;
+
+ if(delUID!='')
+ var rid=delUID.substring(0, delUID.lastIndexOf('/')+1);
+ else
+ var rid=inputUID.substring(0, inputUID.lastIndexOf('/')+1);
+ var inputEvents=jQuery.grep(globalEventList.displayEventsArray[rid],function(e){if(e.id==$('#uid').val() && (e.repeatCount<2 || !e.repeatCount))return true});
+
+ var tzArray=new Array();
+ var tzString='';
+ var isTimeZone=false;
+
+ var origVcalendarString='';
+ var eventStringArray=new Array();
+ if(inputEvents.length>0)
+ {
+ var rid=$('#uid').val().substring(0, $('#uid').val().lastIndexOf('/')+1);
+ if(rid)
+ if(globalEventList.events[rid][$('#uid').val()].uid!=undefined)
+ origVcalendarString=globalEventList.events[rid][$('#uid').val()].vcalendar;
+ while(origVcalendarString.match(vCalendar.pre['vevent'])!=null)
+ {
+ if(origVcalendarString.substring(origVcalendarString.indexOf('BEGIN:VEVENT')-2, origVcalendarString.indexOf('BEGIN:VEVENT'))=='\r\n')
+ {
+ var partEvent=origVcalendarString.substring(origVcalendarString.indexOf('BEGIN:VEVENT')-2,origVcalendarString.indexOf('END:VEVENT')+'END:VEVENT'.length);
+ origVcalendarString=origVcalendarString.replace(partEvent, '');
+ }
+ else
+ {
+ var partEvent=origVcalendarString.substring(origVcalendarString.indexOf('BEGIN:VEVENT'),origVcalendarString.indexOf('END:VEVENT')+'END:VEVENT'.length);
+ origVcalendarString=origVcalendarString.replace(partEvent, '');
+ partEvent+='\r\n';
+ }
+ eventStringArray[eventStringArray.length]=partEvent;
+ }
+ }
+ var origTimezone = '';
+ for(var iE=0;iE<inputEvents.length;iE++)
+ {
+ if(tzArray.indexOf(inputEvents[iE].timeZone)==-1)
+ {
+ if(inputEvents[iE].allDay ||(deleteMode && ($('#vcalendarHash').val()==hex_sha256(inputEvents[iE].vcalendar))))
+ continue;
+ var component=buildTimezoneComponent(inputEvents[iE].timeZone);
+ if(component!='' && ($('#vcalendarHash').val()!=hex_sha256(inputEvents[iE].vcalendar)))
+ {
+ tzArray[tzArray.length]=inputEvents[iE].timeZone;
+ tzString+=component;
+ if(tzString.lastIndexOf('\r\n')!=(tzString.length-2))
+ tzString+='\r\n';
+ isTimeZone=true;
+ }
+ else if(component!='' && $('#vcalendarHash').val()==hex_sha256(inputEvents[iE].vcalendar))
+ origTimezone+=component;
+ }
+ }
+ if(isTimeZone)
+ {
+ if(vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2))
+ vCalendarText+='\r\n';
+ vCalendarText+=tzString;
+ }
+ var beginVcalendar = vCalendarText;
+ var realEvent='';
+ var futureMode = false;
+ for(var j=0;j<inputEvents.length;j++)
+ {
+ eventStringArray.splice(eventStringArray.indexOf(inputEvents[j].vcalendar),1);
+ if(($('#futureStart').val()== '' && $('#vcalendarHash').val()!=hex_sha256(inputEvents[j].vcalendar)) || inputEvents[j].rec_id!=$('#recurrenceID').val())
+ {
+ var stringUIDcurrent=inputEvents[j].vcalendar.match(vCalendar.pre['contentline_UID']);
+ if(stringUIDcurrent!=null)
+ stringUIDcurrent=stringUIDcurrent[0].match(vCalendar.pre['contentline_parse'])[4];
+
+ if((deleteMode && $('#vcalendarHash').val()==hex_sha256(inputEvents[j].vcalendar)) || (deleteMode && !inputEvents[j].rec_id && $('#vcalendarUID').val()==stringUIDcurrent))
+ {
+ var ruleString=inputEvents[j].vcalendar.match(vCalendar.pre['contentline_RRULE2']);
+ var origRuleString=ruleString;
+ var exDate=inputEvents[j].start;
+ var process_elem=vCalendar.tplC['contentline_EXDATE'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ if(inputEvents[j].allDay)
+ {
+ exDate=$('#recurrenceID').val();
+ process_elem=process_elem.replace('##:::##AllDay##:::##', ';'+vcalendarEscapeValue('VALUE=DATE'));
+ process_elem=process_elem.replace('##:::##TZID##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(exDate));
+ }
+ else
+ {
+ exDate=$('#recurrenceID').val().parseComnpactISO8601();
+ if(!$('#allday').prop('checked'))
+ if(globalSettings.timezonesupport.value)
+ sel_option=$('#timezone').val();
+
+ if(sel_option!='local')
+ {
+ var valOffsetFrom=getOffsetByTZ(sel_option, exDate);
+ var intOffset = valOffsetFrom.getSecondsFromOffset()*-1;
+ exDate = new Date(exDate.setSeconds(intOffset));
+ }
+ else
+ exDate=new Date(exDate.setSeconds(getLocalOffset(exDate)));
+
+ exDate=$.fullCalendar.formatDate(exDate, "yyyyMMdd'T'HHmmss'Z'");
+ process_elem=process_elem.replace('##:::##AllDay##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##TZID##:::##','');
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(exDate));
+ }
+ inputEvents[j].vcalendar=inputEvents[j].vcalendar.replace(ruleString,ruleString+process_elem);
+ }
+ if(inputEvents[j].vcalendar.indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2))
+ vCalendarText+=inputEvents[j].vcalendar.substring(2,inputEvents[j].vcalendar.length);
+ else if((inputEvents[j].vcalendar.indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2)) || (inputEvents[j].vcalendar.indexOf('\r\n')!=0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2)) )
+ vCalendarText+=inputEvents[j].vcalendar;
+ else
+ vCalendarText+='\r\n'+inputEvents[j].vcalendar;
+ }
+ else if($('#futureStart').val().split(';')[0]!='' && $('#futureStart').val().split(';')[1]!=inputEvents[j].start)
+ {
+ if($('#futureStart').val().split(';')[0]>1 && $('#vcalendarHash').val()==hex_sha256(inputEvents[j].vcalendar))
+ inputEvents[j].vcalendar=changeRuleForFuture(inputEvents[j], $('#futureStart').val().split(';')[0]);
+
+ if(inputEvents[j].vcalendar.indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2))
+ vCalendarText+=inputEvents[j].vcalendar.substring(2,inputEvents[j].vcalendar.length);
+ else if((inputEvents[j].vcalendar.indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2)) || (inputEvents[j].vcalendar.indexOf('\r\n')!=0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2)) )
+ vCalendarText+=inputEvents[j].vcalendar;
+ else
+ vCalendarText+='\r\n'+inputEvents[j].vcalendar;
+ futureMode=true;
+ }
+ else if(deleteMode && $('#futureStart').val().split(';')[0]!='' && $('#futureStart').val().split(';')[1]==inputEvents[j].start)
+ {
+ if($('#vcalendarHash').val()==hex_sha256(inputEvents[j].vcalendar))
+ {
+ inputEvents[j].vcalendar=changeRuleForFuture(inputEvents[j], 2);
+ }
+
+ if(inputEvents[j].vcalendar.indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2))
+ vCalendarText+=inputEvents[j].vcalendar.substring(2,inputEvents[j].vcalendar.length);
+ else if((inputEvents[j].vcalendar.indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2)) || (inputEvents[j].vcalendar.indexOf('\r\n')!=0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2)) )
+ vCalendarText+=inputEvents[j].vcalendar;
+ else
+ vCalendarText+='\r\n'+inputEvents[j].vcalendar;
+ }
+ else
+ {
+ realEvent=inputEvents[j];
+ }
+ }
+ vCalendarText=vCalendarText.replace(realEvent.vcalendar,'');
+ for(var ip=0; ip<eventStringArray.length;ip++)
+ {
+ if(eventStringArray[ip].indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2))
+ vCalendarText+=eventStringArray[ip].substring(2,eventStringArray[ip].length);
+ else if((eventStringArray[ip].indexOf('\r\n')==0 && vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2)) || (eventStringArray[ip].indexOf('\r\n')!=0 && vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2)) )
+ vCalendarText+=eventStringArray[ip];
+ else
+ vCalendarText+='\r\n'+eventStringArray[ip];
+ }
+ var origEvent = '';
+ if(deleteMode || futureMode)
+ {
+ if(vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2))
+ vCalendarText+='\r\n';
+ if(!isTimeZone && futureMode && origTimezone!='')
+ {
+ vCalendarText+=origTimezone;
+ if(vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2))
+ vCalendarText+='\r\n';
+ }
+
+ // PRODID
+ if(vCalendar.tplM['contentline_PRODID']!=null && (process_elem=vCalendar.tplM['contentline_PRODID'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_PRODID'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', '-//Inf-IT//'+globalAppName+' '+globalVersion+'//EN');
+ vCalendarText+=process_elem;
+
+ if((typeof vCalendar.tplM['unprocessed']!='undefined') && (vCalendar.tplM['unprocessed']!='') && (vCalendar.tplM['unprocessed']!=null))
+ vCalendarText+=vCalendar.tplM['unprocessed'].replace(RegExp('^\r\n'), '');
+
+ vCalendar.tplM['unprocessed']=new Array();
+ // vCalendar END (required by RFC)
+
+ if(vCalendar.tplM['end']!=null && (process_elem=vCalendar.tplM['end'][0])!=undefined)
+ vCalendarText+=vCalendar.tplM['end'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['end'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ vCalendarText+=process_elem;
+ }
+ if(deleteMode)
+ {
+ var fixedArr = checkAndFixMultipleUID(vCalendarText,true);
+ var inputS = fixedArr[0];
+ fixedArr.splice(0,1);
+ return putVcalendarToCollection(accountUID, inputUID, inputEtag, inputS, delUID,'vevent',isFormHidden,deleteMode,fixedArr);
+ }
+ else if(futureMode)
+ {
+ origEvent = vCalendarText;
+ vCalendarText = beginVcalendar;
+ }
+ }
+
+ var timeZoneAttr='';
+ if(typeof globalSessionTimeZone!='undefined' && globalSessionTimeZone)
+ sel_option=globalSessionTimeZone;
+ var isUTC=false;
+
+ if(!$('#allday').prop('checked'))
+ {
+ if(globalSettings.timezonesupport.value)
+ sel_option=$('#timezone').val();
+ //else
+ //{
+ // if(inputEvents.length>0)
+ // sel_option=inputEvents[0].timeZone;
+ //}
+
+ if(sel_option=='UTC')
+ {
+ isUTC=true;
+ timeZoneAttr='';
+ }
+ else if(sel_option=='local')
+ timeZoneAttr='';
+ else if(sel_option=='custom')
+ timeZoneAttr=';'+vcalendarEscapeValue('TZID='+realEvent.timeZone);
+ else
+ timeZoneAttr=';'+vcalendarEscapeValue('TZID='+sel_option);
+
+ var timezoneComponent='';
+ if(globalSettings.rewritetimezonecomponent.value || !vCalendar.tplM['unprocessedVTIMEZONE'])
+ {
+ if(tzArray.indexOf(sel_option)==-1)
+ timezoneComponent=buildTimezoneComponent(sel_option);
+ }
+ else
+ timezoneComponent=vCalendar.tplM['unprocessedVTIMEZONE'];
+
+ if(vCalendarText.lastIndexOf('\r\n')!=(vCalendarText.length-2))
+ vCalendarText+='\r\n';
+
+ vCalendarText+=timezoneComponent;
+ }
+ // ---------------------------------- EVENT ---------------------------------- //
+ if(vCalendar.tplM['beginVEVENT']!=null && (process_elem=vCalendar.tplM['beginVEVENT'][0])!=undefined)
+ {
+ if(vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2))
+ vCalendarText+=vCalendar.tplM['beginVEVENT'][0];
+ else
+ vCalendarText+='\r\n'+vCalendar.tplM['beginVEVENT'][0];
+ vevent=true;
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['beginVEVENT'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+
+ if(vCalendarText.lastIndexOf('\r\n')==(vCalendarText.length-2))
+ vCalendarText+=process_elem;
+ else
+ vCalendarText+='\r\n'+process_elem;
+ vevent=true;
+ }
+
+ var d,
+ utc,
+ d=new Date();
+
+ utc=d.getUTCFullYear()+(d.getUTCMonth()+1<10 ? '0' : '')+(d.getUTCMonth()+1)+(d.getUTCDate()<10 ? '0' : '')+d.getUTCDate()+'T'+(d.getUTCHours()<10 ? '0' : '')+d.getUTCHours()+(d.getUTCMinutes()<10 ? '0' : '')+d.getUTCMinutes()+(d.getUTCSeconds()<10 ? '0' : '')+d.getUTCSeconds()+'Z';
+ var create=true;
+
+ if($('#recurrenceID').val()=='')
+ var checkVal='orig';
+ else
+ var checkVal=$('#recurrenceID').val();
+
+ var created='';
+ for(vev in vCalendar.tplM['contentline_CREATED'])
+ {
+ if(vev==checkVal)
+ created=vCalendar.tplM['contentline_CREATED'][vev];
+ }
+ if(created!='')
+ {
+ process_elem=created;
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_CREATED'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(utc));
+ }
+ vCalendarText+=process_elem;
+
+ if(vCalendar.tplM['contentline_LM']!=null && (process_elem=vCalendar.tplM['contentline_LM'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_LM'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(utc));
+ vCalendarText+=process_elem;
+
+ if(vCalendar.tplM['contentline_DTSTAMP']!=null && (process_elem=vCalendar.tplM['contentline_DTSTAMP'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_DTSTAMP'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(utc));
+ vCalendarText+=process_elem;
+
+ // UID (required by RFC)
+ if($('#futureStart').val()=='' && (operation!='MOVE_IN'&& operation!='MOVE_OTHER') && (vCalendar.tplM['contentline_UID']!=null && (process_elem=vCalendar.tplM['contentline_UID'][0])!=undefined))
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_UID'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ // it is VERY small probability, that for 2 newly created vevents/vtodos the same UID is generated (but not impossible :( ...)
+ var newUID=globalEventList.getNewUID();
+ process_elem=process_elem.replace('##:::##uid##:::##', newUID);
+ }
+ vCalendarText+=process_elem;
+
+ if(vCalendar.tplM['contentline_SUMMARY']!=null && (process_elem=vCalendar.tplM['contentline_SUMMARY'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_SUMMARY'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue($('#name').val()));
+ //process_elem=process_elem.replace('##:::##value##:::##',vcalendarEscapeValue('zmena'));
+ vCalendarText+=process_elem;
+
+ if($('#priority').val()!='0')
+ {
+ if(vCalendar.tplM['contentline_PRIORITY']!=null && (process_elem=vCalendar.tplM['contentline_PRIORITY'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_PRIORITY'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue($('#priority').val()));
+ vCalendarText+=process_elem;
+ }
+
+ if(vevent)
+ {
+ if($('#repeat').val()!='no-repeat')
+ {
+ var interval=$("#repeat_interval_detail").val();
+ var byDay='';
+ var monthDay='';
+ var bymonth='';
+ var wkst='';
+ var isCustom=false;
+ if(interval==1 || interval=='')
+ interval='';
+ else interval=";INTERVAL="+$("#repeat_interval_detail").val();
+
+ var frequency=$('#repeat').val();
+ if(frequency=='TWO_WEEKLY')
+ {
+ frequency='WEEKLY';
+ interval=";INTERVAL="+2;
+ }
+ else if(frequency=='BUSINESS')
+ {
+ frequency='WEEKLY';
+ byDay=';BYDAY=';
+ if(globalSettings.weekenddays.value.length>0)
+ {
+ for(var i=0;i<7;i++)
+ if(globalSettings.weekenddays.value.indexOf(i)==-1)
+ byDay+=i+',';
+ byDay=byDay.substring(0,byDay.length-1);
+ byDay=byDay.replace(1,'MO').replace(2,'TU').replace(3,'WE').replace(4,'TH').replace(5,'FR').replace(6,'SA').replace(0,'SU');
+ }
+ else
+ {
+ byDay='SA,SU';
+ }
+ interval='';
+ }
+ else if(frequency=='WEEKEND')
+ {
+ frequency='WEEKLY';
+ byDay=';BYDAY=';
+ if(globalSettings.weekenddays.value.length>0)
+ {
+ for(var i=0;i<globalSettings.weekenddays.value.length;i++)
+ byDay+=globalSettings.weekenddays.value[i]+',';
+ byDay=byDay.substring(0,byDay.length-1);
+ byDay=byDay.replace(1,'MO').replace(2,'TU').replace(3,'WE').replace(4,'TH').replace(5,'FR').replace(6,'SA').replace(0,'SU');
+ }
+ else
+ {
+ byDay='SA,SU';
+ }
+ interval='';
+ }
+ else if(frequency=='CUSTOM_WEEKLY')
+ {
+ frequency='WEEKLY';
+ var byDayArray=$('#week_custom .customTable td.selected');
+ if(byDayArray.length>0)
+ {
+ byDay=';BYDAY=';
+ for(var ri=0;ri<byDayArray.length;ri++)
+ byDay+=$(byDayArray[ri]).attr('data-type')+',';
+ byDay=byDay.substring(0,byDay.length-1);
+
+ byDay=byDay.replace(1,'MO').replace(2,'TU').replace(3,'WE').replace(4,'TH').replace(5,'FR').replace(6,'SA').replace(0,'SU');
+ if(globalSettings.mozillasupport.value==null || !globalSettings.mozillasupport.value)
+ if(realEvent!='')
+ {
+ if(realEvent.wkst!='')
+ wkst=';WKST='+realEvent.wkst.replace(1,'MO').replace(2,'TU').replace(3,'WE').replace(4,'TH').replace(5,'FR').replace(6,'SA').replace(0,'SU');
+ }
+ else
+ wkst=';WKST='+globalSettings.datepickerfirstdayofweek.value.toString().replace(1,'MO').replace(2,'TU').replace(3,'WE').replace(4,'TH').replace(5,'FR').replace(6,'SA').replace(0,'SU');
+ }
+ }
+ else if(frequency=='CUSTOM_MONTHLY')
+ {
+ frequency='MONTHLY';
+ var byDayFirstPart='';
+ var monthCustomOption = $('#repeat_month_custom_select').val();
+ if(monthCustomOption!='custom' && $('#repeat_month_custom_select2').val()!='DAY')
+ {
+ if(monthCustomOption!='')
+ byDay=';BYDAY=';
+ switch(monthCustomOption)
+ {
+ case 'every':
+ byDayFirstPart='';
+ break;
+ case 'first':
+ byDayFirstPart='1';
+ break;
+ case 'second':
+ byDayFirstPart='2';
+ break;
+ case 'third':
+ byDayFirstPart='3';
+ break;
+ case 'fourth':
+ byDayFirstPart='4';
+ break;
+ case 'fifth':
+ byDayFirstPart='5';
+ break;
+ case 'last':
+ byDayFirstPart='-1';
+ break;
+ default:
+ byDayFirstPart='';
+ break;
+ }
+ byDay+= byDayFirstPart+$('#repeat_month_custom_select2').val();
+ }
+ else if(monthCustomOption!='custom' && $('#repeat_month_custom_select2').val()=='DAY')
+ {
+ byDay='';
+ switch(monthCustomOption)
+ {
+ case 'every':
+ monthDay=';BYMONTHDAY=';
+ for(var p=1;p<32;p++)
+ monthDay+=p+',';
+ monthDay=monthDay.substring(0,monthDay.length-1);
+ break;
+ case 'first':
+ monthDay=';BYMONTHDAY=1';
+ break;
+ case 'second':
+ monthDay=';BYMONTHDAY=2';
+ break;
+ case 'third':
+ monthDay=';BYMONTHDAY=3';
+ break;
+ case 'fourth':
+ monthDay=';BYMONTHDAY=4';
+ break;
+ case 'fifth':
+ monthDay=';BYMONTHDAY=5';
+ break;
+ case 'last':
+ monthDay=';BYMONTHDAY=-1';
+ break;
+ default:
+ byDayFirstPart='';
+ monthDay='';
+ break;
+ }
+ }
+ else
+ {
+ var monthDayArray = $('#month_custom2 .selected');
+ if(monthDayArray.length>0)
+ {
+ monthDay=';BYMONTHDAY=';
+ for(var ri=0;ri<monthDayArray.length;ri++)
+ monthDay+=$(monthDayArray[ri]).attr('data-type')+',';
+ monthDay=monthDay.substring(0,monthDay.length-1);
+ }
+ }
+ }
+ else if(frequency=='CUSTOM_YEARLY')
+ {
+ frequency='YEARLY';
+ var byDayFirstPart='';
+ var monthCustomOption = $('#repeat_year_custom_select1').val();
+
+ var monthArray = $('#year_custom3 .selected');
+ if(monthArray.length>0)
+ {
+ bymonth=';BYMONTH=';
+ for(var ri=0;ri<monthArray.length;ri++)
+ {
+ var val = parseInt($(monthArray[ri]).attr('data-type'),10);
+ if(!isNaN(val))
+ bymonth+=(val+1)+',';
+ }
+ bymonth=bymonth.substring(0,bymonth.length-1);
+ }
+
+ if(monthCustomOption!='custom' && $('#repeat_year_custom_select2').val()!='DAY')
+ {
+ if(monthCustomOption!='')
+ byDay=';BYDAY=';
+ switch(monthCustomOption)
+ {
+ case 'every':
+ byDayFirstPart='';
+ break;
+ case 'first':
+ byDayFirstPart='1';
+ break;
+ case 'second':
+ byDayFirstPart='2';
+ break;
+ case 'third':
+ byDayFirstPart='3';
+ break;
+ case 'fourth':
+ byDayFirstPart='4';
+ break;
+ case 'fifth':
+ byDayFirstPart='5';
+ break;
+ case 'last':
+ byDayFirstPart='-1';
+ break;
+ default:
+ byDayFirstPart='';
+ break;
+ }
+ byDay+= byDayFirstPart+$('#repeat_year_custom_select2').val();
+ }
+ else if(monthCustomOption!='custom' && $('#repeat_year_custom_select2').val()=='DAY')
+ {
+ byDay='';
+ switch(monthCustomOption)
+ {
+ case 'every':
+ monthDay=';BYMONTHDAY=';
+ for(var p=1;p<32;p++)
+ monthDay+=p+',';
+ monthDay=monthDay.substring(0,monthDay.length-1);
+ break;
+ case 'first':
+ monthDay=';BYMONTHDAY=1';
+ break;
+ case 'second':
+ monthDay=';BYMONTHDAY=2';
+ break;
+ case 'third':
+ monthDay=';BYMONTHDAY=3';
+ break;
+ case 'fourth':
+ monthDay=';BYMONTHDAY=4';
+ break;
+ case 'fifth':
+ monthDay=';BYMONTHDAY=5';
+ break;
+ case 'last':
+ monthDay=';BYMONTHDAY=-1';
+ break;
+ default:
+ byDayFirstPart='';
+ monthDay='';
+ break;
+ }
+ }
+ else
+ {
+ var monthDayArray = $('#year_custom1 .selected');
+ if(monthDayArray.length>0)
+ {
+ monthDay=';BYMONTHDAY=';
+ for(var ri=0;ri<monthDayArray.length;ri++)
+ monthDay+=$(monthDayArray[ri]).attr('data-type')+',';
+ monthDay=monthDay.substring(0,monthDay.length-1);
+ }
+ }
+ }
+ else if($('#repeat option:selected').attr('data-type')=="custom_repeat")
+ isCustom=true;
+
+ if(vCalendar.tplM['contentline_RRULE']!=null && (process_elem=vCalendar.tplM['contentline_RRULE'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_RRULE'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+
+ if(!isCustom)
+ {
+ if($('#repeat_end_details').val()=="on_date")
+ {
+ var dateUntil=$.datepicker.parseDate(globalSettings.datepickerformat.value, $('#repeat_end_date').val());
+ var datetime_until='';
+ if(!$('#allday').prop('checked'))
+ {
+ var tForR=new Date(Date.parse("01/02/1990, "+$('#time_from').val() ));
+ dateUntil.setHours(tForR.getHours());
+ dateUntil.setMinutes(tForR.getMinutes());
+ dateUntil.setSeconds(tForR.getSeconds());
+ if(globalSettings.timezonesupport.value && sel_option in timezones)
+ var valOffsetFrom=getOffsetByTZ(sel_option, dateUntil);
+ if(valOffsetFrom)
+ {
+ var intOffset=valOffsetFrom.getSecondsFromOffset()*1000*-1;
+ dateUntil.setTime(dateUntil.getTime()+intOffset);
+ }
+ datetime_until=$.fullCalendar.formatDate(dateUntil, "yyyyMMdd'T'HHmmss'Z'");
+ }
+ else
+ datetime_until=$.fullCalendar.formatDate(dateUntil, 'yyyyMMdd')+'T000000Z';
+
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue("FREQ="+frequency)+interval+";UNTIL="+datetime_until+bymonth+monthDay+byDay+wkst);
+ }
+ else if($('#repeat_end_details').val()=="after")
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue("FREQ="+frequency)+interval+";COUNT="+(parseInt($('#repeat_end_after').val()))+bymonth+monthDay+byDay+wkst);
+ else
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue("FREQ="+frequency)+interval+bymonth+monthDay+byDay+wkst);
+ }
+ else
+ process_elem=process_elem.replace('##:::##value##:::##',$('#repeat').val());
+
+ vCalendarText+=process_elem;
+
+ if(realEvent.repeatStart)
+ {
+ var a=$.datepicker.parseDate(globalSettings.datepickerformat.value, $('#date_from').val());
+ var repeatStart=realEvent.repeatStart;
+ var b=new Date(1970,1,1,0,0,0);
+ if(!$('#allday').prop('checked'))
+ {
+ b=new Date(Date.parse("01/02/1990, "+$('#time_from').val() ));
+ a.setHours(b.getHours());
+ a.setMinutes(b.getMinutes());
+ a.setSeconds(b.getSeconds());
+ }
+ var offsetDate=a-repeatStart;
+
+ for(var iter in vCalendar.tplM['contentline_EXDATE'])
+ {
+ if(isNaN(iter))
+ continue;
+
+ var exStr=('\r\n'+vCalendar.tplM['contentline_EXDATE'][iter]).match(vCalendar.pre['contentline_parse']);
+ var exVal=exStr[4].parseComnpactISO8601();
+ if(exVal)
+ {
+ if(exStr[4].indexOf('T')==-1 && !$('#allday').prop('checked'))
+ {
+ //HERE
+ var timePart = new Date(Date.parse("01/02/1990, "+$('#time_from').val() ));
+ var time_from = $.fullCalendar.formatDate(b, 'HHmmss');
+ exVal = (exStr[4] + 'T' + time_from).parseComnpactISO8601();
+ if(sel_option!='local')
+ {
+ var valOffsetFrom=getOffsetByTZ(sel_option, exVal);
+ var intOffset = valOffsetFrom.getSecondsFromOffset()*-1;
+ exVal = new Date(exVal.setSeconds(intOffset));
+ }
+ }
+ else if(exStr[4].indexOf('T')!=-1 && !$('#allday').prop('checked'))
+ {
+ if(sel_option!='local')
+ {
+ var valOffsetFrom=getOffsetByTZ(sel_option, exVal);
+ var origValOffset = getOffsetByTZ(realEvent.timeZone, exVal);
+ var intOffset = (valOffsetFrom.getSecondsFromOffset() - origValOffset.getSecondsFromOffset())*-1;
+ exVal = new Date(exVal.setSeconds(intOffset));
+ }
+ else
+ {
+ var origValOffset = getOffsetByTZ(realEvent.timeZone, exVal);
+ exVal = new Date(exVal.setSeconds(origValOffset.getSecondsFromOffset()));
+ }
+ }
+
+
+ var value=new Date(exVal.getTime()+offsetDate);
+ process_elem=vCalendar.tplC['contentline_EXDATE'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ if(!$('#allday').prop('checked'))
+ {
+ //if(exStr[4].indexOf('T')==-1)
+ // var newValue=new Date(value.setMinutes(new Date().getTimezoneOffset()));
+
+ newValue=$.fullCalendar.formatDate(value, "yyyyMMdd'T'HHmmss")+(sel_option!='local' ? 'Z' : '');
+ process_elem=process_elem.replace('##:::##AllDay##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##TZID##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(newValue));
+ }
+ else
+ {
+ var newValue=$.fullCalendar.formatDate(value, "yyyyMMdd");
+ process_elem=process_elem.replace('##:::##AllDay##:::##', ';'+vcalendarEscapeValue('VALUE=DATE'));
+ process_elem=process_elem.replace('##:::##TZID##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(newValue));
+ }
+ vCalendarText+=process_elem;
+ }
+ }
+ }
+ }
+ var a=$('#eventDetailsTable').find("tr[data-id]");
+ var lastDataId=0;
+ for(var i=0;i<a[a.length-1].attributes.length;i++)
+ if(a[a.length-1].attributes[i].nodeName=="data-id")
+ {
+ lastDataId=a[a.length-1].attributes[i].value;
+ break;
+ }
+ var alarmIterator=0;
+ var alarmUniqueArray = new Array();
+ for(var t=0;t<lastDataId;t++)
+ {
+ if($(".alert[data-id="+(t+1)+"]").length>0)
+ {
+ var alarmText = '';
+ if($(".alert[data-id="+(t+1)+"]").val()!='none')
+ {
+ if(vCalendar.tplM['beginVALARM']!=null && (process_elem=vCalendar.tplM['beginVALARM'][0])!=undefined)
+ alarmText+=vCalendar.tplM['beginVALARM'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['beginVALARM'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ alarmText+=process_elem;
+ vevent=true;
+ }
+
+ if($(".alert[data-id="+(t+1)+"]").val()=='message')
+ {
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='on_date')
+ {
+ if(vCalendar.tplM['contentline_TRIGGER']!=null && (process_elem=vCalendar.tplM['contentline_TRIGGER'][0])!=undefined)
+ {
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_TRIGGER'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+
+ var dateTo=$.datepicker.parseDate(globalSettings.datepickerformat.value, $(".message_date_input[data-id="+(t+1)+"]").val());
+ var datetime_to=$.fullCalendar.formatDate(dateTo, 'yyyy-MM-dd');
+ var aDate=new Date(Date.parse("01/02/1990, "+$(".message_time_input[data-id="+(t+1)+"]").val() ));
+ var time_to=$.fullCalendar.formatDate(aDate, 'HH:mm:ss');
+
+ var alarmDT=$.fullCalendar.parseDate(datetime_to+'T'+time_to);
+
+ if(globalSettings.timezonesupport.value)
+ sel_option=$('#timezone').val();
+
+ if($('.timezone_row').css('display')=='none')
+ sel_option='local';
+
+ if(sel_option!='local')
+ {
+ var origValOffset=getOffsetByTZ(sel_option, alarmDT);
+ var origIntOffset = origValOffset.getSecondsFromOffset()*-1;
+ alarmDT = new Date(alarmDT.setSeconds(origIntOffset));
+ }
+
+ var newValue=$.fullCalendar.formatDate(alarmDT, "yyyyMMdd'T'HHmmss")+(sel_option!='local' ? 'Z' : '');
+
+ process_elem=process_elem.replace('##:::##VALUE=DATE-TIME##:::##', ';VALUE=DATE-TIME');
+ process_elem=process_elem.replace('##:::##VALUE=DURATION##:::##', '');
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(newValue));
+ alarmText+=process_elem;
+ }
+ else
+ {
+ var duration='';
+ var before_after=$(".before_after_input[data-id="+(t+1)+"]").val();
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='minutes_before')
+ duration="-PT"+before_after+"M";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='hours_before')
+ duration="-PT"+before_after+"H";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='days_before')
+ duration="-P"+before_after+"D";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='weeks_before')
+ duration="-P"+before_after+"W";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='seconds_before')
+ duration="-PT"+before_after+"S";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='minutes_after')
+ duration="PT"+before_after+"M";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='hours_after')
+ duration="PT"+before_after+"H";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='days_after')
+ duration="P"+before_after+"D";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='weeks_after')
+ duration="P"+before_after+"W";
+ if($(".alert_message_details[data-id="+(t+1)+"]").val()=='seconds_after')
+ duration="PT"+before_after+"S";
+ if(vCalendar.tplM['contentline_TRIGGER']!=null && (process_elem=vCalendar.tplM['contentline_TRIGGER'][0])!=undefined)
+ {
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_TRIGGER'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##VALUE=DATE-TIME##:::##', '');
+ process_elem=process_elem.replace('##:::##VALUE=DURATION##:::##', ';VALUE=DURATION');
+ process_elem=process_elem.replace('##:::##value##:::##', duration);
+ alarmText+=process_elem;
+ }
+
+ if(vCalendar.tplM['contentline_ACTION']!=null && (process_elem=vCalendar.tplM['contentline_ACTION'][0])!=undefined)
+ {
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_ACTION'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue('DISPLAY'));
+ alarmText+=process_elem;
+ var a=new Date();
+
+ if(vCalendar.tplM['contentline_DESCRIPTION']!=null && (process_elem=vCalendar.tplM['contentline_DESCRIPTION'][0])!=undefined)
+ {
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_DESCRIPTION'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue('Reminder'));
+ alarmText+=process_elem;
+
+ }
+ if((typeof vCalendar.tplM['unprocessedVALARM']!='undefined' && typeof vCalendar.tplM['unprocessedVALARM'][t]!='undefined') && (vCalendar.tplM['unprocessedVALARM'][t]!='') && (vCalendar.tplM['unprocessedVALARM'][t]!=null))
+ {
+ tmp=vCalendar.tplM['unprocessedVALARM'][t].replace(RegExp('^\r\n'), '').replace(RegExp('\r\n$'), '');
+ if(tmp.indexOf('\r\n')==0)
+ tmp=tmp.substring(2, tmp.length);
+ if(tmp.lastIndexOf('\r\n')!=(tmp.length-2))
+ tmp+='\r\n';
+ alarmText+=tmp;
+ }
+ if(vCalendar.tplM['endVALARM']!=null && (process_elem=vCalendar.tplM['endVALARM'][0])!=undefined)
+ alarmText+=vCalendar.tplM['endVALARM'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['endVALARM'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ alarmText+=process_elem;
+ }
+ if(alarmUniqueArray.indexOf(alarmText)==-1)
+ {
+ alarmUniqueArray.push(alarmText);
+ vCalendarText+=alarmText;
+ }
+ }
+ }
+ }
+ vCalendar.tplM['unprocessedVALARM']=new Array();
+
+ if($('#avail').val()!='none')
+ {
+ if(vCalendar.tplM['contentline_TRANSP']!=null && (process_elem=vCalendar.tplM['contentline_TRANSP'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_TRANSP'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ if($('#avail').val()=='busy')
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue('OPAQUE'));
+ else
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue('TRANSPARENT'));
+ vCalendarText+=process_elem;
+ }
+
+ if($('#url_EVENT').val()!='')
+ {
+ if(vCalendar.tplM['contentline_URL']!=null && (process_elem=vCalendar.tplM['contentline_URL'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_URL'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue($('#url_EVENT').val()));
+ vCalendarText+=process_elem;
+ }
+
+
+
+ }
+ //DESCRIPTION
+ if($('#note').val()!='')
+ {
+ // NOTE
+ if(vCalendar.tplM['contentline_NOTE']!=null && (process_elem=vCalendar.tplM['contentline_NOTE'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_NOTE'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue($('#note').val()));
+ vCalendarText+=process_elem;
+ }
+
+ if($('#status').val()!='NONE')
+ {
+
+ //if((value=$('[id="vcalendar_editor"] [data-type="\\%note"]').find('textarea').val())!='')
+ //{
+ if(vCalendar.tplM['contentline_STATUS']!=null && (process_elem=vCalendar.tplM['contentline_STATUS'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_STATUS'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue($('#status').val()));
+ vCalendarText+=process_elem;
+ }
+
+ //CLASS
+ if($('#type').val()!='')
+ {
+ // CLASS
+ if(vCalendar.tplM['contentline_CLASS']!=null && (process_elem=vCalendar.tplM['contentline_CLASS'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_CLASS'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ if(typeof vCalendar.tplM['contentline_CLASS'] =='undefined' || vCalendar.tplM['contentline_CLASS']==null || vCalendar.tplM['contentline_CLASS'].length==0)
+ process_elem='';
+ }
+
+ if($('.row_type').css('display')!='none')
+ {
+ process_elem=vCalendar.tplC['contentline_CLASS'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue($('#type').val().toUpperCase()));
+ }
+ vCalendarText+=process_elem;
+ }
+
+ //RECURRENCE-ID
+ if($('#recurrenceID').val())
+ {
+ if(vCalendar.tplM['contentline_REC_ID']!=null && (process_elem=vCalendar.tplM['contentline_REC_ID'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_REC_ID'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+
+ var rec_id=$('#recurrenceID').val()
+ if(rec_id.indexOf('T')==-1)
+ {
+ process_elem=process_elem.replace('##:::##AllDay##:::##', ';'+vcalendarEscapeValue('VALUE=DATE'));
+ process_elem=process_elem.replace('##:::##TZID##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(rec_id));
+ }
+ else
+ {
+ process_elem=process_elem.replace('##:::##AllDay##:::##', vcalendarEscapeValue(''));
+
+ /*if((typeof vCalendar.tplM['unprocessed']!='undefined') && (vCalendar.tplM['unprocessed']!='') && (vCalendar.tplM['unprocessed']!=null))
+ {
+ var checkTZID=vCalendar.tplM['unprocessed'].match(vCalendar.pre['contentline_TZID']);
+ if(checkTZID!=null)
+ {
+ parsed=checkTZID[0].match(vCalendar.pre['contentline_parse']);
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+parsed[4]));
+ }
+ else
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+ sel_option));
+ }
+ else*/
+
+ process_elem=process_elem.replace('##:::##TZID##:::##',timeZoneAttr);
+ if(isUTC && rec_id.charAt(rec_id.length-1)!='Z')
+ rec_id+='Z';
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(rec_id));
+ }
+ vCalendarText+=process_elem;
+ }
+
+ if(vCalendar.tplM['contentline_E_DTSTART']!=null && (process_elem=vCalendar.tplM['contentline_E_DTSTART'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_E_DTSTART'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+
+ var datetime_from='', datetime_to='';
+ var a=$.datepicker.parseDate(globalSettings.datepickerformat.value, $('#date_from').val());
+ var a2=$.datepicker.parseDate(globalSettings.datepickerformat.value, $('#date_to').val());
+ var b=new Date(1970, 1, 1, 0, 0, 0);
+ if(datetime_from=='')
+ datetime_from=$.fullCalendar.formatDate(a, 'yyyyMMdd');
+
+ if(datetime_to=='')
+ datetime_to=$.fullCalendar.formatDate(a2, 'yyyyMMdd');
+
+ var dateTo=$.datepicker.parseDate('yymmdd',datetime_to);
+
+ if($('#allday').prop('checked'))
+ {
+ process_elem=process_elem.replace('##:::##AllDay##:::##', ';'+vcalendarEscapeValue('VALUE=DATE'));
+ process_elem=process_elem.replace('##:::##TZID##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(datetime_from));
+ }
+ else
+ {
+ b=new Date(Date.parse("01/02/1990, "+$('#time_from').val() ));
+ var time_from=$.fullCalendar.formatDate(b, 'HHmmss');
+ process_elem=process_elem.replace('##:::##AllDay##:::##', vcalendarEscapeValue(''));
+
+ /*if((typeof vCalendar.tplM['unprocessed']!='undefined') && (vCalendar.tplM['unprocessed']!='') && (vCalendar.tplM['unprocessed']!=null))
+ {
+ var checkTZID=vCalendar.tplM['unprocessed'].match(vCalendar.pre['contentline_TZID']);
+ if(checkTZID!=null)
+ {
+ parsed=checkTZID[0].match(vCalendar.pre['contentline_parse']);
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+parsed[4]));
+ }
+ else
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+ sel_option));
+ }
+ else*/
+ process_elem=process_elem.replace('##:::##TZID##:::##', timeZoneAttr);
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(datetime_from+'T'+time_from+(isUTC ? 'Z' : '')));
+ }
+
+ vCalendarText+=process_elem;
+
+ if(realEvent!='')
+ {
+ if(realEvent.type!='')
+ {
+ var repeatStart=realEvent.repeatStart;
+ a.setHours(b.getHours());
+ a.setMinutes(b.getMinutes());
+ a.setSeconds(b.getSeconds());
+ var changeDate=a;
+ var offsetDate=changeDate-repeatStart;
+ var realEventUID=realEvent.vcalendar.match(vCalendar.pre['contentline_UID']);
+
+ if(realEventUID!=null)
+ realEventUID=realEventUID[0].match(vCalendar.pre['contentline_parse'])[4];
+
+ if(offsetDate!=0)
+ {
+ var vcalendarOrig=vCalendarText;
+ var eventArray=new Array(),backupEventArray= new Array();
+ while(vcalendarOrig.match(vCalendar.pre['vevent'])!=null)
+ {
+ if(vcalendarOrig.substring(vcalendarOrig.indexOf('BEGIN:VEVENT')-2, vcalendarOrig.indexOf('BEGIN:VEVENT'))=='\r\n')
+ {
+ var partEvent=vcalendarOrig.substring(vcalendarOrig.indexOf('BEGIN:VEVENT')-2,vcalendarOrig.indexOf('END:VEVENT')+'END:VEVENT'.length);
+ vcalendarOrig=vcalendarOrig.replace(partEvent, '');
+ }
+ else
+ {
+ var partEvent=vcalendarOrig.substring(vcalendarOrig.indexOf('BEGIN:VEVENT'),vcalendarOrig.indexOf('END:VEVENT')+'END:VEVENT'.length);
+ vcalendarOrig=vcalendarOrig.replace(partEvent, '');
+ partEvent+='\r\n';
+ }
+ eventArray[eventArray.length]=partEvent;
+ backupEventArray[backupEventArray.length]=partEvent;
+ }
+ if(eventArray.length==0)
+ console.log("Error: '"+inputUID+"': unable to parse vEvent");
+
+ for(var it=0;it<eventArray.length;it++)
+ {
+ var findUid=eventArray[it].match(vCalendar.pre['contentline_UID']);
+ if(findUid!=null)
+ {
+ if(findUid[0].match(vCalendar.pre['contentline_parse'])[4]!=realEventUID)
+ continue;
+ }
+ var findRec=eventArray[it].match(vCalendar.pre['contentline_RECURRENCE_ID']);
+ if(findRec!=null)
+ {
+ var parsed=findRec[0].match(vCalendar.pre['contentline_parse']);
+
+ process_elem=vCalendar.tplC['contentline_REC_ID'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', parsed[1]);
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+
+ var value=parsed[4].parseComnpactISO8601();
+ if(value)
+ {
+ value=new Date(value.getTime()+offsetDate)
+
+ var newValue=$.fullCalendar.formatDate(value, "yyyyMMdd'T'HHmmss");
+ if(isUTC)
+ newValue+='Z';
+
+ if($('#allday').prop('checked'))
+ {
+ newValue=$.fullCalendar.formatDate(value, "yyyyMMdd");
+ process_elem=process_elem.replace('##:::##AllDay##:::##', ';'+vcalendarEscapeValue('VALUE=DATE'));
+ process_elem=process_elem.replace('##:::##TZID##:::##', vcalendarEscapeValue(''));
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(newValue));
+ }
+ else
+ {
+ process_elem=process_elem.replace('##:::##AllDay##:::##', vcalendarEscapeValue(''));
+
+ /*if((typeof vCalendar.tplM['unprocessed']!='undefined') && (vCalendar.tplM['unprocessed']!='') && (vCalendar.tplM['unprocessed']!=null))
+ {
+ var checkTZID=vCalendar.tplM['unprocessed'].match(vCalendar.pre['contentline_TZID']);
+ if(checkTZID!=null)
+ {
+ parsed=checkTZID[0].match(vCalendar.pre['contentline_parse']);
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+parsed[4]));
+ }
+ else
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+ sel_option));
+ }
+ else*/
+ process_elem=process_elem.replace('##:::##TZID##:::##', timeZoneAttr);
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(newValue));
+ }
+ eventArray[it]=eventArray[it].replace(findRec[0],'\r\n'+process_elem);
+ }
+ }
+ vCalendarText=vCalendarText.replace(backupEventArray[it],eventArray[it]);
+ }
+ }
+ }
+ }
+
+ if(vCalendar.tplM['contentline_E_DTEND']!=null && (process_elem=vCalendar.tplM['contentline_E_DTEND'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_E_DTEND'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+
+ if($('#allday').prop('checked'))
+ {
+ var dateAfter=new Date(dateTo.getFullYear(), dateTo.getMonth(), dateTo.getDate()+1);
+ dateAfter=dateAfter.getFullYear()+''+((dateAfter.getMonth()+1)<10 ? '0'+(dateAfter.getMonth()+1) : (dateAfter.getMonth()+1))+''+ ((dateAfter.getDate())<10 ? '0'+(dateAfter.getDate()) : (dateAfter.getDate()));
+ process_elem=process_elem.replace('##:::##AllDay##:::##', ';'+vcalendarEscapeValue('VALUE=DATE'));
+ process_elem=process_elem.replace('##:::##TZID##:::##', vcalendarEscapeValue(""));
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(dateAfter));
+ }
+ else
+ {
+ var b2=new Date(Date.parse("01/02/1990, "+$('#time_to').val() ));
+ var time_to=$.fullCalendar.formatDate(b2, 'HHmmss');
+ process_elem=process_elem.replace('##:::##AllDay##:::##', vcalendarEscapeValue(''));
+
+ /*if((typeof vCalendar.tplM['unprocessed']!='undefined') && (vCalendar.tplM['unprocessed']!='') && (vCalendar.tplM['unprocessed']!=null))
+ {
+ var checkTZID=vCalendar.tplM['unprocessed'].match(vCalendar.pre['contentline_TZID']);
+ if(checkTZID!=null)
+ {
+ parsed=checkTZID[0].match(vCalendar.pre['contentline_parse']);
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+parsed[4]));
+ }
+ else
+ process_elem=process_elem.replace('##:::##TZID##:::##', ';'+vcalendarEscapeValue("TZID="+sel_option));
+ }
+ else*/
+ process_elem=process_elem.replace('##:::##TZID##:::##', timeZoneAttr);
+ process_elem=process_elem.replace('##:::##value##:::##', vcalendarEscapeValue(datetime_to+'T'+time_to+(isUTC ? 'Z' : '')));
+ }
+ vCalendarText+=process_elem;
+
+ //RFC OPTIONAL
+ if(vCalendar.tplM['contentline_LOCATION']!=null && (process_elem=vCalendar.tplM['contentline_LOCATION'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)','m'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.','\\.'),'mg'),'\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_LOCATION'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##','');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##','');
+ }
+
+ if($('#location').val()!='')
+ {
+ process_elem=process_elem.replace('##:::##value##:::##',vcalendarEscapeValue($('#location').val()));
+ vCalendarText+=process_elem;
+ }
+
+ if($('#recurrenceID').val()=='')
+ var checkVal='orig';
+ else
+ var checkVal=$('#recurrenceID').val();
+
+ if(typeof vCalendar.tplM['unprocessedVEVENT']!='undefined' && vCalendar.tplM['unprocessedVEVENT']!=null)
+ {
+ for(vev in vCalendar.tplM['unprocessedVEVENT'])
+ if(vev==checkVal)
+ vCalendarText+=vCalendar.tplM['unprocessedVEVENT'][vev].replace(RegExp('^\r\n'), '');
+ }
+
+ //vCalendar.tplM['unprocessedVEVENT']=new Array();
+
+ if(vCalendar.tplM['endVEVENT']!=null && (process_elem=vCalendar.tplM['endVEVENT'][0])!=undefined)
+ vCalendarText+=vCalendar.tplM['endVEVENT'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['endVEVENT'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ vCalendarText+=process_elem;
+ }
+
+ // PRODID
+ if(vCalendar.tplM['contentline_PRODID']!=null && (process_elem=vCalendar.tplM['contentline_PRODID'][0])!=undefined)
+ {
+ // replace the object and related objects' group names (+ append the related objects after the processed)
+ parsed=('\r\n'+process_elem).match(RegExp('\r\n((?:'+vCalendar.re['group']+'\\.)?)', 'm'));
+ if(parsed[1]!='') // if group is present, replace the object and related objects' group names
+ process_elem=('\r\n'+process_elem).replace(RegExp('\r\n'+parsed[1].replace('.', '\\.'), 'mg'), '\r\nitem'+(groupCounter++)+'.').substring(2);
+ }
+ else
+ {
+ process_elem=vCalendar.tplC['contentline_PRODID'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ process_elem=process_elem.replace('##:::##params_wsc##:::##', '');
+ }
+ process_elem=process_elem.replace('##:::##value##:::##', '-//Inf-IT//'+globalAppName+' '+globalVersion+'//EN');
+ vCalendarText+=process_elem;
+
+ if(typeof vCalendar.tplM['unprocessed']!='undefined' && vCalendar.tplM['unprocessed']!='' && vCalendar.tplM['unprocessed']!=null)
+ vCalendarText+=vCalendar.tplM['unprocessed'].replace(RegExp('^\r\n'), '');
+
+ vCalendar.tplM['unprocessed']=new Array();
+
+ // vCalendar END (required by RFC)
+ if(vCalendar.tplM['end']!=null && (process_elem=vCalendar.tplM['end'][0])!=undefined)
+ vCalendarText+=vCalendar.tplM['end'][0];
+ else
+ {
+ process_elem=vCalendar.tplC['end'];
+ process_elem=process_elem.replace('##:::##group_wd##:::##', '');
+ vCalendarText+=process_elem;
+ }
+
+ var nextVcalendars = new Array();
+ if(futureMode && origEvent!='')
+ {
+ var fixed = checkAndFixMultipleUID(origEvent,true);
+ if(fixed.length==1)
+ nextVcalendars[nextVcalendars.length]=origEvent;
+ else
+ nextVcalendars=fixed;
+ }
+
+ // replace unsupported XML characters
+ vCalendarText=vCalendarText.replace(/[^\u0009\u000A\u000D\u0020-\uD7FF\uE000-\uFFFD]/g, ' ');
+
+ var fixedArr = checkAndFixMultipleUID(vCalendarText,true);
+ fixedArr = $.merge(nextVcalendars,fixedArr);
+ var inputS = fixedArr[0];
+ fixedArr.splice(0,1);
+ if(operation=='MOVE_IN')
+ return moveVcalendarToCollection(accountUID, inputUID, inputEtag, inputS, delUID, 'vevent', isFormHidden, deleteMode, fixedArr);
+ else
+ return putVcalendarToCollection(accountUID, inputUID, inputEtag, inputS, delUID, 'vevent', isFormHidden, deleteMode, fixedArr);
+}
+
+function fullVcalendarToData(inputEvent)
+{
+ CalDAVeditor_cleanup();
+ var vcalendar='';
+ var rid=inputEvent.id.substring(0, inputEvent.id.lastIndexOf('/')+1);
+ if(globalEventList.events[rid][inputEvent.id].uid!=undefined)
+ vcalendar=globalEventList.events[rid][inputEvent.id].vcalendar;
+ if(!vcalendar)
+ return false;
+
+ var vcalendar_full=vcalendar.split('\r\n');
+
+ if((parsed=('\r\n'+vcalendar_full[0]+'\r\n').match(vCalendar.pre['contentline_parse']))==null)
+ return false;
+
+ //BEGIN, END VCALENDAR
+ vCalendar.tplM['begin'][0]=vCalendar.tplC['begin'].replace(/##:::##group_wd##:::##/g, vcalendar_begin_group=parsed[1]);
+ // parsed (contentline_parse)=[1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ if((parsed=('\r\n'+vcalendar_full[vcalendar_full.length-2]+'\r\n').match(vCalendar.pre['contentline_parse']))==null)
+ return false;
+ // values not directly supported by the editor (old values are kept intact)
+ vCalendar.tplM['end'][0]=vCalendar.tplC['end'].replace(/##:::##group_wd##:::##/g, vcalendar_end_group=parsed[1]);
+
+ if(vcalendar_begin_group!=vcalendar_end_group)
+ return false;// the vCalendar BEGIN and END "group" are different
+ // remove the vCalendar BEGIN and END
+
+ vcalendar='\r\n'+vcalendar_full.slice(1, vcalendar_full.length-2).join('\r\n')+'\r\n';
+
+ /*
+ vcalendar_element=vcalendar.match(vCalendar.pre['tzone']);
+ if(vcalendar_element!=null)
+ vcalendar=vcalendar.replace(vcalendar_element[0],'');
+ */
+
+ //FIX TIMEZONE
+ var beginTimeZone=vcalendar.indexOf('BEGIN:VTIMEZONE');
+ var startEndTimeZone=vcalendar.lastIndexOf('END:VTIMEZONE');
+ var endTimeZone=0;
+ var vTimeZone='';
+
+ if(beginTimeZone!=-1 && startEndTimeZone!=-1)
+ {
+ for(i=(startEndTimeZone+2);i<vcalendar.length;i++)
+ {
+ if(vcalendar.charAt(i)=='\n')
+ {
+ endTimeZone=i+1;
+ break;
+ }
+ }
+ vTimeZone=vcalendar.substring(beginTimeZone, endTimeZone);
+ vcalendar=vcalendar.substring(0, beginTimeZone)+vcalendar.substring(endTimeZone, vcalendar.length);
+ }
+
+ vcalendar_element=vcalendar.match(RegExp('\r\n'+vCalendar.re['contentline_CALSCALE'], 'mi'));
+
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ //note=String(vcalendar_element).split(':')[1];
+ version=vcalendarUnescapeValue(parsed[4]);
+ vCalendar.tplM['contentline_CALSCALE'][0]=vCalendar.tplC['contentline_CALSCALE'];
+ vCalendar.tplM['contentline_CALSCALE'][0]=vCalendar.tplM['contentline_CALSCALE'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_CALSCALE'][0]=vCalendar.tplM['contentline_CALSCALE'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ vcalendar=vcalendar.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vcalendar.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_CALSCALE'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vcalendar=vcalendar.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ vcalendar_element=vcalendar.match(RegExp('\r\n'+vCalendar.re['contentline_VERSION'], 'mi'));
+
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ //note=String(vcalendar_element).split(':')[1];
+ version=vcalendarUnescapeValue(parsed[4]);
+ vCalendar.tplM['contentline_VERSION'][0]=vCalendar.tplC['contentline_VERSION'];
+ vCalendar.tplM['contentline_VERSION'][0]=vCalendar.tplM['contentline_VERSION'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_VERSION'][0]=vCalendar.tplM['contentline_VERSION'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ vcalendar=vcalendar.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vcalendar.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_VERSION'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vcalendar=vcalendar.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ //PRODID
+ vcalendar_element=vcalendar.match(RegExp('\r\n'+vCalendar.re['contentline_PRODID'], 'mi'));
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+
+ vCalendar.tplM['contentline_PRODID'][0]=vCalendar.tplC['contentline_PRODID'];
+ vCalendar.tplM['contentline_PRODID'][0]=vCalendar.tplM['contentline_PRODID'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_PRODID'][0]=vCalendar.tplM['contentline_PRODID'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ vcalendar=vcalendar.replace(vcalendar_element[0], '\r\n');
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vcalendar.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_PRODID'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vcalendar=vcalendar.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ var eventArray=new Array();
+ while(vcalendar.match(vCalendar.pre['vevent'])!=null)
+ {
+ var partEvent=vcalendar.substring(vcalendar.indexOf('BEGIN:VEVENT')-2,vcalendar.indexOf('END:VEVENT')+'END:VEVENT'.length);
+ eventArray[eventArray.length]=partEvent;
+ vcalendar=vcalendar.replace(partEvent, '');
+ }
+ if(eventArray.length==0)
+ console.log("Error: '"+inputEvent.id+"': unable to parse vEvent");
+
+ for(var it=0;it<eventArray.length;it++)
+ {
+ // ------------------------------ VEVENT ------------------------------ //
+ var vevent=eventArray[it];
+ var vevent_full=vevent.split('\r\n');
+
+ if(vevent==null)
+ return false;
+
+ //vcalendar=vcalendar.replace(vevent[0], '\r\n');
+
+ //BEGIN
+ if((parsed=('\r\nBEGIN:VEVENT\r\n').match(vCalendar.pre['contentline_parse']))==null)
+ return false;
+ //BEGIN, END VCALENDAR
+ vCalendar.tplM['beginVEVENT'][0]=vCalendar.tplC['beginVEVENT'].replace(/##:::##group_wd##:::##/g, vcalendar_begin_group=parsed[1]);
+ // parsed (contentline_parse)=[1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ if((parsed=('\r\n'+vcalendar_full[vevent_full.length-2]+'\r\n').match(vCalendar.pre['contentline_parse']))==null)
+ return false;
+ // values not directly supported by the editor (old values are kept intact)
+ vCalendar.tplM['endVEVENT'][0]=vCalendar.tplC['endVEVENT'].replace(/##:::##group_wd##:::##/g, vcalendar_end_group=parsed[1]);
+
+ if(vcalendar_begin_group!=vcalendar_end_group)
+ return false;// the vCalendar BEGIN and END "group" are different
+
+ // remove the vCalendar BEGIN and END
+
+ vevent='\r\n'+vevent_full.slice(2, vevent_full.length-1).join('\r\n')+'\r\n';
+ //SUMMARY
+ vcalendar_element=vevent.match(RegExp('\r\n'+vCalendar.re['contentline_SUMMARY'], 'mi'));
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ //note=String(vcalendar_element).split(':')[1];
+ title=vcalendarUnescapeValue(parsed[4]);
+ vCalendar.tplM['contentline_SUMMARY'][0]=vCalendar.tplC['contentline_SUMMARY'];
+ vCalendar.tplM['contentline_SUMMARY'][0]=vCalendar.tplM['contentline_SUMMARY'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_SUMMARY'][0]=vCalendar.tplM['contentline_SUMMARY'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ vevent=vevent.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_SUMMARY'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ vcalendar_element=vevent.match(RegExp('\r\n'+vCalendar.re['contentline_TRANSP'], 'mi'));
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ //note=String(vcalendar_element).split(':')[1];
+ title=vcalendarUnescapeValue(parsed[4]);
+ vCalendar.tplM['contentline_TRANSP'][0]=vCalendar.tplC['contentline_TRANSP'];
+ vCalendar.tplM['contentline_TRANSP'][0]=vCalendar.tplM['contentline_TRANSP'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_TRANSP'][0]=vCalendar.tplM['contentline_TRANSP'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ vevent=vevent.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_TRANSP'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ vcalendar_element=vevent.match(RegExp('\r\n'+vCalendar.re['contentline_PRIORITY'], 'mi'));
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+
+ //note=String(vcalendar_element).split(':')[1];
+ title=vcalendarUnescapeValue(parsed[4]);
+
+ vCalendar.tplM['contentline_PRIORITY'][0]=vCalendar.tplC['contentline_PRIORITY'];
+ vCalendar.tplM['contentline_PRIORITY'][0]=vCalendar.tplM['contentline_PRIORITY'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_PRIORITY'][0]=vCalendar.tplM['contentline_PRIORITY'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+
+ vevent=vevent.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_PRIORITY'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ //LOCATION
+ vcalendar_element=vevent.match(RegExp('\r\n'+vCalendar.re['contentline_LOCATION'], 'mi'));
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ //note=String(vcalendar_element).split(':')[1];
+ title=vcalendarUnescapeValue(parsed[4]);
+ vCalendar.tplM['contentline_LOCATION'][0]=vCalendar.tplC['contentline_LOCATION'];
+ vCalendar.tplM['contentline_LOCATION'][0]=vCalendar.tplM['contentline_LOCATION'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_LOCATION'][0]=vCalendar.tplM['contentline_LOCATION'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ vevent=vevent.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_LOCATION'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ //URL
+ vcalendar_element=vevent.match(RegExp('\r\n'+vCalendar.re['contentline_URL'], 'mi'));
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+ //note=String(vcalendar_element).split(':')[1];
+ title=vcalendarUnescapeValue(parsed[4]);
+ vCalendar.tplM['contentline_URL'][0]=vCalendar.tplC['contentline_URL'];
+ vCalendar.tplM['contentline_URL'][0]=vCalendar.tplM['contentline_URL'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_URL'][0]=vCalendar.tplM['contentline_URL'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ vevent=vevent.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_URL'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ // ------------------------------ VALARM ------------------------------ //
+ var valarm=vevent.match(vCalendar.pre['valarm']);
+ if(valarm!=null)
+ {
+ vevent=vevent.replace(valarm[0], '');
+ var alarmString='';
+ var alarmArray=new Array();
+
+ for(var i=0;i<valarm[0].length;i++)
+ {
+ if(valarm[0].substring(i-'END:VALARM'.length, i)=='END:VALARM')
+ {
+ alarmArray[alarmArray.length]=alarmString+'\r\n';
+ alarmString='';
+ }
+ alarmString+=valarm[0][i];
+ }
+
+ for(var j=0;j<alarmArray.length;j++)
+ {
+ checkA=alarmArray[j].match(vCalendar.re['valarm']);
+ if(checkA!=null)
+ {
+ var valarm_full=checkA[0].split('\r\n');
+
+ //BEGIN
+ if((parsed=('\r\n'+valarm_full[0]+'\r\n').match(vCalendar.pre['contentline_parse']))==null)
+ return false;
+
+ //BEGIN, END VCALENDAR
+ vCalendar.tplM['beginVALARM'][j]=vCalendar.tplC['beginVALARM'].replace(/##:::##group_wd##:::##/g, vcalendar_begin_group=parsed[1]);
+
+ // parsed (contentline_parse)=[1]->"group.", [2]->"name", [3]->";param;param", [4]->"value"
+ if((parsed=('\r\n'+valarm_full[valarm_full.length-2]+'\r\n').match(vCalendar.pre['contentline_parse']))==null)
+ return false;
+
+ // values not directly supported by the editor (old values are kept intact)
+ vCalendar.tplM['endVALARM'][j]=vCalendar.tplC['endVALARM'].replace(/##:::##group_wd##:::##/g, vcalendar_end_group=parsed[1]);
+
+ if(vcalendar_begin_group!=vcalendar_end_group)
+ return false;// the vCalendar BEGIN and END "group" are different
+
+ // remove the vCalendar BEGIN and END
+ alarmArray[j]='\r\n'+valarm_full.slice(1, valarm_full.length-2).join('\r\n')+'\r\n';
+
+ trigger=alarmArray[j].match(vCalendar.pre['contentline_TRIGGER']);
+
+ if(trigger!=null)
+ {
+ parsed=(trigger[0]+'\r\n').match(vCalendar.pre['contentline_parse']);
+
+ vCalendar.tplM['contentline_TRIGGER'][j]=vCalendar.tplC['contentline_TRIGGER'];
+ vCalendar.tplM['contentline_TRIGGER'][j]=vCalendar.tplM['contentline_TRIGGER'][j].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ var pars=vcalendarSplitParam(parsed[3]);
+ var parString='';
+ for(var i=0;i<pars.length;i++)
+ {
+ if((pars[i]!='VALUE=DATE-TIME') && (pars[i]!='VALUE=DURATION') && (pars[i]!=''))
+ parString+=';'+pars[i];
+ }
+ vCalendar.tplM['contentline_TRIGGER'][j]=vCalendar.tplM['contentline_TRIGGER'][j].replace(/##:::##params_wsc##:::##/g, parString);
+ alarmArray[j]=alarmArray[j].replace(trigger[0], '');
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_TRIGGER'][j]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '');
+ }
+ }
+ }
+ note=alarmArray[j].match(vCalendar.pre['contentline_NOTE']);
+ if(note!=null)
+ {
+ parsed=note[0].match(vCalendar.pre['contentline_parse']);
+ vCalendar.tplM['contentline_VANOTE'][j]=vCalendar.tplC['contentline_VANOTE'];
+ vCalendar.tplM['contentline_VANOTE'][j]=vCalendar.tplM['contentline_VANOTE'][j].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_VANOTE'][j]=vCalendar.tplM['contentline_VANOTE'][j].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ alarmArray[j]=alarmArray[j].replace(note[0], '\r\n');
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_VANOTE'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+ action=(alarmArray[j]).match(vCalendar.pre['contentline_ACTION']);
+
+ if(action!=null)
+ {
+ parsed=action[0].match(vCalendar.pre['contentline_parse']);
+ vCalendar.tplM['contentline_ACTION'][j]=vCalendar.tplC['contentline_ACTION'];
+ vCalendar.tplM['contentline_ACTION'][j]=vCalendar.tplM['contentline_ACTION'][j].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_ACTION'][j]=vCalendar.tplM['contentline_ACTION'][j].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+ alarmArray[j]=alarmArray[j].replace(action[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_ACTION'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+ var checkUnprocess=$.trim(alarmArray[j]);
+
+ if(checkUnprocess!='')
+ vCalendar.tplM['unprocessedVALARM'][j]=alarmArray[j];
+ }
+ }
+ }
+
+ // NOTE
+ vcalendar_element=vevent.match(vCalendar.pre['contentline_NOTE']);
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+
+ vCalendar.tplM['contentline_NOTE'][0]=vCalendar.tplC['contentline_NOTE'];
+ vCalendar.tplM['contentline_NOTE'][0]=vCalendar.tplM['contentline_NOTE'][0].replace(/##:::##group_wd##:::##/g, parsed[1]);
+ vCalendar.tplM['contentline_NOTE'][0]=vCalendar.tplM['contentline_NOTE'][0].replace(/##:::##params_wsc##:::##/g, parsed[3]);
+
+ vevent=vevent.replace(vcalendar_element[0], '\r\n');
+
+ if(parsed[1]!='')
+ {
+ var re=RegExp('\r\n'+parsed[1].replace('.','\\..*')+'\r\n', 'im');
+ while ((vcalendar_element_related=vevent.match(re))!=null)
+ {
+ // append the parameter to its parent
+ vCalendar.tplM['contentline_NOTE'][0]+=vcalendar_element_related[0].substr(2);
+ // remove the processed parameter
+ vevent=vevent.replace(vcalendar_element_related[0], '\r\n');
+ }
+ }
+ }
+
+ //CLASS
+ vcalendar_element=vevent.match(vCalendar.pre['contentline_CLASS']);
+ if(vcalendar_element!=null)
+ {
+ parsed=vcalendar_element[0].match(vCalendar.pre['contentline_parse']);
+
+ vCalendar.tplM['contentline_CLASS'][0]=vCalendar.tplC['contentline_CLASS'];
+ vCalendar.tplM[