Fix alternative type for number-up setting
This commit is contained in:
parent
a330bdce18
commit
ee4428c3f3
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue