Great, thanks. Ive done that - but it looks like something isnt right? See attached. The dropdown is empty.
Printable View
Great, thanks. Ive done that - but it looks like something isnt right? See attached. The dropdown is empty.
can't see the attached, I couldn't get anyone to test this feature before release
Hmm, not sure where the attachment went. Will try reposting it tomo
Attachment 15099
Attached screengrab of fault
Ok, I'll have to look into that one
Great, thanks :-) Will leave it as "off" for the moment - but I will definately be using it, so can test more if need. Will PM personal email to keep in touch on the issue.
Ok give this a try
Open ~/BookingSystem/Default.aspx
go to line 290.
Replace it with this: (changes are in bold
Code:if (curres.MultiRoom) {
$("#bfmultilesson").show();
$("#bfmultiroom option").remove();
var l1 = false;
var l2 = "";
var l3 = 0;
for (var i = 0; i < curres.Data.length; i++)
{
if (!l1) l1 = (curres.Data[i].Lesson == lesson);
if (l1) {
l3++;
$("#bfmultiroom").append('<option value="' + l2 + curres.Data[i].Lesson + '">' + l3 + ' Lesson' + (l3 == 1 ? '' : 's') + '</option>');
l2 += curres.Data[i].Lesson + ',';
}
}
canmulti = true;
}
Yep - that sorts the display issue - but now on clicking "Book" the entry doesnt get added, no matter what the setting on the number of lessons.
Ok, here's the next fix, or at least it fixes it for me:
Line 341
Code:var d = '{ "booking": { "Room": "' + curres.Name + '", "Lesson": "' + (canmulti ? $("#bfmultiroom").val() : curles) + '", "Username": "' + (user.isBSAdmin ? $("#<%=userlist.ClientID %> option:selected").val() : user.username) + '", "Name": "' + n1 + '"';
Can you do some JSON Debugging, I'll need to find out what it's trying to send to the server
Some test results for you... Ive gone and nosied at the the booking xml file and found the following entries...
These are before the last fix:
<Booking date="17/09/2012" lesson="" room="Conf Room" uid="ID REMOVED" username="ID REMOVED" name="Test - please ignore" />
These are after the last fix:
<Booking date="17/09/2012" lesson="undefined" room="Conf Room" uid="ID REMOVED" username="ID REMOVED" name="Test - please ignore" />
And another quick one - if I wanted the "Charging" on laptops to block out the next two sessions (we have AM Break, PM Break and Lunch all on the system) - what would I need to change...
Can you paste the HTML of the Booking form, it doesn't seem to be rendering properly.
Changing is +/- 1 session either side