StoryMgr.deleteStory (storyObj)
delete a story including all the comments

  • Parameter Obj:
    Story-Object that should be deleted
  • Returns
    Obj Object containing two properties: - error (boolean): true if error happened, false if everything went fine - message (String): containing a message to user
Sourcecode in StoryMgr/objectFunctions.js:
1:   function deleteStory(storyObj) {
2:      storyObj.deleteAll();
3:      if (storyObj.online > 0)
4:         this._parent.lastupdate = new Date();
5:      storyObj.remove();
6:      return new Message("storyDelete");
7:   }