From ffd38b8cc321627097a26f7468ea71832269ca2e Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 20 Aug 2015 13:31:27 -0400 Subject: [PATCH] some UX tweaks to manage/category --- public/src/admin/manage/category.js | 2 +- src/views/admin/manage/category.tpl | 6 +----- .../admin/partials/categories/privileges.tpl | 16 ++++++---------- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/public/src/admin/manage/category.js b/public/src/admin/manage/category.js index 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('

Do you really want to purge this category "' + $('form.category').find('input[data-name="name"]').val() + '"?

Warning! All topics and posts in this category will be purged!

', function(confirm) { + bootbox.confirm('

Do you really want to purge this category "' + $('form.category').find('input[data-name="name"]').val() + '"?

Warning! All topics and posts in this category will be purged!

Purging a category will remove all topics and posts, and delete the category from the database. If you want to remove a category temporarily, you\'ll want to "disable" the category instead.

', function(confirm) { if (!confirm) { return; } diff --git a/src/views/admin/manage/category.tpl b/src/views/admin/manage/category.tpl index 781d0c349b..0719fb40a8 100644 --- a/src/views/admin/manage/category.tpl +++ b/src/views/admin/manage/category.tpl @@ -129,11 +129,7 @@
- -

- Purging a category will remove all topics and posts, and delete the category from the database. If you want to - remove a category temporarily, you'll want to "disable" the category instead. -

+ diff --git a/src/views/admin/partials/categories/privileges.tpl b/src/views/admin/partials/categories/privileges.tpl index eb97e6bcac..0fd2da313e 100644 --- a/src/views/admin/partials/categories/privileges.tpl +++ b/src/views/admin/partials/categories/privileges.tpl @@ -15,16 +15,14 @@ - + -
- - No user-specific privileges in this category. -
+ + No user-specific privileges in this category. @@ -52,16 +50,14 @@ - + -
- - No group-specific privileges in this category. -
+ + No group-specific privileges in this category.