main.js revision da94b90a76ad985d8b442a0571f96a2cf8e1d551
0N/A/**
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A *
0N/A * Copyright (c) 2014 ForgeRock AS. All rights reserved.
0N/A *
0N/A * The contents of this file are subject to the terms
0N/A * of the Common Development and Distribution License
0N/A * (the License). You may not use this file except in
0N/A * compliance with the License.
0N/A *
0N/A * You can obtain a copy of the License at
0N/A * http://forgerock.org/license/CDDLv1.0.html
0N/A * See the License for the specific language governing
0N/A * permission and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL
0N/A * Header Notice in each file and include the License file
0N/A * at http://forgerock.org/license/CDDLv1.0.html
0N/A * If applicable, add the following below the CDDL Header,
0N/A * with the fields enclosed by brackets [] replaced by
0N/A * your own identifying information:
0N/A * "Portions Copyrighted [year] [name of copyright owner]"
0N/A */
0N/A
0N/A/*global require, define*/
0N/A
0N/Arequire.config({
0N/A paths: {
0N/A less: "libs/less-1.5.1-min",
0N/A i18next: "libs/i18next-1.7.3-min",
0N/A i18nGrid: "libs/i18n/grid.locale-en",
0N/A backbone: "libs/backbone-1.1.0-min",
0N/A underscore: "libs/lodash-2.4.1-min",
0N/A js2form: "libs/js2form-2.0",
0N/A form2js: "libs/form2js-2.0",
0N/A spin: "libs/spin-2.0.1-min",
0N/A jquery: "libs/jquery-1.11.1-min",
0N/A jqueryui: "libs/jquery-ui-1.11.1-min",
0N/A jqgrid: "libs/jquery.jqGrid-4.5.4-min",
0N/A gentleSelect: "libs/jquery-gentleSelect-0.1.3.1-min",
0N/A cron: "libs/jquery-cron-r2427",
0N/A xdate: "libs/xdate-0.8-min",
0N/A doTimeout: "libs/jquery.ba-dotimeout-1.0-min",
0N/A handlebars: "libs/handlebars-1.3.0-min",
0N/A moment: "libs/moment-2.8.1-min",
0N/A AuthnDelegate: "org/forgerock/openidm/ui/common/delegates/AuthnDelegate",
0N/A jsonEditor: "libs/jsoneditor-0.7.9-min",
0N/A ThemeManager: "org/forgerock/openidm/ui/common/util/ThemeManager",
0N/A "ldapjs-filter": "libs/ldapjs-filter-2253-min"
0N/A },
0N/A
0N/A shim: {
0N/A underscore: {
0N/A exports: "_"
0N/A },
0N/A backbone: {
0N/A deps: ["underscore"],
0N/A exports: "Backbone"
0N/A },
0N/A js2form: {
0N/A exports: "js2form"
0N/A },
0N/A form2js: {
0N/A exports: "form2js"
0N/A },
0N/A spin: {
0N/A exports: "spin"
0N/A },
0N/A jsonEditor: {
0N/A exports: "jsonEditor"
0N/A },
0N/A cron: {
0N/A deps: ["jquery"]
0N/A },
0N/A gentleSelect: {
0N/A deps: ["jquery"]
0N/A },
0N/A jqueryui: {
0N/A deps: ["jquery"],
0N/A exports: "jqueryui"
0N/A },
0N/A i18nGrid: {
0N/A deps: ["jquery"]
0N/A },
0N/A jqgrid: {
0N/A deps: ["jqueryui", "i18nGrid"]
0N/A },
0N/A xdate: {
0N/A exports: "xdate"
0N/A },
0N/A doTimeout: {
0N/A deps: ["jquery"],
0N/A exports: "doTimeout"
0N/A },
0N/A handlebars: {
0N/A exports: "handlebars"
0N/A },
0N/A i18next: {
0N/A deps: ["handlebars"],
0N/A exports: "i18next"
0N/A },
0N/A moment: {
0N/A exports: "moment"
0N/A }
0N/A }
0N/A});
0N/A
0N/A/**
0N/A * Loads all application on start, so each module will be available to
0N/A * required synchronously
0N/A */
0N/Arequire([
0N/A "less",
0N/A "underscore",
0N/A "backbone",
0N/A "form2js",
0N/A "js2form",
0N/A "spin",
0N/A "jqgrid",
0N/A "jqueryui",
0N/A "gentleSelect",
0N/A "cron",
0N/A "xdate",
0N/A "moment",
0N/A "doTimeout",
0N/A "handlebars",
0N/A "i18next",
0N/A "jsonEditor",
0N/A "org/forgerock/commons/ui/common/main/i18nManager",
0N/A "org/forgerock/commons/ui/common/util/Constants",
0N/A "org/forgerock/commons/ui/common/main/EventManager",
0N/A "org/forgerock/openidm/ui/common/main",
0N/A "org/forgerock/openidm/ui/admin/main",
0N/A "org/forgerock/commons/ui/common/main",
0N/A "AuthnDelegate",
0N/A "ThemeManager",
0N/A "config/main"
0N/A], function(
less,
underscore,
backbone,
form2js,
js2form,
spin,
jqgrid,
jqueryui,
gentleSelect,
cron,
xdate,
moment,
doTimeout,
handlebars,
i18next,
jsonEditor,
i18n,
constants,
eventManager) {
eventManager.sendEvent(constants.EVENT_DEPENDECIES_LOADED);
});