/edit_action |
edit action |
Sourcecode in File/actions.js:
1: function edit_action() { 2: if (req.data.cancel) 3: res.redirect(this.site.files.href()); 4: else if (req.data.save) { 5: res.message = this.evalFile(req.data, session.user); 6: res.redirect(this._parent.href()); 7: } 8: 9: res.data.action = this.href(req.action); 10: res.data.title = getMessage("File.editTitle", {fileAlias: this.alias}); 11: res.data.body = this.renderSkinAsString("edit"); 12: this.site.renderSkin("page"); 13: return; 14: } |