main.js revision a7647d748242a6792d634403718c6d4ea5d17588
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2014 ForgeRock AS. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/*global require, _ */
paths: {
js2form: "libs/js2form-2.0",
form2js: "libs/form2js-2.0",
spin: "libs/spin-2.0.1-min",
xdate: "libs/xdate-0.8-min",
},
shim: {
underscore: {
exports: "_"
},
backbone: {
deps: ["underscore"],
exports: "Backbone"
},
js2form: {
exports: "js2form"
},
form2js: {
exports: "form2js"
},
spin: {
exports: "spin"
},
xdate: {
exports: "xdate"
},
doTimeout: {
deps: ["jquery"],
exports: "doTimeout"
},
handlebars: {
exports: "handlebars"
},
sortable: {
deps: ["jquery"],
exports: "sortable"
},
i18next: {
deps: ["handlebars"],
exports: "i18next"
},
moment: {
exports: "moment"
},
jqueryui: {
deps: ["jquery"],
exports: "jqueryui"
},
i18nGrid: {
deps: ["jquery"]
},
clockPicker: {
deps: ["jquery"],
exports: "clockPicker"
},
deps: ["jquery"],
exports: "autosizeInput"
},
multiselect: {
deps: ["jqueryui"],
exports: "multiselect"
},
jqgrid: {
},
selectize: {
deps: ["jquery"]
}
}
});
/**
* Loads all application on start, so each module will be available to
* required synchronously
*/
require([
"underscore",
"backbone",
"form2js",
"js2form",
"spin",
"xdate",
"moment",
"doTimeout",
"handlebars",
"i18next",
"sortable",
"jqueryui",
"multiselect",
"jqgrid",
"clockPicker",
"autosizeInput",
"selectize",
"ThemeManager",
], function ( _, Backbone, form2js, js2form, spin, xdate, moment, doTimeout, Handlebars, i18n, sortable, jqueryui, multiselect, jqgrid, clockPicker, autosizeInput, selectize, i18nManager, constants, eventManager) {
});