mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Fix Activities type dropdowns [SCI-8498]
Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
parent
c58a852e2a
commit
456670dd15
1 changed files with 6 additions and 2 deletions
|
@ -716,7 +716,9 @@ var dropdownSelector = (function() {
|
|||
} else {
|
||||
// Or delete specific one
|
||||
deleteValue(selector, container, tagLabel.data('ds-tag-id'), tagLabel.data('ds-tag-group'));
|
||||
removeOptionFromSelector(selector, tagLabel.data('ds-tag-id'));
|
||||
if (selector.data('config').tagClass) {
|
||||
removeOptionFromSelector(selector, tagLabel.data('ds-tag-id'));
|
||||
}
|
||||
}
|
||||
}, 350);
|
||||
}
|
||||
|
@ -1010,7 +1012,9 @@ var dropdownSelector = (function() {
|
|||
currentData = getCurrentData($(selector).next());
|
||||
currentData.push(value);
|
||||
setData($(selector), currentData, skip_event);
|
||||
appendOptionToSelector(selector, value);
|
||||
if (selector.data('config').tagClass) {
|
||||
appendOptionToSelector(selector, value);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue