(mvc) add nbDropdownElements to tokenizer helper

This commit is contained in:
Ad Schellevis 2016-03-15 19:44:10 +01:00
parent 2a7a87c0b4
commit f985dae7da

View File

@ -155,11 +155,13 @@ function formatTokenizersUI(){
hint=$(this).data("hint");
width=$(this).data("width");
allownew=$(this).data("allownew");
nbDropdownElements=$(this).data("nbdropdownelements");
maxTokenContainerHeight=$(this).data("maxheight");
$(this).tokenize({
displayDropdownOnFocus: true,
newElements: allownew,
nbDropdownElements: nbDropdownElements,
placeholder:hint
});
$(this).parent().find('ul[class="TokensContainer"]').parent().css("width",width);