From dd9092861868df38d38b5d5b773eb1cb97c5a9cd Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 12 Oct 2006 21:02:28 +0000 Subject: [PATCH] Monotone-Parent: 46613927425a6ba9078fe9f5f4a3f32ee86a567c Monotone-Revision: 9fd31a1f1ff9ed2425bcd404fa5cf63e0d6eee66 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-12T21:02:28 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 ++ UI/WebServerResources/generic.js | 52 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7e7bac6c7..53db443b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-12 Wolfgang Sourdeau + * UI/WebServerResources/generic.js: added code to the "String" + class to decode number-encoded char entities. + * UI/Scheduler/UIxCalMainView.m ([UIxCalMainView -batchDeleteAction]): new method to delete selected entries in the lists. diff --git a/UI/WebServerResources/generic.js b/UI/WebServerResources/generic.js index 03b9d14f1..27746b8c4 100644 --- a/UI/WebServerResources/generic.js +++ b/UI/WebServerResources/generic.js @@ -1127,6 +1127,58 @@ HTMLTableElement.prototype.deselectAll = function() { deselectNode(nodes[i]); } +HTMLUListElement.prototype.getSelectedRowsId = function() { + return this.getSelectedNodesId(); +} + String.prototype.trim = function() { return this.replace(/(^\s+|\s+$)/g, ''); } + +String.prototype.decodeEntities = function() { + return this.replace(/&#(\d+);/g, + function(wholematch, parenmatch1) { + return String.fromCharCode(+parenmatch1); + }); +} + +// function BatchAjaxRequest() +// { +// this.init(); + +// return this; +// } + +// BatchAjaxRequest.prototype.init = function() { +// this.urls = null; +// this.currentUrl = 0; +// this.requestsLeft = 0; +// this.returnCodes = new Array(); +// this.state = "waiting"; +// this.callback = null; +// this.callbackData = null; +// } + +// BatchAjaxRequest.prototype.setUrls = function(urls) { +// this.urls = urls; +// } + +// BatchAjaxRequest.prototype.setCallback = function(callback, callbackData) { +// this.callback = callback; +// this.callbackData = callbackData; +// } + +// BatchAjaxRequest.prototype._handler = function(http) { +// if ( +// this.requestsLeft--; +// if (this.requestsLeft == 0 +// && this.callback) +// this.callback(this, callbackData); +// } + +// BatchAjaxRequest.prototype.run = function() { +// this.requestsLeft = this.urls.length; +// this.currentUrl = 0; +// } + +// test = new BatchAjaxRequest();