From 5a49447c5dcb0096790638f81a3e86be6c719734 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 1 Nov 2006 20:40:06 +0000 Subject: [PATCH] Monotone-Parent: 679d95a0a0d2ea064ef2ae29ba29027711a5e25a Monotone-Revision: 48559e63a4daf792998888d42b9257b8d5a6184e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-01T20:40:06 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 + UI/WebServerResources/SchedulerUI.js | 84 ---------------------------- 2 files changed, 3 insertions(+), 84 deletions(-) diff --git a/ChangeLog b/ChangeLog index 32a2aad0e..131105ab0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-11-01 Wolfgang Sourdeau + * UI/WebServerResources/SchedulerUI.js: same strip down as for + generic.js below. + * UI/Contacts/UIxContactsListViewContainer.m ([UIxContactsListViewContainer -additionalAddressBooks]) ([UIxContactsListViewContainer -additionalFolders]) ([UIxContactsListViewContainer -setCurrentAdditionalFolder:newCurrentAdditionalFolder]) diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 5b665934b..0a0859c61 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -914,87 +914,3 @@ function browseUrl(anchor, event) { return false; } - -HTMLInputElement.prototype.valueAsDate = function () { - var newDate; - var date = this.value.split("/"); - if (date.length == 3) - newDate = new Date(date[2], date[1] - 1, date[0]); - else { - date = this.value.split("-"); - newDate = new Date(date[0], date[1] - 1, date[2]); - } - - return newDate; -} - -HTMLInputElement.prototype._detectDateSeparator = function() { - var date = this.value.split("/"); - if (date.length == 3) - this.dateSeparator = "/"; - else - this.dateSeparator = "-"; -} - -HTMLInputElement.prototype.valueAsShortDateString = function() { - var dateStr = ''; - - if (!this.dateSeparator) - this._detectDateSeparator(); - - var date = this.value.split(this.dateSeparator); - if (this.dateSeparator == '/') - dateStr += date[2] + date[1] + date[0]; - else - dateStr += date[0] + date[1] + date[2]; - - return dateStr; -} - -Date.prototype.sogoDayName = function() { - var dayName = ""; - - var day = this.getDay(); - if (day == 0) { - dayName = labels['a2_Sunday']; - } else if (day == 1) { - dayName = labels['a2_Monday']; - } else if (day == 2) { - dayName = labels['a2_Tuesday']; - } else if (day == 3) { - dayName = labels['a2_Wednesday']; - } else if (day == 4) { - dayName = labels['a2_Thursday']; - } else if (day == 5) { - dayName = labels['a2_Friday']; - } else if (day == 6) { - dayName = labels['a2_Saturday']; - } - - return dayName; -} - -Date.prototype.daysUpTo = function(otherDate) { - var days = new Array(); - var day1 = this.getTime(); - var day2 = otherDate.getTime(); - - var nbrDays = Math.floor((day2 - day1) / 86400000) + 1; - for (var i = 0; i < nbrDays; i++) { - var newDate = new Date(); - newDate.setTime(day1 + (i * 86400000)); - days.push(newDate); - } - - return days; -} - -Date.prototype.sogoFreeBusyStringWithSeparator = function(separator) { - var str = this.sogoDayName() + ", "; - if (separator == '-') - str += (this.getYear() + 1900) + '-' + (this.getMonth() + 1) + '-' + this.getDate(); - else - str += this.getDate() + '/' + (this.getMonth() + 1) + '/' + (this.getYear() + 1900); - - return str; -}