Skip to content

Commit

Permalink
Fixed issue #06919: Save as label set from within survey doesn't work…
Browse files Browse the repository at this point in the history
… in IE

Dev Handle un-editable subquestion codes when survey is activated
  • Loading branch information
tpartner committed Nov 28, 2012
1 parent 327b5c9 commit af66034
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions scripts/admin/subquestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,18 @@ function ajaxreqsave() {

// get code for the current scale
var code = new Array();
$('.code').each(function(index) {
if($(this).attr('id').substr(-1) === scale_id)
code.push($(this).val());
});
if($('.code').length > 0) { // Deactivated survey
$('.code').each(function(index) {
if($(this).attr('id').substr(-1) === scale_id)
code.push($(this).val());
});
}
else { // Activated survey
$('.answertable input[name^="code_"]').each(function(index) {
if($(this).attr('name').substr(-1) === scale_id)
code.push($(this).attr('value'));
});
}

answers = new Object();
languages = langs.split(';');
Expand Down

0 comments on commit af66034

Please sign in to comment.