Skip to content

Commit

Permalink
Dev: Fixed issue (part 2): unable to disable samechoiceheight and sam…
Browse files Browse the repository at this point in the history
…elistheight

Dev: send "0", must parse
  • Loading branch information
Shnoulle committed Jan 10, 2019
1 parent 760bb53 commit b1b2f01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/packages/questions/ranking/scripts/ranking.js
Expand Up @@ -10,9 +10,9 @@ var RankingQuestion = function (options) {
var max_answers = options.max_answers,
min_answers = options.min_answers,
rankingName = options.rankingName,
showpopups = (typeof options.showpopups != 'undefined') ? options.showpopups : true,
samechoiceheight = (typeof options.samechoiceheight != 'undefined') ? options.samechoiceheight : true,
samelistheight = (typeof options.samelistheight != 'undefined') ? options.samelistheight : true,
showpopups = (typeof options.showpopups != 'undefined') ? parseInt(options.showpopups) : 1,
samechoiceheight = (typeof options.samechoiceheight != 'undefined') ? parseInt(options.samechoiceheight) : 1,
samelistheight = (typeof options.samelistheight != 'undefined') ? parseInt(options.samelistheight) : 1,
questionId = options.questionId;
//define reused variables
var relevancename= "relevance"+rankingName,
Expand Down

0 comments on commit b1b2f01

Please sign in to comment.