rem: var s = new Story(); s.discussions = this._parent.properties.get("discussions");  if (!session.data.referrer && req.data.http_referer) session.data.referrer = req.data.http_referer;  if (req.data.cancel) { var url = session.data.referrer ? session.data.referrer : this.href(); session.data.referrer = null; res.redirect(url); } else if (req.data.save || req.data.publish) { 
add: var story = new Story(); if (req.postParams.save) { 
context: Stories.prototype.create_action = function() {   // restore any rescued text   if (session.data.rescuedText)      restoreRescuedText();      var s = new Story();   s.discussions = this._parent.properties.get("discussions");   // storing referrer in session-cache in case user clicks cancel later   if (!session.data.referrer && req.data.http_referer)      session.data.referrer = req.data.http_referer;      if (req.data.cancel) {      var url = session.data.referrer ? session.data.referrer : this.href();      session.data.referrer = null;      res.redirect(url);   } else if (req.data.save || req.data.publish) {      //try {         var result = this.evalNewStory(req.data, session.user);         res.message = result.toString();         session.data.referrer = null;         res.redirect(result.url);      //} catch (err) {         res.message = err.toString();      //}   }      res.data.title =  getMessage("Story.addStoryTo", {siteTitle: this._parent.title});   res.data.action = this.href("create");   res.data.body = s.renderSkinAsString("edit");   this._parent.renderSkin("page");   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/4b8d6a823bd5d00f71cf836f5f540553b9fdd13f/Stories.js/clean/code/Stories/Stories.js