mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
fix:removing category images via ACP
This commit is contained in:
@@ -119,6 +119,18 @@ define('admin/manage/category', [
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Image Remover
|
||||||
|
$('.delete-image').on('click', function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
var inputEl = $('.upload-button'),
|
||||||
|
previewBox = inputEl.parent().parent().siblings('.category-preview');
|
||||||
|
|
||||||
|
inputEl.val('');
|
||||||
|
previewBox.css('background-image', '');
|
||||||
|
modified(inputEl[0]);
|
||||||
|
});
|
||||||
|
|
||||||
// Icon selection
|
// Icon selection
|
||||||
$('.category-preview').on('click', function(ev) {
|
$('.category-preview').on('click', function(ev) {
|
||||||
iconSelect.init($(this).find('i'), modified);
|
iconSelect.init($(this).find('i'), modified);
|
||||||
|
|||||||
Reference in New Issue
Block a user