evalPoll doesn't require title anymore (since it isn't part of the edit-form anymore)

This commit is contained in:
Robert Gaggl 2003-01-05 22:27:19 +00:00
parent 806918f853
commit 2ab5f3ae7c

View file

@ -13,14 +13,13 @@ function evalPoll(param, creator) {
var result;
var choiceInput = param.choice;
if (param.choice_array) {
var choiceCnt = 0;
for (var i=0; i<param.choice_array.length; i++) {
if (param.choice_array[i]) {
choiceCnt++;
}
}
var choiceCnt = 0;
for (var i in param.choice_array) {
if (param.choice_array[i])
choiceCnt++;
}
}
if (param.title && param.question && creator && choiceCnt > 1) {
if (param.question && choiceCnt > 1) {
this.title = param.title;
this.question = param.question;
this.modifytime = new Date();