|
@@ -150,6 +150,11 @@
|
|
|
$('header', _$composer).after(data.compo);
|
|
|
}
|
|
|
_$composer.removeClass('ajax-loading');
|
|
|
+ if(!$('.field--name-documents .field__item', _$composer).length){
|
|
|
+ _$composer.addClass('empty');
|
|
|
+ }else{
|
|
|
+ _$composer.removeClass('empty');
|
|
|
+ }
|
|
|
initDragAndDropUI();
|
|
|
initUsedChutierInCompo();
|
|
|
$('body').trigger({
|
|
@@ -396,6 +401,7 @@
|
|
|
});
|
|
|
// console.log(documents);
|
|
|
initUsedChutierInCompo();
|
|
|
+ _$composer.removeClass('empty');
|
|
|
recordCompoList(cid, documents);
|
|
|
};
|
|
|
function recordCompoList(cid, docs){
|