diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-02-08 20:25:03 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-08 20:25:29 -0500 |
commit | a677c3b0e9508b5b98bbf88a780b394c451d3774 (patch) | |
tree | 4339d5959ef1f4f4de2b9755022f070cd36dad26 /src/usr/local/www/system_groupmanager_addprivs.php | |
parent | 58e98079111ef6b5af1fa9ba711d508649d3a860 (diff) | |
download | pfsense-a677c3b0e9508b5b98bbf88a780b394c451d3774.zip pfsense-a677c3b0e9508b5b98bbf88a780b394c451d3774.tar.gz |
Fix help text index when the privs are filtered.
Diffstat (limited to 'src/usr/local/www/system_groupmanager_addprivs.php')
-rw-r--r-- | src/usr/local/www/system_groupmanager_addprivs.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/system_groupmanager_addprivs.php b/src/usr/local/www/system_groupmanager_addprivs.php index c9434d1..891f3f0 100644 --- a/src/usr/local/www/system_groupmanager_addprivs.php +++ b/src/usr/local/www/system_groupmanager_addprivs.php @@ -287,7 +287,10 @@ events.push(function() { // When the 'sysprivs" selector is clicked, we display a description $('.multiselect').click(function() { - $('#pdesc').html('<span class="text-info">' + descs[$(this).children('option:selected').index()] + '</span>'); + var targetoption = $(this).children('option:selected').val(); + var idx = $('.shadowselect option[value="' + targetoption + '"]').index(); + + $('#pdesc').html('<span class="text-info">' + descs[idx] + '</span>'); // and update the shadow list from the real list $(".multiselect option").each(function() { |