Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Calendar pager broke the colouring/hilghting date
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Calendar pager broke the colouring/hilghting date

Calendar pager broke the colouring/hilghting date 12 years, 1 month ago #33598

  • BUHR
  • OFFLINE
  • Posts: 2
PHP 5.2.11
Joomla 2.5.6
ARTIO Booking 1.4.3

Hi

I've encountered some issues with the calendar (weekly type) used in book it.

I've deactivated the other components.

The first time I hit the page of the object to book, everything is fine :
The cells of the calendar are coloured and the pointer can hilight them.
Presence in the source code of this lines :
Calendars.boxes[1] = {id : "box-29-23-1349870400-1349884800", price : "500", deposit : "0", formatPrice : "500,00 Eur", capacityUnit : "0", rtype : "1", boxes : "1", priceId : "23", priceIndex : "1", fromFloat : "14", fromDisplay : "2012-10-10 14:00", fromTime : "14:00", fromDate : "2012-10-10 14:00", fromUts : "1349870400", toFloat : "18", toDisplay : "2012-10-10 18:00", toTime : "18:00", toDate : "2012-10-10 18:00", toUts : "1349884800", canReserve : "1", rtypeId : "29", alreadyReserved : "0", min : "1", max : "0", fix : "0", fixFrom : "any", dayWeek : "wed", i : "1", idShort : "box-29-23-0", toEnd : "0"};
window.addEvent('domready', function() {
$('box-29-23-0').addEvent('click',function(){Calendars.setCheckBox("box-29-23-0");});
});
 
window.addEvent('domready', function() {
$('box-29-23-0').addEvent('mouseover',function(){Calendars.highlightInterval("box-29-23-0");});
});
 
window.addEvent('domready', function() {
$('box-29-23-0').addEvent('mouseout',function(){Calendars.unhighlightInterval("box-29-23-0");});
});


When I click the next week link, the calendar changed, ok.
But the cells are not coloured and the pointer can not hilight/select them (when you look at the source code, the mootools instructions are not present)
Click on the previous or actual link of the calendar gives the same result, cells not coloured.

I have no jquery declaration in my page :

<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="http://mySite/components/com_booking/assets/js/common.js?v=143" type="text/javascript"></script>
<script src="http://mySite/com_booking/assets/js/joomla.javascript.js?v=143" type="text/javascript"></script>
<script src="http://mySite/components/com_booking/assets/js/view-images.js?v=143" type="text/javascript"></script>
<script src="http://mySite/components/com_booking/assets/js/calendars.js?v=143" type="text/javascript"></script>
<script src="http://mySite/components/com_booking/assets/js/supplements.js?v=143" type="text/javascript"></script>
<script src="http://mySite/components/com_booking/assets/libraries/slimbox171a/js/slimbox.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>
<script src="/cache/js-4bf903bb0fc8e2fe3aa066756685dab6.php" type="text/javascript"></script>
<script src="/media/system/js/calendar.js" type="text/javascript"></script>
<script src="/media/system/js/calendar-setup.js" type="text/javascript"></script>


I've seen some posts (ex : from user sko) but the answer does not fit me.

What am i doing wrong ?

Thanks for your attention.
Last Edit: 12 years, 1 month ago by BUHR.
The topic has been locked.

Re: Calendar pager broke the colouring/hilghting date 12 years ago #34311

  • BUHR
  • OFFLINE
  • Posts: 2
I have found the problem.

In e.g. default_calendar_weekly.php (l.105) the value of $service->canReserve is null, so no generation code for highlighting cells.

Little bit strange, first time on calendar reservation, $service->canReserve is correctly set.
Using the pager make the value equals null

Why ?
The topic has been locked.
  • Page:
  • 1
User Login Empty