antville/code/Day/objectFunctions.js
2002-06-26 16:54:17 +00:00

24 lines
No EOL
473 B
JavaScript

/**
* function checks if story is published in site
* @param Obj story to check
* @return Boolean true if online, false if not
*/
function isStoryOnline(st) {
if (parseInt(st.online,10) == 2)
return true;
return false;
}
/**
* function deletes all childobjects of a day (recursive!)
*/
function deleteAll() {
for (var i=this.size();i>0;i--) {
var story = this.get(i-1);
story.deleteAll();
this.remove(story);
}
return true;
}