diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-04-01 12:09:44 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-10 10:23:23 +0200 |
commit | 3eaa69a68681a2478a6feeff7fb9e4cf2a27deee (patch) | |
tree | 7848e0039b7844d3419c090796d930194a6c8667 /install/ui/src/freeipa/ipa.js | |
parent | 0e15a282e85b0e3eb71fd3fce1965646aeb47a27 (diff) | |
download | freeipa-3eaa69a68681a2478a6feeff7fb9e4cf2a27deee.tar.gz freeipa-3eaa69a68681a2478a6feeff7fb9e4cf2a27deee.tar.xz freeipa-3eaa69a68681a2478a6feeff7fb9e4cf2a27deee.zip |
webui: change navigation from RCUE to PatternFly
Mainly html and css changes.
Second level menus are absolutely positioned and so they don't adjust container
size making other elements to overlap.
side effect partially fixes:
https://fedorahosted.org/freeipa/ticket/3435
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/ipa.js')
-rw-r--r-- | install/ui/src/freeipa/ipa.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js index d1a02f540..ad70f9f71 100644 --- a/install/ui/src/freeipa/ipa.js +++ b/install/ui/src/freeipa/ipa.js @@ -318,7 +318,7 @@ var IPA = function () { */ that.display_activity_icon = function() { that.network_call_count++; - $('.network-activity-indicator').css('visibility', 'visible'); + $('.network-activity-indicator').css('display', ''); if (that.network_call_count === 1) { topic.publish('network-activity-start'); } @@ -333,7 +333,7 @@ var IPA = function () { that.network_call_count--; if (0 === that.network_call_count) { - $('.network-activity-indicator').css('visibility', 'hidden'); + $('.network-activity-indicator').css('display', 'none'); topic.publish('network-activity-end'); } }; @@ -583,14 +583,14 @@ IPA.reset_password = function(username, old_password, new_password) { */ IPA.update_password_expiration = function() { - var now, expires, notify_days, diff, message, container; + var now, expires, notify_days, diff, message, container, notify; expires = IPA.whoami.krbpasswordexpiration; expires = expires ? datetime.parse(expires[0]) : null; notify_days = IPA.server_config.ipapwdexpadvnotify; notify_days = notify_days ? notify_days[0] : 0; - + notify = false; now = new Date(); container = $('.header-passwordexpires'); @@ -602,11 +602,13 @@ IPA.update_password_expiration = function() { diff = Math.floor(diff / 86400000); if (diff <= notify_days) { + notify = true; message = text.get('@i18n:password.expires_in'); message = message.replace('${days}', diff); container.append(message); } } + container.toggle(notify); }; /** |