Commit 1034aaad authored by Ad Schellevis's avatar Ad Schellevis

(ui) make formatTokenizersUI repeatable by removing old tokenizers first

parent 8bd21e19
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment