Skip to content

Commit

Permalink
Fixed issue #12146: Edit answer options: New answer option UI error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mfavetti authored and c-schmitz committed Mar 6, 2017
1 parent 9ea8d19 commit 3134447
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions scripts/admin/answers.js
Expand Up @@ -171,18 +171,17 @@ function addinput()
$codes = JSON.stringify(codes);

//We build the datas for the request
datas = 'surveyid='+$elDatas.data('surveyid');
datas += '&gid='+$elDatas.data('gid');
datas += '&qid='+$elDatas.data('qid');
datas += '&codes='+$codes;
datas += '&scale_id='+$(this).data('scale-id');
datas += '&type=answer';
datas += '&position='+$(this).data('position');
datas += '&languages='+$languages;
console.log($elDatas.data('assessmentvisible'));
if( $elDatas.data('assessmentvisible') == 1 ){
datas += '&assessmentvisible=true';
}
datas = {
'surveyid': $elDatas.data('surveyid'),
'gid': $elDatas.data('gid'),
'qid': $elDatas.data('qid'),
'codes': $codes,
'scale_id': $(this).data('scale-id'),
'type': 'answer',
'position': $(this).data('position'),
'languages': $languages,
'assessmentvisible': $elDatas.data('assessmentvisible') == 1,
};

$scaleId = $(this).data('scale-id')
$position = $(this).data('position')
Expand Down

0 comments on commit 3134447

Please sign in to comment.