agenda 4.7 bug javascript

This commit is contained in:
Fred Tempez 2024-08-29 17:30:25 +02:00
parent 598237dfd8
commit 0f8766bc8a
2 changed files with 6 additions and 10 deletions

1
agenda/enum.json Normal file
View File

@ -0,0 +1 @@
{"name":"agenda","realName":"Agenda","version":"4.7","update":"4.1","delete":true,"dataDirectory":"site\/data\/agenda\/"}

View File

@ -18,10 +18,10 @@
$(document).ready(function() { $(document).ready(function() {
/* Pour liaison entre variables php et javascript dans index.js.php */ /* Pour liaison entre constiables php et javascript dans index.js.php */
// Integer: largeur MAXI du diaporama, en pixels. Par exemple : 800, 920, 500 // Integer: largeur MAXI du diaporama, en pixels. Par exemple : 800, 920, 500
var maxwidth=<?php echo $this->getData(['module', $this->getUrl(0),'config','maxiWidth']); ?>; var maxwidth='<?php echo $this->getData(["module", $this->getUrl(0),"config","maxiWidth"]); ?>';
//Fullcalendar : instanciation, initialisations //Fullcalendar : instanciation, initialisations
var calendarEl = document.getElementById('calendar'); var calendarEl = document.getElementById('calendar');
@ -40,12 +40,12 @@
}, },
plugins: [ 'dayGrid', 'interaction' ], plugins: [ 'dayGrid', 'interaction' ],
locale : 'fr', locale : 'fr',
defaultView: '<?php echo $this->getData(['module', $this->getUrl(0), 'vue', 'vueagenda']) ;?>', defaultView: '<?php echo $this->getData(["module", $this->getUrl(0), "vue", "vueagenda"]) ;?>',
defaultDate: '<?php echo $this->getData(['module', $this->getUrl(0), 'vue', 'debagenda']) ;?>', defaultDate: '<?php echo $this->getData(["module", $this->getUrl(0), "vue", "debagenda"]) ;?>',
selectable: true, selectable: true,
editable: true, editable: true,
//afficher les évènements à partir d'un fichier JSON //afficher les évènements à partir d'un fichier JSON
events : '<?php echo $module::DATAMODULE.'data/'.$this->getUrl(0); ?>'+'_visible/events.json', events : '<?php echo $module::DATAMODULE."data/".$this->getUrl(0); ?>'+'_visible/events.json',
//créer un évènement //créer un évènement
dateClick: function(info) { dateClick: function(info) {
window.open('<?php echo helper::baseUrl() . $this->getUrl(0); ?>'+ '/da:'+ info.dateStr + 'vue:' + info.view.type + 'deb:' + calendar.formatIso(info.view.currentStart),'_self'); window.open('<?php echo helper::baseUrl() . $this->getUrl(0); ?>'+ '/da:'+ info.dateStr + 'vue:' + info.view.type + 'deb:' + calendar.formatIso(info.view.currentStart),'_self');
@ -108,8 +108,3 @@
calendar.render(); calendar.render();
}); });
}); });