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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Date picker not firing in Garland
Pages: [1]

Author Topic: Date picker not firing in Garland  (Read 4710 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
Date picker not firing in Garland
March 17, 2011, 02:10:56 pm
anyone able to point out what might be missing from our 4.0 set up in Garland that means the Date Picker isn't working - is there an unspecified dependencies on some jQuery library?
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

torrance123

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 3
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.3.3
Re: Date picker not firing in Garland
March 17, 2011, 02:45:08 pm
To add a bit more information to Pete's question...

We're using Drupal 7 with only 2 contrib modules enabled: administration menu and civicrm itself. The datepicker is failing to work on activity creation pages, where clicking on the datepicker icon does nothing. Js is working fine for other fields, the date field has had the class 'hasDatepicker' appended to it, and I'm not seeing any errors in the chrome js console.

Any ideas on where to look?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Date picker not firing in Garland
March 17, 2011, 03:17:26 pm
Hmmm. In 4.0.alpha1 datepicker works for me with Bartik and Garland. I haven't tried alpha 2 yet but I expect to next week.

For further debugging perhaps compare your sites to the sandbox?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Date picker not firing in Garland
March 17, 2011, 06:37:25 pm
One past experience we had with the date picker widget not working is when you have more than one CiviCRM profile form on the page then it will conflict and not work.

The reason has to do with that the jQuery no conflict is declared more than once so there's more than one instance of cj(). I cannot be sure of that but when we removed one of the profile form the datepicker worked on the other one.


Hope it helps

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: Date picker not firing in Garland
March 17, 2011, 11:02:13 pm
This is working on sandbox - just not for us - but it is a new cleanish install - no drupal work done - and is failing in Garland - so something is messing us up - as torrance spells out above.
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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Date picker not firing in Garland
March 18, 2011, 03:13:48 am
I would try to compare the relevant HTML and JS if possible, between your site and the sandbox. And turn off admin_menu. Of course that's a VERY long shot, but anyway won't hurt. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

a2fireball

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.1.52-rel12.3
  • PHP version: 5.2.15
Re: Date picker not firing in Garland
March 20, 2011, 03:03:08 pm
I have a fresh install of Drupal 7 and the latest civicrm alpha; date fields are dead.  No popup and can't type in the text box either.  I'm brand new to civicrm, though I did take the noob class online last week,  (which was great btw).  Date selection is not working in contacts or events.

*BTW, I'm using Garland also.
« Last Edit: March 21, 2011, 04:12:34 am by a2fireball »

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Date picker not firing in Garland
March 21, 2011, 02:22:10 am
I have a fresh install of Drupal 7.0 and CiviCRM 4.0alpha3, and the date pickers do not fire up in Garland. Have not changed anything to the site yet.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Date picker not firing in Garland
March 23, 2011, 04:43:38 am
I tried this on my local install but it was not replicating, But it was replicating on my friends pc with drupal7 installation  ::)
It looks like css conflict with jquery ui
drupal7/misc/ui/jquery.ui.core.css
Code: [Select]
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
If we remove properties 'clip' and check by clearing browser cache it seems to be work :).

I think solution is to upgrade civicrm jquery ui version, currently it is  1.8.5.
« Last Edit: March 23, 2011, 04:56:00 am by Rajan Mayekar »

a2fireball

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.1.52-rel12.3
  • PHP version: 5.2.15
Re: Date picker not firing in Garland
March 23, 2011, 09:08:53 am
@Rajan
OK that worked! 

I removed "clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px);" and now the date popup works.  Did I need to remove all of that?  Do you think it will effect something else. 


Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Date picker not firing in Garland
March 23, 2011, 08:48:38 pm
Great!
This may be the temporary solution. I dont know exactly where is will affect, for safer side u can override this class within civicrm.css  ( hope it will work ), so it will affect any where on drupal pages.

BTW, I just did the quick check by upgrading jquery ui  version in civicrm, it was working fine.

Rajan
« Last Edit: March 23, 2011, 09:07:45 pm by Rajan Mayekar »

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: Date picker not firing in Garland
March 23, 2011, 09:24:39 pm
hi rajan

how do you upgrade the jquery ui

we tried copying in copy of 1.8.11 in to packages/jquery but nothing loaded
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

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Date picker not firing in Garland
March 23, 2011, 09:34:29 pm
Hi,
After replacing packages/jquery/jquery-ui-1.8.5 with jquery-ui-1.8.11
Need to modify following files to include jquery-ui-1.8.11 files instead of jquery-ui-1.8.5
- templates/CRM/common/jquery.files.tpl
- templates/CRM/common/jquery.tpl

torrance123

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 3
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.3.3
Re: Date picker not firing in Garland
March 24, 2011, 02:58:21 pm
Thanks Rajan, worked like a charm.  ;D

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Date picker not firing in Garland
March 24, 2011, 10:36:53 pm
We will upgrade jquery ui for beta2, http://issues.civicrm.org/jira/browse/CRM-7822

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Date picker not firing in Garland

This forum was archived on 2017-11-26.