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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Remove pop-up date picker
Pages: 1 [2]

Author Topic: Remove pop-up date picker  (Read 6235 times)

noah

  • I’m new here
  • *
  • Posts: 18
  • Karma: 4
Re: Remove pop-up date picker
April 22, 2011, 02:29:18 pm
Just wanted to provide a link to a related issue in the queue: http://issues.civicrm.org/jira/browse/CRM-6698, Calendar Date Picker for birthday birth date degrades usability

simpleman

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.3
  • PHP version: 5.3
Re: Remove pop-up date picker
October 07, 2014, 06:06:07 am
I have used the onChangeMonthYear option and working for me. below my code:
cj(element_date).datepicker({
                                    closeAtTop        : true,
                                    dateFormat        : date_format,
                                    changeMonth       : true,
                                    changeYear        : true,
                                    altField          : alt_field,
                                    altFormat         : altDateFormat,
                                    yearRange         : yearRange,
                                    regional          : localisation[0],
                                    onChangeMonthYear :  function(y, m, i) {                                         
                                           var d = i.selectedDay + "";   
                                           if (d.length < 2) d = "0" + d;                                           
                                           var m = m + "";                                           
                                           if (m.length < 2) m = "0" + m;
                                           var dVal = m+"/"+d+"/"+y;
                                           cj(alt_field).val( dVal );
                                           dVal = cj(alt_field).val( );
                                           var disVal = cj.datepicker.parseDate( altDateFormat, dVal );
                                           disVal = cj.datepicker.formatDate( date_format, disVal );
                                           cj( element_date).val( disVal );
                                    }
                                });

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Remove pop-up date picker

This forum was archived on 2017-11-26.