Hack to allow 20 questions per page until we support an arbitrary limit
This commit is contained in:
parent
efa370825c
commit
c049c91976
2 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ sub getSectionEditVars{
|
|||
$var{displayed_id} = $address->[0]+1;
|
||||
delete $var{questions};
|
||||
delete $var{questionsPerPage};
|
||||
for(1 .. 10){
|
||||
for(1 .. 20){
|
||||
# if($_ == $self->section($address)->{questionsPerPage}){
|
||||
if($_ == $object->{questionsPerPage}){
|
||||
push(@{$var{questionsPerPage}},{'index',$_,'selected',1});
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ Survey.SectionTemplate = new function(){
|
|||
html = html + "\
|
||||
<p>Question per Page:\
|
||||
<select name='questionsPerPage'>";
|
||||
for(var i=1;i<=10;i++){
|
||||
for(var i=1;i<=20;i++){
|
||||
if(i == params.questionsPerPage){
|
||||
html = html + "<option value='"+i+"' selected>"+i+"</option>";
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue