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();