Skip to content

Commit

Permalink
New feature - allow time_limit_action to progress to next page in gro…
Browse files Browse the repository at this point in the history
…up-by-group mode if there is only one question being displayed.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@7690 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Sep 29, 2009
1 parent a35e221 commit 840cf3d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions qanda.php
Expand Up @@ -1033,9 +1033,18 @@ function countdown(questionid,timer,action,warning,warninghide,disable){

if($thissurvey['format'] == "G")
{
global $gid;
$qcount=0;
foreach($_SESSION['fieldarray'] as $ib) {
if($ib[5] == $gid) {
$qcount++;
}
}
//Override all other options and just allow freezing, survey is presented in group by group mode
$output .="
action = 3;";
if($qcount > 1) {
$output .="
action = 3;";
}
}
$output .="
var timerdisplay='LS_question'+questionid+'_Timer';
Expand Down

0 comments on commit 840cf3d

Please sign in to comment.