mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
(ui) make formatTokenizersUI repeatable by removing old tokenizers first
This commit is contained in:
parent
8bd21e19a9
commit
1034aaada8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user