Add support for jQuery update to 1.3.x and jQuery UI 1.7.x

markus_petrux - April 17, 2009 - 09:39
Project:Date
Version:6.x-2.x-dev
Component:Date Popup
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

Hi,

I'm trying the incoming jquery_update module, release 6.x-2.x-dev that upgrades jQuery to 1.3.2. That step needs to upgrade jQuery UI to 1.7.x, which I also did, and it all seems to be working ok, but I have problems with Date popup widgets. No javascript error, but the datepicker popup looks really bad and doesn't seem to have all the same UI components in there as before the upgrade.

Since I have installed jquery_ui module, Date is taking the jQuery UI components from there. It worked ok with jQuery 1.2.6 and jQuery UI 1.5.3, but not now with jQuery 1.3.2 and jQuery UI 1.7.1.

I have investigated this a little and identified several sources of possible conflict:

- Date popup provides custom CSS classes for ui.datepicker that could have changed due to the new CSS scheme introduced in jQuery UI 1.7.x. This probably needs revision in Date popup module.

- Date popup provides custom ui.datepicker settings, but the options in jQuery UI 1.7.x have changed. Some are missing, some may have been added with defaults that don't play well with Date popup. Also, this probably needs revision in Date popup module.

- Date popup provides jQuery Time Entry plugin version 1.4.0. Latest version of this plugin is 1.4.3. Their package also provides an additional .js file that brings compatibility with jQuery 1.3.x. I guess Date popup module would have to provide a method to use this compatibility library when needed and upgrade the plugin to latest version.

I'm sorry for not being 100% specific on which things are exactly causing problems, I haven't had the time to analyze this issue further, so please take the above as a primer look of possible sources of conflict.

Maybe someone else tried jquery_update to 1.3.2?

#1

NickAT - August 24, 2009 - 21:09

I came across this thread while trying to fix a problem with date popup. After installing JQuery module and JQuery UI 1.7.2 my date popup widget no longer contained the correct theme data. It still functioned correctly, it just looked horrible. Anyway after some digging and reading it turns out that my JQuery Update module was either outdated, not installed correctly or corrupted, after re-installing the module ver. 1.2, everything seemed to return to normal and I am looking forward to themeing some of the widgets. Also, make sure that all of your files in the jquery.ui folder are updated to 1.7.2, the first time I copied the update I still had some 1.6 files lurking around. Don't know if your problem is as simplistic as mine, but I hope that helps.

#2

Patrizio - September 16, 2009 - 13:58

I have the same problem.
The css for datapicker is too bad updating jquey

#3

emptyvoid - October 20, 2009 - 17:05
Status:active» patch (to be ported)

Hello I too had this conflict.. I have attached the css changes I had to make to get it to display like it should.

Just extract the gzip archive and paste the datepicker.css into

/drupalroot/sites/all/modules/date/date_popup/themes/

Clear your cache and check a date field using the popup.

AttachmentSize
datepicker.css_.gz 1.05 KB

#4

Patrizio - October 30, 2009 - 14:45
Status:patch (to be ported)» needs review

My calendar looks like before the css change :-(

#5

Patrizio - November 3, 2009 - 14:15
Status:needs review» patch (to be ported)

Sorry ... I try a second time and now the calendar seem patched.
Maybe a cache problem.

 
 

Drupal is a registered trademark of Dries Buytaert.