Chris Broughton
unread,Oct 12, 2012, 4:12:04 PM10/12/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jquery-wee...@googlegroups.com
I'm trying to create a room reservation system like a few of you I'm sure. I have a list of the available room in a tree on the left of my screen and when I check one to enable it I want to see it's calendar on the right. Previously I'd just been creating a new calendar instance for each visible room. It seems like this should be accomplished through the multi-user portion though.
I can't figure out though how to have the users: option be dynamic. In that I don't want to have to list all the available rooms and I don't want blank columns for rooms the user isn't interested in.
I have tried using a function that returns an array instead of defining the array directly but that doesn't work.
users: function(){return new Array('room1', 'room2', 'room3', 'room4')}
instead of
user: ['room1', 'room2', 'room3', 'room4']
Are there any suggestions on a way of doing this?
Thanks for the help.