I can't use Jquery update 2.0 - it breaks other stuff on my site. This means I can't use hierarchical_select which is a pity as it seems the only way to create a country select option without having a ridiculously long drop down menu. If there was a way to default to the non- javascript functionality?

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Category: feature » support
Priority: Critical » Minor
Status: Active » Fixed

Yes, there is:

if (Drupal.jsEnabled) {
  $(document).ready(function() {
    // If you set Drupal.settings.HierarchicalSelect.pretendNoJS to *anything*,
    // and as such, Hierarchical Select won't initialize its Javascript! It
    // will seem as if your browser had Javascript disabled.
    if (undefined != Drupal.settings.HierarchicalSelect.pretendNoJS) {
      return false;
    }
    
    Drupal.HierarchicalSelect.initialize();
  });
}

This isn't documented because you should never have to use this.

The correct way to fix your problem is to update the other modules. Most, if not all modules have already been made compatible with jQuery Update 2.

Also: this is NOT a critical feature request. It's 1) a support request, 2) it's not critical. It might be critical to you, but not for the project.

djpumpkin’s picture

Great. Thanks for that. This is such a useful module - i appreciate your rapid response.
All of my other modules are up to date according to Drupal status report.
I have no idea why but jQuery Update 2 causes editable fields to lose all their appearance / functions - but reverting to the previous version fixes it. Sorry for assigning as 'critical' I submitted this request in a hurry without concentrating properly - will be more aware in future.

wim leers’s picture

That's all I ask: think more about it in the future :) Thanks for taking that into consideration.

Maybe the Editable Fields module is not yet compatible with jQuery Update 2 because it's a pretty rarely used module. You could make an issue for it in its issue queue to make the maintainer aware of the problem! :)

djpumpkin’s picture

Oh... I found the culprit: http://drupal.org/node/316005

So for a short term fix do I paste the code above into the file hierarchical_select.module ?

Thanks

:)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.