[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-764-g5434cc0
Thomas Sibley
trs at bestpractical.com
Wed Sep 15 10:04:30 EDT 2010
The branch, 3.9-trunk has been updated
via 5434cc064f96d4b511bc8455467930ce52ce7edc (commit)
from 3b4e4017ce519df4df3fd94c249f08c47941e44d (commit)
Summary of changes:
share/html/Admin/Elements/EditRights | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 5434cc064f96d4b511bc8455467930ce52ce7edc
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Sep 14 16:52:48 2010 -0400
Sort rights based on description rather than the short name
diff --git a/share/html/Admin/Elements/EditRights b/share/html/Admin/Elements/EditRights
index 55c2bb0..6fd3453 100644
--- a/share/html/Admin/Elements/EditRights
+++ b/share/html/Admin/Elements/EditRights
@@ -27,7 +27,7 @@ unless ( $AddPrincipal ) {
<script type="text/javascript">
jQuery(function() {
- jQuery(".rights-editor").tabs();
+ jQuery(".rights-editor").tabs({ selected: -1 });
jQuery(".rights-editor .category-tabs").tabs();
});
</script>
@@ -147,7 +147,7 @@ if ($obj->isa('RT::Group') and $obj->Domain eq 'UserDefined') {
% for my $category (sort { $catsort{$a} <=> $catsort{$b} } keys %categories) {
<div id="<% "$id-$category" %>">
<ul class="rights-list">
-% for my $right (sort @{$categories{$category}}) {
+% for my $right (sort { $available_rights{$a} cmp $available_rights{$b} } @{$categories{$category}}) {
<li>
<input type="checkbox" class="checkbox"
name="SetRights-<% $acldesc %>"
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list