webui: fix user reset password dialog

Could not open user password dialog.

regression introduced in ed78dcfa3a

https://fedorahosted.org/freeipa/ticket/5131

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Petr Vobornik committed 2015-07-16 15:28:38 +02:00
1 parent 0700d340c7
commit 9083c528f7
2 files changed
+3 -3

No files matched your search

@@ -48,7 +48,6 @@ dialogs.password.default_fields_pre_op = function(spec) {
spec.title = spec.title || '@i18n:password.reset_password';
spec.width = spec.width || 400;
spec.method = spec.method || 'mod';
spec.success_message = spec.success_message || '@i18n:password.password_change_complete';
spec.confirm_button_label = spec.confirm_button_label || '@i18n:password.reset_password';
spec.sections = spec.sections || [
+3 -2
View File
@@ -29,13 +29,14 @@ define([
'./reg',
'./rpc',
'./text',
'./dialog',
'./dialogs/password',
'./details',
'./search',
'./association',
'./entity',
'./certificate'],
function(builder, IPA, $, phases, reg, rpc, text, password_dialog) {
function(builder, IPA, $, phases, reg, rpc, text, dialogs) {
/**
* User module
@@ -638,7 +639,7 @@ IPA.user.password_dialog_pre_op = function(spec) {
IPA.user.password_dialog = function(spec) {
var that = password_dialog.dialog(spec);
var that = dialogs.command_dialog(spec);
that.is_self_service = function() {
var self_service = that.args[0] === IPA.whoami.uid[0];