#18649209 : fixed a bug that in a poll, users cannot set poll with multiple options

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7249 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-01-27 07:26:35 +00:00
parent f8449745e2
commit 9d6c3fe521
3 changed files with 8 additions and 7 deletions

View file

@ -61,9 +61,6 @@
</select>
</td>
</tr>
<tr>
<th scope="row"><div><label>{$lang->poll_chk_count}</label></div></th>
<td><input type="text" name="checkcount_tidx" value="1" size="1" class="inputTypeText" /></td>
</table>
<div id="poll_source" class="clear" style="display:none">
@ -72,6 +69,10 @@
<table cellspacing="0" class="rowTable gap1">
<col width="100" />
<col />
<tr>
<th scope="row"><div><label>{$lang->poll_chk_count}</label></div></th>
<td><input type="text" name="checkcount_tidx" value="1" size="1" class="inputTypeText" /></td>
</tr>
<tr>
<th scope="row"><div>{$lang->poll_title}</div></th>
<td><input type="text" name="title_tidx" class="inputTypeText w400" /></td>

View file

@ -26,9 +26,9 @@ function doPoll(fo_obj) {
var poll_srl_indexes = "";
for(var poll_srl_index in checkcount) {
if(!checkcount.hasOwnProperty(poll_srl_index)) continue;
var count = checkcount[poll_srl_index];
var count = parseInt(checkcount[poll_srl_index]);
var items = item[poll_srl_index];
if(items.length < 1 || count < items.length) {
if(items.length < 1 || count > items.length) {
alert(poll_alert_lang);
return false;
}

View file

@ -26,9 +26,9 @@ function doPoll(fo_obj) {
var poll_srl_indexes = "";
for(var poll_srl_index in checkcount) {
if(!checkcount.hasOwnProperty(poll_srl_index)) continue;
var count = checkcount[poll_srl_index];
var count = parseInt(checkcount[poll_srl_index]);
var items = item[poll_srl_index];
if(items.length < 1 || count < items.length) {
if(items.length < 1 || count > items.length) {
alert(poll_alert_lang);
return false;
}