main.js revision 2c6e1e062b5e873f228b9b285b3681afb0f93767
286N/A/**
286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
286N/A *
286N/A * Copyright (c) 2011-2012 ForgeRock AS. All rights reserved.
286N/A *
286N/A * The contents of this file are subject to the terms
286N/A * of the Common Development and Distribution License
286N/A * (the License). You may not use this file except in
286N/A * compliance with the License.
286N/A *
286N/A * You can obtain a copy of the License at
286N/A * http://forgerock.org/license/CDDLv1.0.html
286N/A * See the License for the specific language governing
286N/A * permission and limitations under the License.
286N/A *
286N/A * When distributing Covered Code, include this CDDL
286N/A * Header Notice in each file and include the License file
286N/A * at http://forgerock.org/license/CDDLv1.0.html
873N/A * If applicable, add the following below the CDDL Header,
286N/A * with the fields enclosed by brackets [] replaced by
286N/A * your own identifying information:
286N/A * "Portions Copyrighted [year] [name of copyright owner]"
286N/A */
286N/A
3232N/A/*global require, define*/
286N/A
286N/A
286N/A/**
286N/A * @author yaromin
286N/A */
2086N/A
2086N/Arequire.config({
2086N/A paths: {
286N/A mustache: "libs/mustache-0.7.0",
1177N/A i18next: "libs/i18next-1.5.8-min",
286N/A backbone: "libs/backbone-0.9.2-min",
286N/A underscore: "libs/underscore-1.3.3-min",
286N/A js2form: "libs/js2form-1.0",
1177N/A form2js: "libs/form2js-1.0",
1177N/A contentflow: "libs/contentflow",
2086N/A spin: "libs/spin-1.2.5-min",
2086N/A dataTable: "libs/datatables-1.9.3-min",
1177N/A jqueryui: "libs/jquery-ui-1.8.23.custom-min",
2086N/A xdate: "libs/xdate-0.7-min",
1177N/A doTimeout: "libs/jquery.ba-dotimeout-1.0-min",
286N/A handlebars: "libs/handlebars-1.0.rc.1",
1177N/A moment: "libs/moment-1.7.2-min"
1177N/A },
2086N/A
2086N/A shim: {
2086N/A mustache: {
2086N/A exports: "Mustache"
1177N/A },
2086N/A underscore: {
1177N/A exports: "_"
286N/A },
backbone: {
deps: ["underscore"],
exports: "Backbone"
},
js2form: {
exports: "js2form"
},
form2js: {
exports: "form2js"
},
contentflow: {
exports: "contentflow"
},
spin: {
exports: "spin"
},
dataTable: {
exports: "dataTable"
},
jqueryui: {
exports: "jqueryui"
},
xdate: {
exports: "xdate"
},
doTimeout: {
exports: "doTimeout"
},
handlebars: {
exports: "handlebars"
},
i18next: {
deps: ["handlebars"],
exports: "i18next"
},
moment: {
exports: "moment"
}
}
});
/**
* Loads all application on start, so each module will be available to
* required synchronously
*/
require([
"mustache",
"underscore",
"backbone",
"form2js",
"js2form",
"contentflow",
"spin",
"dataTable",
"jqueryui",
"xdate",
"moment",
"doTimeout",
"handlebars",
"i18next",
"org/forgerock/commons/ui/common/main/i18nManager",
"org/forgerock/commons/ui/common/util/Constants",
"org/forgerock/commons/ui/common/main/EventManager",
"config/main",
"org/forgerock/openidm/ui/common/util/Constants",
"org/forgerock/openidm/ui/admin/main",
"org/forgerock/commons/ui/user/main",
"org/forgerock/openidm/ui/user/delegates/UserDelegate",
"org/forgerock/commons/ui/common/main"
], function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, i18n, constants, eventManager) {
eventManager.sendEvent(constants.EVENT_DEPENDECIES_LOADED);
});