* Re-enabled setting of tags in Story and Image prototype

* Added custom Layout.href() method to prevent the URL from being corrupted with the layout ID (which strangely happens from time to time)
 * Uncommented $tags collection in Root.properties to prevent conflict with collection in Site having the same name
 * Fixed output of tags list in Story.getFormValue() method
This commit is contained in:
Tobi Schäfer 2008-01-09 21:34:21 +00:00
parent ece3bedc6d
commit da25a7bfdc
5 changed files with 19 additions and 6 deletions

View file

@ -56,6 +56,16 @@ Layout.prototype.getPermission = function(action) {
return false;
};
// FIXME: For safety reasons the Layout.href method is overwritten.
// Otherwise it sometimes results in strange URLs containing the layout id.
Layout.prototype.href = function(action) {
res.push();
res.write(this._parent.href());
res.write("layout/");
action && res.write(action);
return res.pop();
}
Layout.prototype.main_action = function() {
res.debug(this.skins.getSkin("Site", "values"));
if (req.postParams.save) {