Node.js based forum software built for the modern web
some UX tweaks to manage/category
psychobunnyffd38b8cc321
diff --git a/public/src/admin/manage/category.js b/public/src/admin/manage/category.jsindex 301535314f..64633429e4 100644--- a/public/src/admin/manage/category.js+++ b/public/src/admin/manage/category.js@@ -96,7 +96,7 @@ define('admin/manage/category', [$('.purge').on('click', function(e) {e.preventDefault();- bootbox.confirm('<p class="lead">Do you really want to purge this category "' + $('form.category').find('input[data-name="name"]').val() + '"?</p><p><strong class="text-danger">Warning!</strong> All topics and posts in this category will be purged!</p>', function(confirm) {+ bootbox.confirm('<p class="lead">Do you really want to purge this category "' + $('form.category').find('input[data-name="name"]').val() + '"?</p><h5><strong class="text-danger">Warning!</strong> All topics and posts in this category will be purged!</h5> <p class="help-block">Purging a category will remove all topics and posts, and delete the category from the database. If you want to remove a category <em>temporarily</em>, you\'ll want to "disable" the category instead.</p>', function(confirm) {if (!confirm) {return;}diff --git a/src/views/admin/manage/category.tpl b/src/views/admin/manage/category.tplindex 781d0c349b..0719fb40a8 100644--- a/src/views/admin/manage/category.tpl+++ b/src/views/admin/manage/category.tpl@@ -129,11 +129,7 @@</div></div><hr />- <button class="btn btn-danger btn-block btn-xs purge"><i class="fa fa-eraser"></i> Purge Category</button>- <p class="help-block">- Purging a category will remove all topics and posts, and delete the category from the database. If you want to- remove a category <em>temporarily</em>, you'll want to "disable" the category instead.- </p>+ <button class="btn btn-danger btn-block purge"><i class="fa fa-eraser"></i> Purge Category</button></div></div></div>diff --git a/src/views/admin/partials/categories/privileges.tpl b/src/views/admin/partials/categories/privileges.tplindex eb97e6bcac..0fd2da313e 100644--- a/src/views/admin/partials/categories/privileges.tpl+++ b/src/views/admin/partials/categories/privileges.tpl@@ -15,16 +15,14 @@<!-- END privileges.users --><tr><td colspan="{privileges.columnCount}">- <button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.user"><i class="fa fa-plus"></i> Add User</button>+ <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user"> Add User</button></td></tr><!-- ELSE --><tr><td colspan="{privileges.columnCount}">- <div class="alert alert-info">- <button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.user"><i class="fa fa-plus"></i> Add User</button>- No user-specific privileges in this category.- </div>+ <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.user"> Add User</button>+ No user-specific privileges in this category.</td></tr><!-- ENDIF privileges.users.length -->@@ -52,16 +50,14 @@<!-- END privileges.groups --><tr><td colspan="{privileges.columnCount}">- <button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.group"><i class="fa fa-plus"></i> Add Group</button>+ <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.group"> Add Group</button></td></tr><!-- ELSE --><tr><td colspan="{privileges.columnCount}">- <div class="alert alert-info">- <button type="button" class="btn btn-primary btn-xs pull-right" data-ajaxify="false" data-action="search.group"><i class="fa fa-plus"></i> Add Group</button>- No group-specific privileges in this category.- </div>+ <button type="button" class="btn btn-primary pull-right" data-ajaxify="false" data-action="search.group"> Add Group</button>+ No group-specific privileges in this category.</td></tr><!-- ENDIF privileges.groups.length -->