summaryrefslogtreecommitdiffstats
path: root/install/ui/user.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-08-27 10:57:47 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-08-29 12:00:06 +0200
commit81007ff38578588906737df3082b42fb7f2ee011 (patch)
tree367340e56e48f2288671eccc647c52405838b1b4 /install/ui/user.js
parent7d3aa96103b03ef50ec1f6d94e2f578d800163fc (diff)
downloadfreeipa-81007ff38578588906737df3082b42fb7f2ee011.tar.gz
freeipa-81007ff38578588906737df3082b42fb7f2ee011.tar.xz
freeipa-81007ff38578588906737df3082b42fb7f2ee011.zip
Successful action notification
User was not notified about success of actions executed from action list, action panel or facet cotrol bar. This patch adds IPA.notify_success(message) call. It creates a yellow notification area with supplied message in Web UI header in the middle of the green area (empty space of first level navigation). This area is displayed for 3s and then it fades out (800ms). It also fades out when it is clicked. This call is used(directly or indirectly) in: * search facets: delete, disable, enable actions * details facets: delete action * user details facet: reset password action * host details facet: unprovision, set OTP actions * service details facet: unprovision action * host and service details facet: request, revoke, restore certificates actions * group details facet: change to POSIX/external actions * dns zone details facet: add/remove permission actions https://fedorahosted.org/freeipa/ticket/2977
Diffstat (limited to 'install/ui/user.js')
-rw-r--r--install/ui/user.js18
1 files changed, 5 insertions, 13 deletions
diff --git a/install/ui/user.js b/install/ui/user.js
index 7bb5a5707..d0f1f5af0 100644
--- a/install/ui/user.js
+++ b/install/ui/user.js
@@ -57,20 +57,12 @@ IPA.user.entity = function(spec) {
],
actions: [
{
- name: 'disable',
- factory: IPA.batch_items_action,
- method: 'disable',
- needs_confirm: true,
- hide_cond: ['self-service'],
- enable_cond: ['item-selected']
+ factory: IPA.batch_disable_action,
+ hide_cond: ['self-service']
},
{
- name: 'enable',
- factory: IPA.batch_items_action,
- method: 'enable',
- needs_confirm: true,
- hide_cond: ['self-service'],
- enable_cond: ['item-selected']
+ factory: IPA.batch_enable_action,
+ hide_cond: ['self-service']
}
],
control_buttons: [
@@ -614,7 +606,7 @@ IPA.user_password_dialog = function(spec) {
if (that.success_handler) {
that.success_handler.call(this, data, text_status, xhr);
} else {
- alert(IPA.messages.password.password_change_complete);
+ IPA.notify_success(IPA.messages.password.password_change_complete);
that.close();
// refresh password expiration field