diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-07-21 09:07:23 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-07-21 15:34:30 +0000 |
commit | af339cd5468e234ddef9b476d33dc2a0b8215028 (patch) | |
tree | 0f94fd12cabec5157dbb41b5f2da25a491df90f4 /install/ui/hbac.js | |
parent | f210a08268003c1b2ac6aed7bda13be4d96f3abf (diff) | |
download | freeipa-af339cd5468e234ddef9b476d33dc2a0b8215028.tar.gz freeipa-af339cd5468e234ddef9b476d33dc2a0b8215028.tar.xz freeipa-af339cd5468e234ddef9b476d33dc2a0b8215028.zip |
Fixed problem loading data in HBAC/sudo details page.
In a recent change the details page was changed to create and locate
field containers with 'details-field' CSS class. The HBAC and sudo
custom details pages have been modified to use the same CSS class.
Ticket #1508
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r-- | install/ui/hbac.js | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js index d7c0b9462..387c03cee 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -578,7 +578,10 @@ IPA.hbacrule_details_general_section = function(spec) { td = $('<td/>').appendTo(tr); var field = that.get_field('cn'); - var span = $('<span/>', { 'name': 'cn' }).appendTo(td); + var span = $('<span/>', { + name: 'cn', + 'class': 'details-field' + }).appendTo(td); $('<label/>', { name: 'cn', @@ -603,7 +606,10 @@ IPA.hbacrule_details_general_section = function(spec) { td.append(param_info.label+':'); field = that.get_field('accessruletype'); - span = $('<span/>', { 'name': 'accessruletype' }).appendTo(td); + span = $('<span/>', { + name: 'accessruletype', + 'class': 'details-field' + }).appendTo(td); $('<input/>', { 'type': 'radio', @@ -645,7 +651,10 @@ IPA.hbacrule_details_general_section = function(spec) { }).appendTo(tr); field = that.get_field('description'); - span = $('<span/>', { 'name': 'description' }).appendTo(td); + span = $('<span/>', { + name: 'description', + 'class': 'details-field' + }).appendTo(td); $('<textarea/>', { 'name': 'description', @@ -670,7 +679,10 @@ IPA.hbacrule_details_general_section = function(spec) { }).appendTo(tr); field = that.get_field('ipaenabledflag'); - span = $('<span/>', { 'name': 'ipaenabledflag' }).appendTo(td); + span = $('<span/>', { + name: 'ipaenabledflag', + 'class': 'details-field' + }).appendTo(td); $('<input/>', { 'type': 'radio', @@ -757,7 +769,10 @@ IPA.hbacrule_accesstime_widget = function(spec) { container.append('<br/>'); - span = $('<span/>', { 'name': 'table' }).appendTo(container); + span = $('<span/>', { + name: 'table', + 'class': 'details-field' + }).appendTo(container); that.table.create(span); @@ -780,7 +795,7 @@ IPA.hbacrule_accesstime_widget = function(spec) { that.widget_setup(container); - var span = $('span[name="table"]', that.container); + var span = $('.details-field[name="table"]', that.container); that.table.setup(span); var button = $('input[name=remove]', span); |