mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
커버이미지 선택 취소 기능
CK에디터 파일업로드의 커버이미지 선택을 취소할 수 있도록 하는 기능
This commit is contained in:
parent
6d182b6d11
commit
2441809743
1 changed files with 9 additions and 1 deletions
|
|
@ -409,10 +409,18 @@
|
|||
if(res.error != 0) return;
|
||||
|
||||
data.settings.filelistImages.find('li').removeClass('xefu-is-cover-image');
|
||||
|
||||
var $parentLi = $el.closest('li');
|
||||
|
||||
if(res.is_cover == 'N') {
|
||||
|
||||
$parentLi.removeClass('xefu-is-cover-image');
|
||||
|
||||
} else if(res.is_cover == 'Y') {
|
||||
|
||||
$parentLi.addClass('xefu-is-cover-image');
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue