[Rt-commit] rt branch, 4.0/retain-selection-in-admin-rights, updated. rt-4.0.4-153-gdcd173f

? sunnavy sunnavy at bestpractical.com
Wed May 2 13:23:26 EDT 2012


The branch, 4.0/retain-selection-in-admin-rights has been updated
       via  dcd173ff66815f299b986f9d075f1b78ec3c6f2a (commit)
      from  28c40240e37c683dee4e70e71579a10c88ac355a (commit)

Summary of changes:
 share/html/Admin/Elements/EditRights |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit dcd173ff66815f299b986f9d075f1b78ec3c6f2a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu May 3 01:23:18 2012 +0800

    a few comments to make the code clearer

diff --git a/share/html/Admin/Elements/EditRights b/share/html/Admin/Elements/EditRights
index f7acac3..34d557f 100644
--- a/share/html/Admin/Elements/EditRights
+++ b/share/html/Admin/Elements/EditRights
@@ -118,9 +118,10 @@ else {
               var item = jQuery(this);
               var selected = item.tabs('option', 'selected') || 0;
               if ( selected != ui.index ) {
+                  // temp disable sync or this will result in useless and endless loop
                   item.tabs( { select: null } );
                   item.tabs('select', ui.index);
-                  item.tabs({ select: sync_tab_select });
+                  item.tabs({ select: sync_tab_select }); // restore back
               }
           });
       };

-----------------------------------------------------------------------


More information about the Rt-commit mailing list