I'm experiencing a conflict when a hierarchical select element is placed inside a draggable view. The HS element claims 'javascript is not enabled', and the draggable view breaks. I was wondering if anyone else has had this problem, and if there's any way around it. Thanks!

Comments

wim leers’s picture

Title: Conflict with draggable views » HS doesn't work inside a DraggableView
Project: Hierarchical Select » DraggableViews

Hm, this seems impossible. HS uses Drupal.behaviors, as every JS-enabled module should. So it seems DraggableViews is causing havoc by doing something wrong then: i.e. it may not be calling Drupal.attachBehaviors() after it has loaded content dynamically. That, or it is not passing through the Drupal.settings that are set for HS into the actual page, which would cause its settings not to be found, and therefor the HS JS would not find the dynamically loaded HS.

Moving to the DraggableViews issue queue to get feedback from the DraggableViews maintainer.

sevi’s picture

Status: Active » Closed (works as designed)

I haven't used Drupal.behaviors but $(document).ready(..)
Now I use the Drupal.behaviors property. (http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/draggablevi...)

Try the current dev-version (The http link for the dev-snapshot is only generated a few times a day).

blup’s picture

I modified the .js file and it still doesn't work for me. I keep getting the "You don't have Javascript enabled. Hover for more info..." for the hierarchical select and the elements are not draggable (it gets stuck). I was really hoping this was the fix. Thanks for the help.

sevi’s picture

Status: Closed (works as designed) » Postponed
sevi’s picture

Status: Postponed » Active
sevi’s picture

How can I place a hierarchical select element in a view?

criz’s picture

@sevi
there is a submodule for enhancing taxonomy views filter forms...

sevi’s picture

Status: Active » Closed (fixed)

Oh, the exposed filters. I haven't looked there O_o.

I've tried using HS as an exposed filter inside a DraggableView and I couldn't discover any problems.

However, as DraggableViews doesn't support exposed filters anyway I'll close this issue. (#326082: Exposed filters usage breaks parents/ordering)