mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-12 09:37:35 +01:00
buttons no longer reversed
This commit is contained in:
@@ -191,9 +191,7 @@ define('admin/manage/privileges', [
|
||||
$('.privilege-table-container').html(html);
|
||||
Privileges.exposeAssumedPrivileges();
|
||||
document.querySelectorAll('.privilege-filters').forEach((con, i) => {
|
||||
// Three buttons, placed in reverse order
|
||||
const lastIdx = $('.privilege-filters').first().find('button').length - 1;
|
||||
const idx = btnIndices[i] === undefined ? lastIdx : btnIndices[i];
|
||||
const idx = btnIndices[i] === undefined ? 0 : btnIndices[i];
|
||||
con.querySelectorAll('button')[idx].click();
|
||||
});
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[[admin/manage/categories:privileges.description]]
|
||||
</p>
|
||||
|
||||
<div class="lead">
|
||||
<div class="lead mb-3">
|
||||
[[admin/manage/categories:privileges.category-selector]]
|
||||
<!-- IMPORT partials/category-selector.tpl -->
|
||||
</div>
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
<th class="privilege-filters" colspan="100">
|
||||
<div class="btn-toolbar justify-content-end gap-1">
|
||||
<button type="button" data-filter="9,15" class="btn btn-outline-secondary">[[admin/manage/categories:privileges.section-viewing]]</button>
|
||||
<button type="button" data-filter="16,18" class="btn btn-outline-secondary">[[admin/manage/categories:privileges.section-moderation]]</button>
|
||||
<button type="button" data-filter="3,8" class="btn btn-outline-secondary">[[admin/manage/categories:privileges.section-posting]]</button>
|
||||
<button type="button" data-filter="16,18" class="btn btn-outline-secondary">[[admin/manage/categories:privileges.section-moderation]]</button>
|
||||
<!-- IF privileges.columnCountUserOther -->
|
||||
<button type="button" data-filter="19,99" class="btn btn-outline-secondary">[[admin/manage/categories:privileges.section-other]]</button>
|
||||
<!-- END -->
|
||||
|
||||
Reference in New Issue
Block a user