From 9b362ce6e107ea176f9da6dc8c57d754aff7f648 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 23 Nov 2011 13:42:23 +0100 Subject: Modifying hosts to work with new concept https://fedorahosted.org/freeipa/ticket/2040 --- install/ui/certificate.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'install/ui/certificate.js') diff --git a/install/ui/certificate.js b/install/ui/certificate.js index c9d243ca..372edcda 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -712,9 +712,8 @@ IPA.cert.status_widget = function(spec) { }); }; - that.load = function(result) { + that.update = function() { - that.result = result; that.pkey = that.get_entity_pkey(that.result); var entity_certificate = that.get_entity_certificate(that.result); @@ -922,3 +921,18 @@ IPA.cert.status_widget = function(spec) { return that; }; + +IPA.cert.status_field = function(spec) { + + spec = spec || {}; + + var that = IPA.field(spec); + + that.load = function(result) { + + that.widget.result = result; + that.reset(); + }; + + return that; +}; -- cgit