summaryrefslogtreecommitdiffstats
path: root/install/ui/certificate.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-11-23 13:42:23 +0100
committerEndi S. Dewata <edewata@redhat.com>2011-12-05 16:01:11 +0000
commit9b362ce6e107ea176f9da6dc8c57d754aff7f648 (patch)
tree1afd919c2d0a55a3fce6831160c15919eb5534ec /install/ui/certificate.js
parentb55d154375718650086cac60aa3b2bc485bd03d7 (diff)
downloadfreeipa.git-9b362ce6e107ea176f9da6dc8c57d754aff7f648.tar.gz
freeipa.git-9b362ce6e107ea176f9da6dc8c57d754aff7f648.tar.xz
freeipa.git-9b362ce6e107ea176f9da6dc8c57d754aff7f648.zip
Modifying hosts to work with new concept
https://fedorahosted.org/freeipa/ticket/2040
Diffstat (limited to 'install/ui/certificate.js')
-rwxr-xr-xinstall/ui/certificate.js18
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;
+};