From ea9d5e6f9aee8c371756b363925691ddc266eedf Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 31 Jan 2012 09:57:33 -0600 Subject: 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 --- install/ui/host.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/ui/host.js') diff --git a/install/ui/host.js b/install/ui/host.js index b6b1ebf3..12748f67 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) { -- cgit