feat: use category selector in category page

fix privilege shortcuts in group page after search
This commit is contained in:
Barış Soner Uşaklı
2020-07-30 14:55:28 -04:00
parent 560f3eb173
commit fb7bb8d400
6 changed files with 68 additions and 23 deletions

View File

@@ -16,8 +16,8 @@ define('admin/manage/category', [
$this.val($this.attr('data-value'));
});
$('#category-selector').on('change', function () {
ajaxify.go('admin/manage/categories/' + $(this).val() + window.location.hash);
categorySelector.init($('[component="category-selector"]'), function (selectedCategory) {
ajaxify.go('admin/manage/categories/' + selectedCategory.cid);
});
function enableColorPicker(idx, inputEl) {