2013-06-14 13:51:44 +02:00
|
|
|
requirejs.config({
|
2013-09-03 18:43:17 +02:00
|
|
|
'baseUrl': window.base_url + '/js',
|
2013-09-11 17:11:13 +02:00
|
|
|
'urlArgs': "bust=" + (new Date()).getTime(),
|
2013-09-03 18:43:17 +02:00
|
|
|
'paths': {
|
2013-08-21 16:07:26 +02:00
|
|
|
'jquery': 'vendor/jquery-1.8.3',
|
2013-10-17 19:48:46 +02:00
|
|
|
'jquery_scrollto': 'vendor/jquery.scrollto',
|
2013-10-22 12:08:44 +02:00
|
|
|
'freetile': 'vendor/freetile',
|
2013-08-21 16:07:26 +02:00
|
|
|
'bootstrap': 'vendor/bootstrap/bootstrap.min',
|
|
|
|
'logging': 'icinga/util/logging',
|
2013-09-11 17:11:13 +02:00
|
|
|
'URIjs': 'vendor/uri',
|
2013-08-21 16:07:26 +02:00
|
|
|
'datetimepicker': 'vendor/bootstrap/datetimepicker.min'
|
2013-09-03 18:43:17 +02:00
|
|
|
},
|
|
|
|
'shim': {
|
|
|
|
'datetimepicker': {
|
|
|
|
'exports': 'datetimepicker'
|
|
|
|
},
|
2013-10-22 12:08:44 +02:00
|
|
|
|
2013-10-17 19:48:46 +02:00
|
|
|
'jquery_scrollto': {
|
|
|
|
exports: 'jquery_scrollto'
|
|
|
|
},
|
2013-10-22 12:08:44 +02:00
|
|
|
'freetile': {
|
|
|
|
exports: 'freetile'
|
|
|
|
},
|
2013-09-03 18:43:17 +02:00
|
|
|
'jquery' : {
|
|
|
|
exports: 'jquery'
|
|
|
|
}
|
2013-06-14 13:51:44 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-10-17 19:48:46 +02:00
|
|
|
define(['jquery'], function ($, history) {
|
|
|
|
window.$ = $;
|
|
|
|
window.jQuery = $;
|
2013-09-11 17:11:13 +02:00
|
|
|
|
2013-10-22 12:08:44 +02:00
|
|
|
requirejs(['bootstrap','vendor/imagesLoaded','jquery_scrollto', 'freetile'], function() {
|
2013-08-21 16:07:26 +02:00
|
|
|
requirejs(['datetimepicker']);
|
|
|
|
});
|
2013-06-19 13:21:25 +02:00
|
|
|
requirejs(['icinga/icinga'], function (Icinga) {
|
2013-06-14 13:51:44 +02:00
|
|
|
window.Icinga = Icinga;
|
|
|
|
});
|
2013-09-11 17:11:13 +02:00
|
|
|
|
2013-08-21 16:07:26 +02:00
|
|
|
});
|