[Rt-commit] rt branch, 4.0/retain-selection-in-admin-rights, updated. rt-4.0.4-152-g28c4024
? sunnavy
sunnavy at bestpractical.com
Wed May 2 13:15:48 EDT 2012
The branch, 4.0/retain-selection-in-admin-rights has been updated
via 28c40240e37c683dee4e70e71579a10c88ac355a (commit)
from dc1da3e8286a9b62b7e3685f1ac2ce21b95134ce (commit)
Summary of changes:
share/html/Admin/Elements/EditRights | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 28c40240e37c683dee4e70e71579a10c88ac355a
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu May 3 01:12:46 2012 +0800
retain the rights tab, see #19769
diff --git a/share/html/Admin/Elements/EditRights b/share/html/Admin/Elements/EditRights
index 6f05ca6..f7acac3 100644
--- a/share/html/Admin/Elements/EditRights
+++ b/share/html/Admin/Elements/EditRights
@@ -113,7 +113,19 @@ else {
}
});
- jQuery(".rights-editor .category-tabs").tabs();
+ var sync_tab_select = function ( ev, ui ) {
+ jQuery(".rights-editor .category-tabs").each( function () {
+ var item = jQuery(this);
+ var selected = item.tabs('option', 'selected') || 0;
+ if ( selected != ui.index ) {
+ item.tabs( { select: null } );
+ item.tabs('select', ui.index);
+ item.tabs({ select: sync_tab_select });
+ }
+ });
+ };
+
+ jQuery(".rights-editor .category-tabs").tabs({ select: sync_tab_select });
});
</script>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list