mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
thought they all seemed pretty self-explanatory to me
This commit is contained in:
@@ -75,12 +75,10 @@ define('admin/manage/category', [
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update preview image size on change
|
|
||||||
$('[data-name="imageClass"]').on('change', function(ev) {
|
$('[data-name="imageClass"]').on('change', function(ev) {
|
||||||
$('.category-preview').css('background-size', $(this).val());
|
$('.category-preview').css('background-size', $(this).val());
|
||||||
});
|
});
|
||||||
|
|
||||||
// Colour Picker
|
|
||||||
$('[data-name="bgColor"], [data-name="color"]').each(enableColorPicker);
|
$('[data-name="bgColor"], [data-name="color"]').each(enableColorPicker);
|
||||||
|
|
||||||
$('#save').on('click', save);
|
$('#save').on('click', save);
|
||||||
@@ -101,7 +99,6 @@ define('admin/manage/category', [
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Image Uploader
|
|
||||||
$('.upload-button').on('click', function() {
|
$('.upload-button').on('click', function() {
|
||||||
var inputEl = $(this),
|
var inputEl = $(this),
|
||||||
cid = inputEl.attr('data-cid');
|
cid = inputEl.attr('data-cid');
|
||||||
@@ -114,7 +111,6 @@ define('admin/manage/category', [
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Image Remover
|
|
||||||
$('.delete-image').on('click', function(e) {
|
$('.delete-image').on('click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
@@ -127,12 +123,10 @@ define('admin/manage/category', [
|
|||||||
$(this).parent().addClass('hide').hide();
|
$(this).parent().addClass('hide').hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 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);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Parent Category Selector
|
|
||||||
$('button[data-action="setParent"], button[data-action="changeParent"]').on('click', Category.launchParentSelector);
|
$('button[data-action="setParent"], button[data-action="changeParent"]').on('click', Category.launchParentSelector);
|
||||||
$('button[data-action="removeParent"]').on('click', function() {
|
$('button[data-action="removeParent"]').on('click', function() {
|
||||||
var payload= {};
|
var payload= {};
|
||||||
@@ -153,7 +147,6 @@ define('admin/manage/category', [
|
|||||||
};
|
};
|
||||||
|
|
||||||
Category.setupPrivilegeTable = function() {
|
Category.setupPrivilegeTable = function() {
|
||||||
// Checkbox event capture
|
|
||||||
$('.privilege-table-container').on('change', 'input[type="checkbox"]', function() {
|
$('.privilege-table-container').on('change', 'input[type="checkbox"]', function() {
|
||||||
var checkboxEl = $(this),
|
var checkboxEl = $(this),
|
||||||
privilege = checkboxEl.parent().attr('data-privilege'),
|
privilege = checkboxEl.parent().attr('data-privilege'),
|
||||||
|
|||||||
Reference in New Issue
Block a user