(ui) make formatTokenizersUI repeatable by removing old tokenizers first

This commit is contained in:
Ad Schellevis 2015-07-29 10:03:43 +02:00
parent 8bd21e19a9
commit 1034aaada8

View File

@ -140,6 +140,10 @@ function updateServiceStatusUI(status) {
* reformat all tokenizers on this document
*/
function formatTokenizersUI(){
// remove old tokenizers (if any)
$('div[class="tokenize Tokenize"]').each(function(){
$(this).remove();
});
$('select[class="tokenize"]').each(function(){
if ($(this).prop("size")==0) {
maxDropdownHeight=String(36*5)+"px"; // default number of items