{"action":"created","issue":{"url":"https://api.github.com/repos/amsul/pickadate.js/issues/1058","repository_url":"https://api.github.com/repos/amsul/pickadate.js","labels_url":"https://api.github.com/repos/amsul/pickadate.js/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/amsul/pickadate.js/issues/1058/comments","events_url":"https://api.github.com/repos/amsul/pickadate.js/issues/1058/events","html_url":"https://github.com/amsul/pickadate.js/issues/1058","id":298288849,"number":1058,"title":"Disable dates by variable ","user":{"login":"edgrod01","id":36207094,"avatar_url":"https://avatars3.githubusercontent.com/u/36207094?v=4","gravatar_id":"","url":"https://api.github.com/users/edgrod01","html_url":"https://github.com/edgrod01","followers_url":"https://api.github.com/users/edgrod01/followers","following_url":"https://api.github.com/users/edgrod01/following{/other_user}","gists_url":"https://api.github.com/users/edgrod01/gists{/gist_id}","starred_url":"https://api.github.com/users/edgrod01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgrod01/subscriptions","organizations_url":"https://api.github.com/users/edgrod01/orgs","repos_url":"https://api.github.com/users/edgrod01/repos","events_url":"https://api.github.com/users/edgrod01/events{/privacy}","received_events_url":"https://api.github.com/users/edgrod01/received_events","type":"User","site_admin":false},"labels":[{"id":836976294,"url":"https://api.github.com/repos/amsul/pickadate.js/labels/question","name":"question","color":"ed84c5","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-19T14:11:46Z","updated_at":"2018-02-21T20:17:37Z","closed_at":null,"author_association":"NONE","body":"hi! im trying to send the value for disable the dates by a variable, but no excecute nothing, i take the value and paste,  this excecute fine. how can i do for send the variable. \r\nej\r\n```php \r\n\r\nwhile($datos=$rpta->fetch_object())\r\n\t\t{\r\n\t\t\t// $fecha.= '[2,3],[5,6],';\r\n\t\t \t$fecha.= '{from: ['.$datos->fecInicio.'], to: ['.$datos->fecFinal.']},';\r\n\t\t}\r\n\r\n\t\t$fecha.= '';\r\n```\r\n\r\n```js\r\nvar $fecha = data.replace(/[-]/gi,',');\r\n\r\n$('#fecha').pickadate({\r\n\t\t        today: '',\r\n\t\t  \t\tclear: '',\r\n\t\t  \t\tclose: '',\r\n\t\t  \t\tformat: 'yyyy-mm-dd',\r\n\t\t        formatSubmit: 'yyyy-mm-dd',\r\n\t\t        weekdaysShort: ['Dom', 'Lun', 'Mar', 'Mie' ,'Jue', 'Vie', 'Sab'],\r\n\t\t        monthsShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],\r\n\t\t        showMonthsShort: true,\r\n\t\t        selectMonths: true,\r\n\t\t        selectYears: true,\r\n\t\t        disable: [$fecha],\r\n\t\t    });\r\n  ----------- no print -----------------------------\r\n\r\n$('#fecha').pickadate({\r\n\t\t        today: '',\r\n\t\t  \t\tclear: '',\r\n\t\t  \t\tclose: '',\r\n\t\t  \t\tformat: 'yyyy-mm-dd',\r\n\t\t        formatSubmit: 'yyyy-mm-dd',\r\n\t\t        weekdaysShort: ['Dom', 'Lun', 'Mar', 'Mie' ,'Jue', 'Vie', 'Sab'],\r\n\t\t        monthsShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],\r\n\t\t        showMonthsShort: true,\r\n\t\t        selectMonths: true,\r\n\t\t        selectYears: true,\r\n\t\t        disable: [{from: [2018,02,17], to: [2018,02,17]},{from: [2018,02,22], to: [2018,02,22]},{from: [2018,03,01], to: [2018,03,31]},{from: [2018,04,01], to: [2018,04,30]},{from: [2018,06,01], to: [2018,06,30]},{from: [2018,07,01], to: [2018,07,31]},],\r\n\t\t    });\r\n-------------- print ok ------------------------------\r\n```\r\n \r\nThanks for your help\r\n"},"comment":{"url":"https://api.github.com/repos/amsul/pickadate.js/issues/comments/367457716","html_url":"https://github.com/amsul/pickadate.js/issues/1058#issuecomment-367457716","issue_url":"https://api.github.com/repos/amsul/pickadate.js/issues/1058","id":367457716,"user":{"login":"edgrod01","id":36207094,"avatar_url":"https://avatars3.githubusercontent.com/u/36207094?v=4","gravatar_id":"","url":"https://api.github.com/users/edgrod01","html_url":"https://github.com/edgrod01","followers_url":"https://api.github.com/users/edgrod01/followers","following_url":"https://api.github.com/users/edgrod01/following{/other_user}","gists_url":"https://api.github.com/users/edgrod01/gists{/gist_id}","starred_url":"https://api.github.com/users/edgrod01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgrod01/subscriptions","organizations_url":"https://api.github.com/users/edgrod01/orgs","repos_url":"https://api.github.com/users/edgrod01/repos","events_url":"https://api.github.com/users/edgrod01/events{/privacy}","received_events_url":"https://api.github.com/users/edgrod01/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T20:17:37Z","updated_at":"2018-02-21T20:17:37Z","author_association":"NONE","body":"hmmm, thanks for answer, really i new  programming, don't know why avoid eval, could you explain me... thank \r\n\r\nand its rigth, with just use it, solved my problem, its looking disabled the dates.\r\n\r\nBut now i get other problem, how can i do for january by the number 1 no 0 \r\n\r\nthanks"}}
{"actor":{"display_login":"edgrod01"}}