diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-30 17:52:31 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:31 +0200 |
commit | 57c504a5b98eb95eead667d9760eaba3d4b35433 (patch) | |
tree | 00dc5c64b0b024b860d5030f6c2463c258d92b9c /install | |
parent | 13ad7da19a0120803ffbfecd3ea853871dbaabdd (diff) | |
download | freeipa.git-57c504a5b98eb95eead667d9760eaba3d4b35433.tar.gz freeipa.git-57c504a5b98eb95eead667d9760eaba3d4b35433.tar.xz freeipa.git-57c504a5b98eb95eead667d9760eaba3d4b35433.zip |
Fix crash on ssh key add
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/src/freeipa/widget.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 2d5d4ace..0fe046e4 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -3665,31 +3665,31 @@ IPA.sshkey_widget = function(spec) { that.get_status = function() { - var text = ''; + var status = ''; var value = that.key.key; if (that.original_key) { if (value !== that.original_key) { if (value === '') { - text = text.get('@i18n:objects.sshkeystore.status_mod_ns'); + status = text.get('@i18n:objects.sshkeystore.status_mod_ns'); } else { - text = text.get('@i18n:objects.sshkeystore.status_mod_s'); + status = text.get('@i18n:objects.sshkeystore.status_mod_s'); } } else { - text = that.key.fingerprint; + status = that.key.fingerprint; } } else { if (!value || value === '') { - text = text.get('@i18n:objects.sshkeystore.status_new_ns'); + status = text.get('@i18n:objects.sshkeystore.status_new_ns'); } else { - text = text.get('@i18n:objects.sshkeystore.status_new_s'); + status = text.get('@i18n:objects.sshkeystore.status_new_s'); } } - return text; + return status; }; that.set_user_value = function(value) { |