2001-10-07 19:31:19 +00:00
|
|
|
autoLogin();
|
|
|
|
|
2001-09-05 21:54:06 +00:00
|
|
|
var deny = this.isDeleteDenied();
|
|
|
|
if (deny) {
|
|
|
|
res.message = deny;
|
2001-06-28 18:09:37 +00:00
|
|
|
res.redirect(this.weblog.href());
|
2001-09-05 21:54:06 +00:00
|
|
|
}
|
2001-06-18 08:57:33 +00:00
|
|
|
|
2001-09-05 21:54:06 +00:00
|
|
|
if (req.data.submit == "delete" || req.data.remove)
|
2001-11-18 13:22:43 +00:00
|
|
|
this.weblog.stories.deleteStory(this);
|
2001-09-05 21:54:06 +00:00
|
|
|
else if (req.data.submit == "cancel" || req.data.cancel)
|
2001-11-18 13:22:43 +00:00
|
|
|
res.redirect(this.weblog.stories.href());
|
2001-06-18 08:57:33 +00:00
|
|
|
|
2001-09-05 21:54:06 +00:00
|
|
|
res.skin = "weblog.page";
|
|
|
|
|
2001-06-18 08:57:33 +00:00
|
|
|
res.title = "Antville - " + this.weblog.title;
|
2001-09-05 21:54:06 +00:00
|
|
|
|
2001-08-26 19:27:27 +00:00
|
|
|
res.head = this.weblog.renderSkinAsString("javascript");
|
|
|
|
res.head += this.weblog.renderSkinAsString("style");
|
2001-06-18 08:57:33 +00:00
|
|
|
|
2001-09-05 21:54:06 +00:00
|
|
|
var skinParam = new Object();
|
|
|
|
skinParam.what = "the story "" + this.title + "" from <b>" + this.author.name + "</b>";
|
|
|
|
|
|
|
|
res.body = this.renderSkinAsString("delete",skinParam);
|