diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-01-31 09:57:33 -0600 |
---|---|---|
committer | Petr VobornÃk <pvoborni@redhat.com> | 2012-02-01 15:51:10 +0100 |
commit | ea9d5e6f9aee8c371756b363925691ddc266eedf (patch) | |
tree | 7161dac5823f7ced76d76c59d76ab257f758b479 /install/ui/host.js | |
parent | 4dfec211f7b99bc24364cfc9760534ec5e94b6c1 (diff) | |
download | freeipa-ea9d5e6f9aee8c371756b363925691ddc266eedf.tar.gz freeipa-ea9d5e6f9aee8c371756b363925691ddc266eedf.tar.xz freeipa-ea9d5e6f9aee8c371756b363925691ddc266eedf.zip |
Added icons for status column.
The status formatter was modified to show enabled/disabled icon
before the status text.
The format classes were renamed to formatter to avoid confusion
with the format() method. A new parameter 'type' was added to the
formatter to determine the output type (e.g. text/html).
Ticket #1996
Diffstat (limited to 'install/ui/host.js')
-rw-r--r-- | install/ui/host.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index b6b1ebf39..12748f673 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -40,7 +40,7 @@ IPA.host.entity = function(spec) { { name: 'has_keytab', label: IPA.messages.objects.host.enrolled, - format: IPA.boolean_format() + formatter: IPA.boolean_formatter() } ] }). @@ -467,11 +467,11 @@ IPA.field_factories['host_dnsrecord_entity_link'] = IPA.host_dnsrecord_entity_li IPA.widget_factories['host_dnsrecord_entity_link'] = IPA.link_widget; /* Take an LDAP format date in UTC and format it */ -IPA.utc_date_column_format = function(spec) { +IPA.utc_date_column_formatter = function(spec) { spec = spec || {}; - var that = IPA.format(spec); + var that = IPA.formatter(spec); that.format = function(value) { |