diff --git a/assets/js/init.js b/assets/js/init.js
new file mode 100644
index 0000000..21d2c08
--- /dev/null
+++ b/assets/js/init.js
@@ -0,0 +1,56 @@
+jconfirm.defaults = {
+ title: '',
+ titleClass: '',
+ type: 'default',
+ typeAnimated: true,
+ draggable: false,
+ animateFromElement: true,
+ smoothContent: true,
+ content: '',
+ buttons: {},
+ defaultButtons: {
+ ok: {
+ text: 'OK',
+ action: function () {
+ }
+ },
+ },
+ contentLoaded: function(data, status, xhr){
+ },
+ icon: '',
+ lazyOpen: false,
+ bgOpacity: null,
+ theme: 'supervan',
+ animation: 'scale',
+ closeAnimation: 'scale',
+ animationSpeed: 400,
+ animationBounce: 1,
+ rtl: false,
+ container: 'body',
+ containerFluid: false,
+ escapeKey: 'ok',
+ backgroundDismiss: true,
+ backgroundDismissAnimation: 'shake',
+ autoClose: false,
+ closeIcon: null,
+ closeIconClass: false,
+ watchInterval: 100,
+ columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1',
+ boxWidth: '50%',
+ scrollToPreviousElement: true,
+ scrollToPreviousElementAnimate: true,
+ useBootstrap: true,
+ offsetTop: 40,
+ offsetBottom: 40,
+ bootstrapClasses: {
+ container: 'container',
+ containerFluid: 'container-fluid',
+ row: 'row',
+ },
+ onContentReady: function () {},
+ onOpenBefore: function () {},
+ onOpen: function () {},
+ onClose: function () {},
+ onDestroy: function () {},
+ onAction: function () {}
+};
\ No newline at end of file
diff --git a/assets/js/map.js b/assets/js/map.js
index d74ca27..4d2c5a9 100755
--- a/assets/js/map.js
+++ b/assets/js/map.js
@@ -9,7 +9,6 @@ function get_name(id){
function clicked(elem){
$.alert({
title: 'Chargement...',
- theme: 'supervan',
content: function () {
let self = this;
let object = {
@@ -31,7 +30,7 @@ function clicked(elem){
}).fail(function(){
self.setContent('Something went wrong.');
});
- }
+ },
});
}
diff --git a/assets/js/planning.js b/assets/js/planning.js
index bf2062c..c6ac1b8 100755
--- a/assets/js/planning.js
+++ b/assets/js/planning.js
@@ -50,7 +50,6 @@ function clicked($elem){
console.log(data);
$.alert({
title: data['full_title'],
- theme: 'supervan',
content: data['description'],
});
}
diff --git a/assets/js/planningManager.js b/assets/js/planningManager.js
index 1d74369..60b837d 100644
--- a/assets/js/planningManager.js
+++ b/assets/js/planningManager.js
@@ -111,7 +111,6 @@ function showInfo(entry) {
if (entry !== undefined) {
$.alert({
title: 'Edition du planning',
- theme: 'supervan',
content: editEntryTemplate,
onOpenBefore: function () {
$('#startTimeInput').val(entry['start']);
diff --git a/assets/js/statsDisplay.js b/assets/js/statsDisplay.js
index bba8c3a..c09d456 100644
--- a/assets/js/statsDisplay.js
+++ b/assets/js/statsDisplay.js
@@ -20,7 +20,6 @@ function showScores(team) {
console.log(team);
$.alert({
title: nameTeam(team),
- theme:'supervan',
content: function () {
let self = this;
let object = {
diff --git a/includes/template.php b/includes/template.php
index 9057832..b618006 100755
--- a/includes/template.php
+++ b/includes/template.php
@@ -88,6 +88,7 @@ include($relativePath."includes/score_counter.php");
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous">
+