* Replaced most remaining occurrences of getMessage() method calls with adequate gettext() method calls

* Removed obsolete Root.getSiteList() method
 * Moved searchview.skin as #result subskin into Story.skin
 * Fixed alignment of calendar month
This commit is contained in:
Tobi Schäfer 2008-01-13 16:44:09 +00:00
parent 78b2261e88
commit 77255296dc
14 changed files with 54 additions and 99 deletions

View file

@ -276,48 +276,3 @@ Root.prototype.getCreationPermission = function() {
Root.prototype.processHref = function(href) {
return app.properties.defaulthost + href;
};
// FIXME!
Root.prototype.getSiteList = function(limit, show, scroll) {
return;
if (show && show == "all")
var collection = root.publicSites;
else
var collection = root;
var size = collection.size();
if (!size)
return;
var idx = parseInt (req.data.start, 10);
var scroll = (!scroll || scroll == "no" ? false : true);
if (isNaN(idx) || idx > size-1 || idx < 0)
idx = 0;
if (scroll && idx > 0) {
var sp = new Object();
sp.url = root.href("list") + "?start=" + Math.max(0, idx-limit);
sp.text = getMessage("Site.previousPage");
res.data.prevpage = renderSkinAsString("prevpagelink", sp);
}
var cnt = 0;
collection.prefetchChildren(idx, limit);
res.push();
while (cnt < limit && idx < size) {
var s = collection.get(idx++);
if (!s.blocked && s.online) {
s.renderSkin("Site#list");
cnt++;
}
}
res.data.sitelist = res.pop();
if (scroll && idx < size) {
var sp = new Object();
sp.url = root.href("list") + "?start=" + idx;
sp.text = getMessage("Site.nextPage");
res.data.nextpage = renderSkinAsString("nextpagelink", sp);
}
return;
};