[更新]修改图文编辑删除功能

This commit is contained in:
Anyon 2017-05-15 18:23:40 +08:00
parent e46789f800
commit 84cf7a9bbc

View File

@ -244,7 +244,8 @@
/*! 删除操作图文 */
$body.off('click', '.upload-multiple-close').on('click', '.upload-multiple-close', function () {
$(this).parents('.news-item').remove();
var $box = $(this).parents('.news-item');
$box.add($box.next('hr')).remove();
$('.news-item').size() < 7 && $('.news-box .article-add').show();
});