summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_groupmanager_addprivs.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/system_groupmanager_addprivs.php')
-rw-r--r--src/usr/local/www/system_groupmanager_addprivs.php5
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() {
OpenPOWER on IntegriCloud