agenda 4.7 bug javascript
This commit is contained in:
parent
598237dfd8
commit
0f8766bc8a
1
agenda/enum.json
Normal file
1
agenda/enum.json
Normal file
@ -0,0 +1 @@
|
||||
{"name":"agenda","realName":"Agenda","version":"4.7","update":"4.1","delete":true,"dataDirectory":"site\/data\/agenda\/"}
|
@ -18,10 +18,10 @@
|
||||
|
||||
$(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
|
||||
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
|
||||
var calendarEl = document.getElementById('calendar');
|
||||
@ -40,12 +40,12 @@
|
||||
},
|
||||
plugins: [ 'dayGrid', 'interaction' ],
|
||||
locale : 'fr',
|
||||
defaultView: '<?php echo $this->getData(['module', $this->getUrl(0), 'vue', 'vueagenda']) ;?>',
|
||||
defaultDate: '<?php echo $this->getData(['module', $this->getUrl(0), 'vue', 'debagenda']) ;?>',
|
||||
defaultView: '<?php echo $this->getData(["module", $this->getUrl(0), "vue", "vueagenda"]) ;?>',
|
||||
defaultDate: '<?php echo $this->getData(["module", $this->getUrl(0), "vue", "debagenda"]) ;?>',
|
||||
selectable: true,
|
||||
editable: true,
|
||||
//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
|
||||
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');
|
||||
@ -108,8 +108,3 @@
|
||||
calendar.render();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user