Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/LimeSurvey/LimeSurvey
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Feb 16, 2016
2 parents 23214e1 + 8452b6e commit 1e553d5
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/core/Survey_Common_Action.php
Expand Up @@ -912,7 +912,7 @@ function _surveysidemenu($aData)
{
foreach($aGroups as $group)
{
$group->aQuestions = Question::model()->findAllByAttributes(array("sid"=>$iSurveyID, "gid"=>$group['gid'],"language"=>$sumresult1->defaultlanguage->surveyls_language));
$group->aQuestions = Question::model()->findAllByAttributes(array("sid"=>$iSurveyID, "gid"=>$group['gid'],"language"=>$sumresult1->defaultlanguage->surveyls_language), array('order'=>'question_order ASC'));
}
}
$aData['aGroups'] = $aGroups;
Expand Down
7 changes: 5 additions & 2 deletions templates/default/css/template.css
Expand Up @@ -119,6 +119,9 @@ li.responsive-content
display: block;
}

.no-more-tables table.subquestions-list td {
text-align: left;
}

/* Hide table headers (but not display: none;, for accessibility) */
.no-more-tables thead tr {
Expand All @@ -142,7 +145,7 @@ li.responsive-content
min-height: 2em;
border: none;
position: relative;
padding-left: 95%;
/*padding-left: 95%;*/
padding-bottom: 1em;
white-space: normal;
text-align:left;
Expand All @@ -169,7 +172,7 @@ li.responsive-content
/*
Label the data
*/
.no-more-tables td:before { content: attr(data-title); }
/*.no-more-tables td:before { content: attr(data-title); }*/

.no-more-tables-10-point tr{
padding-bottom: 100px;
Expand Down
16 changes: 16 additions & 0 deletions templates/default/scripts/template.js
Expand Up @@ -75,6 +75,22 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.

$(document).ready(function(){

if($(window).width() < 800)
{
if($('.no-more-tables').length > 0)
{
$('.no-more-tables').find('td').each(function(){
$that = $(this);
//$content = '<td>'+$that.data('title')+'</td>';
$label = $that.data('title');
$input = $that.find('input');

//$that.empty().prepend($content);
$that.find('label').prepend($label);
});
}
}

var outerframeDistanceFromTop = 50;
// Manage top container
if(!$.trim($('#topContainer .container').html()))
Expand Down
7 changes: 5 additions & 2 deletions templates/news_paper/css/template.css
Expand Up @@ -119,6 +119,9 @@ li.responsive-content
display: block;
}

.no-more-tables table.subquestions-list td {
text-align: left;
}

/* Hide table headers (but not display: none;, for accessibility) */
.no-more-tables thead tr {
Expand All @@ -142,7 +145,7 @@ li.responsive-content
min-height: 2em;
border: none;
position: relative;
padding-left: 95%;
/*padding-left: 95%;*/
padding-bottom: 1em;
white-space: normal;
text-align:left;
Expand All @@ -169,7 +172,7 @@ li.responsive-content
/*
Label the data
*/
.no-more-tables td:before { content: attr(data-title); }
/*.no-more-tables td:before { content: attr(data-title); }*/

.no-more-tables-10-point tr{
padding-bottom: 100px;
Expand Down
16 changes: 16 additions & 0 deletions templates/news_paper/scripts/template.js
Expand Up @@ -75,6 +75,22 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.

$(document).ready(function(){

if($(window).width() < 800)
{
if($('.no-more-tables').length > 0)
{
$('.no-more-tables').find('td').each(function(){
$that = $(this);
//$content = '<td>'+$that.data('title')+'</td>';
$label = $that.data('title');
$input = $that.find('input');

//$that.empty().prepend($content);
$that.find('label').prepend($label);
});
}
}

var outerframeDistanceFromTop = 50;
// Manage top container
if(!$.trim($('#topContainer .container').html()))
Expand Down
7 changes: 5 additions & 2 deletions templates/ubuntu_orange/css/template.css
Expand Up @@ -119,6 +119,9 @@ li.responsive-content
display: block;
}

.no-more-tables table.subquestions-list td {
text-align: left;
}

/* Hide table headers (but not display: none;, for accessibility) */
.no-more-tables thead tr {
Expand All @@ -142,7 +145,7 @@ li.responsive-content
min-height: 2em;
border: none;
position: relative;
padding-left: 95%;
/*padding-left: 95%;*/
padding-bottom: 1em;
white-space: normal;
text-align:left;
Expand All @@ -169,7 +172,7 @@ li.responsive-content
/*
Label the data
*/
.no-more-tables td:before { content: attr(data-title); }
/*.no-more-tables td:before { content: attr(data-title); }*/

.no-more-tables-10-point tr{
padding-bottom: 100px;
Expand Down
16 changes: 16 additions & 0 deletions templates/ubuntu_orange/scripts/template.js
Expand Up @@ -75,6 +75,22 @@ function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.

$(document).ready(function(){

if($(window).width() < 800)
{
if($('.no-more-tables').length > 0)
{
$('.no-more-tables').find('td').each(function(){
$that = $(this);
//$content = '<td>'+$that.data('title')+'</td>';
$label = $that.data('title');
$input = $that.find('input');

//$that.empty().prepend($content);
$that.find('label').prepend($label);
});
}
}

var outerframeDistanceFromTop = 50;
// Manage top container
if(!$.trim($('#topContainer .container').html()))
Expand Down

0 comments on commit 1e553d5

Please sign in to comment.