• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to disable alternate weekdays in calendar

How to disable alternate weekdays in calendar 8 years 10 months ago #35383

  • pradip5
  • pradip5's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi,
I want show all Tuesdays, Thursdays and Saturdays (1st, 3rd & 5th) in the calendar. All other days should be hidden. I could manage to hide days. But not able to hide alternate Saturdays. Please help.
<script type="text/javascript">
  function rsfp_onSelectDate(date, type, args, calendar)
{
var dates = args[0];
var date = dates[0];
var year = date[0], month = date[1], day = date[2];
 
var d = new Date(year, month-1, day);
if (d.getDay() == 0 || d.getDay() == 1 || d.getDay() == 3 || d.getDay() == 5 || d.getDay() == 6) {
alert('Please select Tuesday, Thursday & Saturday (1st, 3rd & 5th)');
return false;
} else {
return true;
}
}
</script>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!