mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
delegated event for category save
This commit is contained in:
@@ -122,7 +122,7 @@ define(['uploader'], function(uploader) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.save').on('click', save);
|
|
||||||
$('#addNew').on('click', showCreateCategoryModal);
|
$('#addNew').on('click', showCreateCategoryModal);
|
||||||
$('#create-category-btn').on('click', createNewCategory);
|
$('#create-category-btn').on('click', createNewCategory);
|
||||||
|
|
||||||
@@ -177,6 +177,8 @@ define(['uploader'], function(uploader) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.admin-categories').on('click', '.save', save);
|
||||||
|
|
||||||
// Permissions modal
|
// Permissions modal
|
||||||
$('.admin-categories').on('click', '.permissions', function() {
|
$('.admin-categories').on('click', '.permissions', function() {
|
||||||
var cid = $(this).parents('li[data-cid]').attr('data-cid');
|
var cid = $(this).parents('li[data-cid]').attr('data-cid');
|
||||||
|
|||||||
Reference in New Issue
Block a user