CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Need a UI option to set 'start of week' on the pop up calendar
Pages: [1]

Author Topic: Need a UI option to set 'start of week' on the pop up calendar  (Read 606 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Need a UI option to set 'start of week' on the pop up calendar
July 25, 2012, 03:21:04 am
On custom date fields, there is no option to specify 'start of week' for the pop up calenders.

Drupal has a config to allow us to set the 'start day' for the week - eg make it Monday.

A European client is asking for this option. Has anybody in Europe already dealt with this?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Need a UI option to set 'start of week' on the pop up calendar
July 25, 2012, 06:38:32 am

Other than the pop-up calendars does this affect anything else within Civi?

if only popup calendars, can you override the config/default settings of that jQ widget

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Need a UI option to set 'start of week' on the pop up calendar
July 25, 2012, 05:30:00 pm
our dirty little secret is that we used this - i keep being told not to hang our washing out but who knows maybe someone will improve it

Code: [Select]
// Set monday as first date for any datepicker fields
(function($) {
  $(function() {
    // This is real hacky, but we set the timer for a second to let civicrm attach
    // a datepicker run before we attempt to modify the datepicker. #race-condition
    var setMonday = function() {
      $('.hasDatepicker').datepicker('option', 'firstDay', 1);
    };
    setTimeout(setMonday, 1000);
  });
})(cj);
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Need a UI option to set 'start of week' on the pop up calendar

This forum was archived on 2017-11-26.