diff options
Diffstat (limited to 'install/ui/certificate.js')
-rwxr-xr-x | install/ui/certificate.js | 18 |
1 files changed, 16 insertions, 2 deletions
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; +}; |