mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-27 03:38:57 +02:00
Now the whole page gets refreshed on container changes, if we encounter issues with that we can improve it afterwards or roll back some cahnges already made in previous commits refs #4611
35 lines
948 B
JavaScript
Executable File
35 lines
948 B
JavaScript
Executable File
requirejs.config({
|
|
'baseUrl': window.base_url + '/js',
|
|
'urlArgs': "bust=" + (new Date()).getTime(),
|
|
'paths': {
|
|
'jquery': 'vendor/jquery-1.8.3',
|
|
'jqueryPlugins': 'vendor/jqueryPlugins/',
|
|
'bootstrap': 'vendor/bootstrap/bootstrap.min',
|
|
'history': 'vendor/history',
|
|
'logging': 'icinga/util/logging',
|
|
'URIjs': 'vendor/uri',
|
|
'datetimepicker': 'vendor/bootstrap/datetimepicker.min'
|
|
},
|
|
'shim': {
|
|
'datetimepicker': {
|
|
'exports': 'datetimepicker'
|
|
},
|
|
'jquery' : {
|
|
exports: 'jquery'
|
|
}
|
|
}
|
|
});
|
|
|
|
define(['jquery', 'history'], function ($) {
|
|
|
|
requirejs(['bootstrap'], function() {
|
|
requirejs(['datetimepicker']);
|
|
});
|
|
|
|
requirejs(['icinga/icinga'], function (Icinga) {
|
|
window.$ = $;
|
|
window.jQuery = $;
|
|
window.Icinga = Icinga;
|
|
});
|
|
|
|
}); |