mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-24 21:24:52 +08:00
Fix dropdown render for columns manage modal
This commit is contained in:
parent
26bdabb0c3
commit
4fc37e12a0
2 changed files with 12 additions and 2 deletions
|
|
@ -163,7 +163,8 @@ var RepositoryColumns = (function() {
|
|||
optionLabel: delimiterOptionsRender,
|
||||
tagClass: 'delimiter-icon-dropdown',
|
||||
tagLabel: delimiterOptionsRender,
|
||||
disableSearch: true
|
||||
disableSearch: true,
|
||||
labelHTML: true
|
||||
};
|
||||
$.get(modalUrl, (data) => {
|
||||
$manageModal.find('.modal-content').html(data.html)
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
closeOnSelect: boolean, // Close dropdown after select
|
||||
disableSearch: boolean, // Disable search
|
||||
emptyOptionAjax: boolean, // Add empty option for ajax request
|
||||
labelHTML: bolean, // render as HTMLelement or text
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -635,7 +636,15 @@ var dropdownSelector = (function() {
|
|||
</div>
|
||||
<i class="fas fa-times ${selector.data('config').singleSelect ? 'hidden' : ''}"></i>
|
||||
</div>`).insertBefore(container.find('.input-field .search-field'));
|
||||
tag.find('.tag-label').text(label);
|
||||
|
||||
console.log(selector.data('config').labelHTML);
|
||||
|
||||
if (selector.data('config').labelHTML) {
|
||||
tag.find('.tag-label').html(label);
|
||||
} else {
|
||||
tag.find('.tag-label').text(label);
|
||||
}
|
||||
|
||||
// Now we need add delete action to tag
|
||||
tag.find('.fa-times').click(function(e) {
|
||||
var tagLabel = $(this).prev();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue