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 <dkupka@redhat.com>
Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
This commit is contained in:
Petr Vobornik 2015-04-21 18:16:17 +02:00
parent a4c0f780b7
commit 69bc4f4955

View File

@ -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;