* Fixed skin names according to issue #16

* Fixed rendering of values stored in res.meta.values
 * Removed obsolete code (mostly disabled by comments already)
This commit is contained in:
Tobi Schäfer 2008-01-19 17:36:33 +00:00
parent 5044e3610a
commit 0ba8805d02
25 changed files with 279 additions and 294 deletions

View file

@ -76,7 +76,7 @@ Poll.prototype.link_macro = function(param, action, text) {
Poll.prototype.main_action = function() {
if (this.status === "closed") {
res.message = gettext("Sorry, this poll is closed. Voting is not possible.");
res.redirect(this.href("results"));
res.redirect(this.href("result"));
return;
}
if (req.postParams.vote) {
@ -190,7 +190,7 @@ Poll.remove = function() {
Poll.prototype.result_action = function() {
res.data.title = gettext('Results of poll "{0}"', this.question);
res.data.body = this.renderSkinAsString("Poll#result");
res.data.body = this.renderSkinAsString("Poll#results");
this.site.renderSkin("Site#page");
return;
};