ui: prevent tokenizer reinit if not visible

Solves the reported issue but may not be the final fix.
May be a tokenizer library issue...

PR: https://github.com/opnsense/plugins/issues/769
This commit is contained in:
Franco Fichtner 2018-08-01 08:19:05 +02:00
parent ea9a77afd3
commit 1a915fe80c

View File

@ -238,7 +238,7 @@ function formatTokenizersUI() {
});
sender.addClass('tokenize2_init_done');
} else {
} else if (sender.is(":visible")) {
// unbind change event while loading initial content
sender.unbind('tokenize:tokens:change');