Commit bc513adb by Simon

Permet d'ajouter des heures par défaut

parent eda77b8c
(function($) { (function($) {
const CLOSEIMG = 'assets/lib/doodle/css/close.png'; const CLOSEIMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABS2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+IEmuOgAAAMpJREFUOI3Nkk0KglAQgL/3NPEKXSX62waB0F7w7y5BQRcIpU5Qd6ikDhJ6Ahcv9LUoWhmYETS7meH7ZgZGFIE7AWKgy2eRAaFsCfNkYtkSfknkFzAAvxHY8yXmcPzKzcEIe7GqFZh1xdt+hxVEj6Sq6LgeKlk3F5SXFCXA8iMQApWsKc9p8xMeHQlCACCM2jnvNzB6fSwvRG1i0BrLj9BoytOhmcCcOqhtQpkeAVBAx5nVCkQRuPrtfg3iPx4p+4LPJRABeQv4CoR3Jng1ltK2xpYAAAAASUVORK5CYII=';
/** /**
* doodle Object * doodle Object
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
this.config = config; this.config = config;
this.json = null; this.json = null;
this.days = []; this.days = [];
this.hours = []; this.hours = this.config.defaultHour || [];
this.outputJson = {}; this.outputJson = {};
this.init = true; this.init = true;
...@@ -914,7 +914,9 @@ ...@@ -914,7 +914,9 @@
let defaultOptions = { let defaultOptions = {
editMode: false, editMode: false,
output: '', output: '',
input: '' input: '',
defaultHour: [],
defaultDay: []
}; };
return $.extend({}, defaultOptions, options); return $.extend({}, defaultOptions, options);
......
{ {
"name": "doodle", "name": "doodle",
"author": "Simon <simon@appolo.fr>", "author": "Simon <simon@appolo.fr>",
"version": "1.0.4", "version": "1.0.5",
"main": "dist/js/doodle.js", "main": "dist/js/doodle.js",
"repository": { "repository": {
"type": "git", "type": "git",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment