When i use this two modules Navigate and JQuery UI together i received the following javascript error and all javascripts stop working:

Error: $(this).sortable is not a function
Source File: http://base.pt2.com/teamwork/sites/all/modules/navigate/navigate_favorites/navigate_favorites.js?S
Line: 18

Comments

vatavale’s picture

+1

sinasalek’s picture

Drupal 7 also comes with JQuery UI, so it's even more important to fix this incompatiblity

trak-dev’s picture

Anything on this?

markhalliwell’s picture

Version: 6.x-1.0-beta6 » 6.x-1.x-dev
Priority: Normal » Critical
Status: Active » Needs work

On line 52 of navigate.module the incorrect file is called. I really don't know where he got jquery.ui.all. Instead he should really define what widgets he is using, not to mention this would help load time by using only the necessary files.

    if (module_exists('jquery_ui')) {
      jquery_ui_add('jquery.ui.all');
    }

From what I can tell, just these three should be fine:

    if (module_exists('jquery_ui')) {
      jquery_ui_add(array(
        'ui.core',
        'ui.draggable',
        'ui.sortable',
      ));
    }
artis’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta6
Status: Needs work » Reviewed & tested by the community

This fix worked for me. Can I suggest committing this code?

markhalliwell’s picture

Version: 6.x-1.0-beta6 » 6.x-1.x-dev
Assigned: Unassigned » markhalliwell
Status: Reviewed & tested by the community » Fixed

committed to dev

Status: Fixed » Closed (fixed)

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

lpalgarvio’s picture

Component: Code » Code (PHP)

confirmed working on 1.x-dev, but not working on 1.0-beta6

suggestion: make a beta7 with this fix.

confirmed to be working with all these modules enabled:
Administration menu 6.x-1.6
JS Alter 6.x-1.0
jQuery Update 6.x-2.0-alpha1
jQuery Form Update 6.x-1.0
jQuery UI 6.x-1.3
jQuery Plugin Handler 6.x-2.3
jQuery plugins 6.x-1.10
jQuery AOP 6.x-1.0
jQ 6.x-1.2
jQ Bridge 6.x-1.2
Libraries 6.x-1.0-alpha1
Lightbox2 6.x-1.x-dev

Lightbox2 had similar problem, on the 1.9 version, but with jQuery Update.