artsy / day-schedule-selector

A jQuery plugin to render a weekly schedule and allow selecting time slots in each day.
MIT License
85 stars 53 forks source link

Advice how to implement #32

Open maco1717 opened 8 years ago

maco1717 commented 8 years ago

I trying to populate the table via a websocket...

my issues is when I put the code that parses the incoming json

$("#day-schedule").data('artsy.dayScheduleSelector').deserialize({
        //'0': [['09:30', '11:00'], ['13:00', '16:30']]
        //'1': [['09:00', '11:00'], ['13:00', '16:00']]

[parsing]

      });

I get unexpected ; error with the code with the code intersted there I think Im doing it wronge, how would I be able to implement this?

Thanks.

vixdouglas commented 6 years ago
    '1' : [['12:00'], ['18:00']],
    '3' : [['10:00'], ['15:00'], ['16:00'], ['21:00']],
    '5' : [['11:00'], ['17:00']]