From 69bc4f4955c8ee0bdbeea5ca340a003c128e9a58 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: May 20 2015 12:04:10 +0000 Subject: webui: rename IPA.user_* to IPA.user.* Or in other words, move all objects which belong to user module to the module. Therefore they no longer pollutes the main 'IPA' module. Therefore: require('freeipa/ipa').user == require('freeipa/user') Reviewed-By: David Kupka Reviewed-By: Thierry Bordaz --- diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js index 4f53a27..72d2950 100644 --- a/install/ui/src/freeipa/user.js +++ b/install/ui/src/freeipa/user.js @@ -125,7 +125,7 @@ return { fields: [ 'uid', { - $factory: IPA.user_password_widget, + $factory: IPA.user.password_widget, name: 'has_password', metadata: '@mo-param:user:userpassword' }, @@ -361,7 +361,7 @@ return { $pre_ops: [ IPA.user.association_facet_ss_pre_op ] }, adder_dialog: { - $factory: IPA.user_adder_dialog, + $factory: IPA.user.adder_dialog, sections: [ { fields: [ @@ -472,7 +472,7 @@ IPA.user.association_facet_ss_pre_op = function(spec, context) { }; -IPA.user_adder_dialog = function(spec) { +IPA.user.adder_dialog = function(spec) { var that = IPA.entity_adder_dialog(spec); @@ -501,7 +501,7 @@ IPA.user_adder_dialog = function(spec) { return that; }; -IPA.user_password_widget = function(spec) { +IPA.user.password_widget = function(spec) { spec = spec || {}; spec.read_only = true;