mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +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 {
|
} else {
|
||||||
// Or delete specific one
|
// Or delete specific one
|
||||||
deleteValue(selector, container, tagLabel.data('ds-tag-id'), tagLabel.data('ds-tag-group'));
|
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);
|
}, 350);
|
||||||
}
|
}
|
||||||
|
@ -1010,7 +1012,9 @@ var dropdownSelector = (function() {
|
||||||
currentData = getCurrentData($(selector).next());
|
currentData = getCurrentData($(selector).next());
|
||||||
currentData.push(value);
|
currentData.push(value);
|
||||||
setData($(selector), currentData, skip_event);
|
setData($(selector), currentData, skip_event);
|
||||||
appendOptionToSelector(selector, value);
|
if (selector.data('config').tagClass) {
|
||||||
|
appendOptionToSelector(selector, value);
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue