rt 4.0.21 (RT#13852)
[freeside.git] / rt / share / html / Admin / Elements / EditRights
index 5d1e62f..20ee551 100644 (file)
@@ -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();
+              }
           }
       });