Disable (or limit) the draggable bookings
Brought to you by:
jberanek
(Transferred from the general mailing list)
Hello
Is there a way to limit (or completely disable) the draggable feature
that modifies the bookings ?
Resizing the schedule is great, but it is very easy to duplicate one the
line below (which makes a new reservation). And once the new reservation
is made, there is no way to cancel it with the hande. We have to edit
and remove the reservation.
My users will be lost with this feature.
Is it possible to limite the resizing to the schedule and not the room ?
Thanks !
If you don't want users to be able to book multiple rooms then you can do this without changing the MRBS code with the following config setting:
That will stop ordinary users being able to drag across rooms. But it will also stop them from booking multiple rooms on the edit_entry.php booking form, so may not be suitable for you.
Otherwise you'd have to change the MRBS code, though the change is probably fairly simple and I could maybe make it a configuration setting.
Thanks for studying my request.
I do not want to prevent users from booking multiple rooms.
I found a CSS solution, but it may habe unexpected drawbacks. I put this code in the
css/custom.css
:I only let the east and west handles that let users to resize in time
Last edit: Campbell Morrison 2023-06-02
Yes, that should work, though of course if you change the "times along the top" mode you'll need to change the CSS. But when you are in "times along the top" mode the main table has a class "times-along-top" so you can use that to refine your CSS.