Browse Source

Merge branch 'dev'

master
Guillaume 4 years ago
parent
commit
9570605686
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      producer/web/js/vuejs/order-order.js

+ 3
- 1
producer/web/js/vuejs/order-order.js View File

}, },
dayClickList: function(event) { dayClickList: function(event) {
var dateStr = event.currentTarget.getAttribute('data-distribution-date') ; var dateStr = event.currentTarget.getAttribute('data-distribution-date') ;
var dateObject = new Date(dateStr) ;
var arr = dateStr.split(/[- :]/),
dateObject = new Date(arr[0], arr[1]-1, arr[2], arr[3], arr[4], arr[5]);
//var dateObject = new Date(dateStr) ;
if(this.isAvailableDate(dateObject)) { if(this.isAvailableDate(dateObject)) {
this.dayClickEvent(dateObject) ; this.dayClickEvent(dateObject) ;
} }

Loading…
Cancel
Save