You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wordered how can I change the "resourceSource" using "resources" option, based on JSON that I get from socket.io (I change the calendar with a dropdown list).
For now, I've modify the source, I will try a better way in the future:
/** * ---------------------------------------------------------------- * Fetch resources from source array * ---------------------------------------------------------------- */functionfetchResources(useCache,currentView){// if useCache is not defined, default to trueuseCache=typeofuseCache!=='undefined' ? useCache : true;if(cache!=undefined&&useCache){// get from cachereturncache;}else{// do a fetch resource from source, rebuild cachecache=[];/** TWEAK BY HAKS **/varresources=_fetchResourceSource({url: "/projetcollaborateur/findProjCollabs?proj="+$("#selectCalProj option:selected").val()},currentView);cache=cache.concat(resources);/* var len = sources.length; for (var i = 0; i < len; i++) { var resources = _fetchResourceSource(sources[i], currentView); cache = cache.concat(resources); }*//** END TWEAK **/returncache;}}
Hi !
I wordered how can I change the "resourceSource" using "resources" option, based on JSON that I get from socket.io (I change the calendar with a dropdown list).
I've seen that we can do it with events (http://stackoverflow.com/questions/10940182/change-fullcalendar-event-source-after-load#answer-10941552) but I don't retrieve this functions for resources.
Have you a good way to do it with the resource view or do I need to make a custom mod ?
The text was updated successfully, but these errors were encountered: