update cards
This commit is contained in:
parent
0659c5bdc1
commit
228cefadd8
19 changed files with 78 additions and 47 deletions
|
@ -65,7 +65,13 @@
|
|||
|
||||
var dlg = $(this).parents('.dialog')[0];
|
||||
|
||||
libraryoptionseditor.setContentType(dlg.querySelector('.libraryOptions'), value);
|
||||
libraryoptionseditor.setContentType(dlg.querySelector('.libraryOptions'), (value == 'mixed' ? '' : value));
|
||||
|
||||
if (value) {
|
||||
dlg.querySelector('.libraryOptions').classList.remove('hide');
|
||||
} else {
|
||||
dlg.querySelector('.libraryOptions').classList.add('hide');
|
||||
}
|
||||
|
||||
if (value == 'mixed') {
|
||||
return;
|
||||
|
@ -88,6 +94,7 @@
|
|||
|
||||
$('.collectionTypeFieldDescription', dlg).html(folderOption.message || '');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('.btnAddFolder', page).on('click', onAddButtonClick);
|
||||
|
@ -183,7 +190,9 @@
|
|||
}
|
||||
|
||||
function initLibraryOptions(dlg) {
|
||||
libraryoptionseditor.embed(dlg.querySelector('.libraryOptions'));
|
||||
libraryoptionseditor.embed(dlg.querySelector('.libraryOptions')).then(function() {
|
||||
$('#selectCollectionType', dlg).trigger('change');
|
||||
});
|
||||
}
|
||||
|
||||
function editor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue