X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FElements%2FEditRights;h=ff8aece1774669d307a7c42a2bfaf2fa031de7bc;hp=1522543f78cfb9f91440f13ca0b80561b31db04f;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125 diff --git a/rt/share/html/Admin/Elements/EditRights b/rt/share/html/Admin/Elements/EditRights index 1522543f7..ff8aece17 100644 --- a/rt/share/html/Admin/Elements/EditRights +++ b/rt/share/html/Admin/Elements/EditRights @@ -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 %# %# %# (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(); + } } });