Monotone-Parent: 46613927425a6ba9078fe9f5f4a3f32ee86a567c

Monotone-Revision: 9fd31a1f1ff9ed2425bcd404fa5cf63e0d6eee66

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-12T21:02:28
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2006-10-12 21:02:28 +00:00
parent bff862e733
commit dd90928618
2 changed files with 55 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2006-10-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* 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.

View file

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