update cards

This commit is contained in:
Luke Pulverenti 2016-08-30 00:33:24 -04:00
parent 0659c5bdc1
commit 228cefadd8
19 changed files with 78 additions and 47 deletions

View file

@ -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() {