initial check-in
This commit is contained in:
parent
e48553b80e
commit
41a86bd5d5
3 changed files with 25 additions and 0 deletions
2
antville_dbpatch20011215.sql
Normal file
2
antville_dbpatch20011215.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
use antville;
|
||||||
|
update STORY set ISONLINE = 2 where ISONLINE = 1;
|
11
code/Day/objectFunctions.js
Normal file
11
code/Day/objectFunctions.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/**
|
||||||
|
* function checks if story is published in weblog
|
||||||
|
* @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;
|
||||||
|
}
|
12
code/Topic/objectFunctions.js
Normal file
12
code/Topic/objectFunctions.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* function checks if story is published in topic
|
||||||
|
* overwrites isStoryOnline-function of day
|
||||||
|
* @param Obj story to check
|
||||||
|
* @return Boolean true if online, false if not
|
||||||
|
*/
|
||||||
|
|
||||||
|
function isStoryOnline(st) {
|
||||||
|
if (parseInt(st.online,10) > 0)
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue