Skip to content

Commit

Permalink
Fixed issue #13780: Ranked items are re-set when using "previous" button
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikvitt committed Jun 15, 2018
1 parent fe8df58 commit d6155fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/packages/questions/ranking/scripts/ranking.js
Expand Up @@ -124,14 +124,14 @@ var RankingQuestion = function (options) {
alertSurveyDialog(txtAlert, '');
}
},
loadDragDropRank = function (questionId) {
loadDragDropRank = function () {

// Update #relevance
$("[id^=" + relevancename + "]").val('0');
$('#sortable-rank-' + questionId + ' li').each(function () {
$(this).appendTo('#sortable-choice-' + questionId );
});
$('#question' + questionId + ' .select-item select').each(function (index) {
$('#question' + questionId + ' .select-item select :selected').each(function (index) {
if ($(this).val() != '') {
$("#" + relevancename + (index+1)).val("1");
$('#sortable-choice-' + questionId + ' li#' + rankingID + $(this).val()).appendTo('#sortable-rank-' + questionId);
Expand Down

0 comments on commit d6155fb

Please sign in to comment.