diff options
author | Endi S. Dewata <edewata@redhat.com> | 2014-04-07 16:39:29 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2014-04-15 14:50:37 -0400 |
commit | aae856cd189c23662fbed66b7ca93a3bc2fa0f6c (patch) | |
tree | 6ecc7d3d384a7e1599c028f98cd8d86a3c6e9869 /base/server/share/webapps | |
parent | 790167fc9bd475b78d693a2b3cf0c5e11c16137b (diff) | |
download | pki-aae856cd189c23662fbed66b7ca93a3bc2fa0f6c.tar.gz pki-aae856cd189c23662fbed66b7ca93a3bc2fa0f6c.tar.xz pki-aae856cd189c23662fbed66b7ca93a3bc2fa0f6c.zip |
Added change token status dialog.
A new dialog has been added to change the token status. The status
can be changed by clicking the Status value in the tokens table.
Initially the status is Uninitialized. The status can be changed
according to the allowed status transitions defined in the CS.cfg.
The status and reason fields in TokenRecord is now translated into
a single status field in TokenData. This way the UI only needs to
handle a single status field.
A new field has also been added to the database for token type.
Some issues displaying and updating some token attributes have been
fixed as well.
Ticket #654
Diffstat (limited to 'base/server/share/webapps')
-rw-r--r-- | base/server/share/webapps/pki/js/pki-ui.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/base/server/share/webapps/pki/js/pki-ui.js b/base/server/share/webapps/pki/js/pki-ui.js index 8314ca22f..c4ff6157b 100644 --- a/base/server/share/webapps/pki/js/pki-ui.js +++ b/base/server/share/webapps/pki/js/pki-ui.js @@ -291,10 +291,17 @@ var Dialog = Backbone.View.extend({ load: function() { var self = this; + // load input fields $("input", self.$el).each(function(index) { var input = $(this); self.loadField(input); }); + + // load drop-down lists + $("select", self.$el).each(function(index) { + var input = $(this); + self.loadField(input); + }); }, loadField: function(input) { var self = this; @@ -306,10 +313,17 @@ var Dialog = Backbone.View.extend({ save: function() { var self = this; + // save input fields $("input", self.$el).each(function(index) { var input = $(this); self.saveField(input); }); + + // save drop-down lists + $("select", self.$el).each(function(index) { + var input = $(this); + self.saveField(input); + }); }, saveField: function(input) { var self = this; |