rt 4.0.23
[freeside.git] / rt / share / html / Admin / Elements / EditRights
index 1522543..ff8aece 100644 (file)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
 %#                                          <sales@bestpractical.com>
 %#
 %# (Except where explicitly superseded by other copyright notices)
@@ -96,6 +96,9 @@ if ($anchor =~ /AddPrincipal/) {
       jQuery(".rights-editor").tabs({
           select: function(ev, ui) {
               sync_anchor(ui.tab.hash);
+              if ( jQuery(ui.tab).find('input[type=text]').size() > 0 ) {
+                  jQuery(ui.tab).find('input[type=text]:first').focus();
+              }
           }
       });