* Re-implemented autosave feature (ie. automatic backup / restore) for stories and comments
* Removed obsolete rescue methods * Moved contents of many individual skin files as subskins in the corresponding prototype skin file * Moved commentform_macro of Story prototype into compatibility module
This commit is contained in:
parent
ec700a655f
commit
75644bde63
18 changed files with 132 additions and 146 deletions
|
@ -55,16 +55,13 @@ Stories.prototype.main_action = function() {
|
|||
};
|
||||
|
||||
Stories.prototype.create_action = function() {
|
||||
if (session.data.rescuedText) {
|
||||
restoreRescuedText();
|
||||
}
|
||||
|
||||
var story = new Story;
|
||||
if (req.postParams.save) {
|
||||
try {
|
||||
story.update(req.postParams);
|
||||
this.add(story);
|
||||
story.notify(req.action);
|
||||
delete session.data.backup;
|
||||
res.message = gettext("The story was successfully created.");
|
||||
res.redirect(story.href());
|
||||
} catch (ex) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue