Fix alternative type for number-up setting

This commit is contained in:
Anton Thomasson 2021-07-19 16:14:33 +02:00
parent a330bdce18
commit ee4428c3f3

View file

@ -452,6 +452,20 @@ function limitChoices(name, choices, mimeType)
case "multiple-document-handling" :
// Only collation settings valid, multiple documents not used
return choices.filter(function(elem) {return elem.indexOf("collated") != -1});
case "number-up":
if(choices.constructor.name === "Object")
{
var choice_array = [];
for(var i=choices.low; i <= choices.high; i++)
{
choice_array.push(i);
}
return choice_array;
}
else
{
return choices;
}
default:
return choices;
}