My draggable view wont drag. If I change the order using the number inputs and save it works fine. However when I try and drag an entry the row is highlighted yellow but I cant actually move it up or down.
Thanks

Comments

jdln’s picture

Status: Active » Fixed

No idea why, but ticking the box for 'Show input fields?' has fixed this for me.

Status: Fixed » Closed (fixed)

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

xarbot’s picture

Me too, but in this case the input fields ordre are rendered and i don't wan't it :(

Xarbot

jdln’s picture

Status: Closed (fixed) » Active
hagit’s picture

I have the same problem... any help will be appreciated..

charlie-s’s picture

What version of jQuery are you all using? Are you using jQuery Update / 1.4 / ?

xarbot’s picture

Yes i'm using this jquery update module

http://ftp.drupal.org/files/projects/jquery_update-6.x-2.0-alpha1.tar.gz

and jQuery UI 6.x-1.4

Thanks in advanced

Xarbot

charlie-s’s picture

Well that's your issue. 1.4 breaks the version of TableDrag that Drupal uses. You can check out threads like this: http://drupal.org/node/893538 to point you in the right direction, but are you positive you need 1.4? I've found that 1.3 provides me with most of the newer functions that I need (and that my other libraries depend on) without breaking core jQuery functionality.

Edit: jQuery UI 1.4 or jQuery 1.4? I can't even find a download link for UI older than 1.7.

xarbot’s picture

Jquery UI 1.4 module and JQuery 1.6

so i need to put JQuery 1.4 instead of JQuery 1.6?

Thanks in advanced

Xarbot

charlie-s’s picture

I believe your numbers are backwards, there is no jQuery 1.6... yet.

The latest version of jQuery is 1.5.2, the latest version of jQuery UI is 1.8.11. You are more likely using jQuery 1.4 and jQuery UI 1.6. You should revert to jQuery 1.3 (just download the jQuery update module here: http://ftp.drupal.org/files/projects/jquery_update-6.x-2.0-alpha1.tar.gz -- do not alter it, do not add a "different" version of jQuery, just install this module).

Edit: I think you're confusing the Drupal module versions with the jQuery library versions -- don't worry about mentioning the module versions here; in this conversation we are concerned only with the versions of the jQuery libraries.

xarbot’s picture

I installed it because i see in another thread that has some problems with the latest version of JQuery, so i put it but the problem continues.

Thanks in advanced

Xarbot

syngi’s picture

You probably get the following javascript error :

cell[0] is undefined
/misc/tabledrag.js
Line 133

Which you can solve by replacing line 133 in tabledrag.js
if (cell[0].colSpan > 1) {
with
if (typeof cell == "undefined" && cell[0].colSpan > 1) {

vali hutchison’s picture

Version: 6.x-3.5 » 7.x-1.x-dev

I had a similar issue and the fix in #12 worked for me using Drupal 7, Views 3 and jQuery 1.4.4.

Would be great though if the module could be tweaked to avoid having to hack the core.

ygerasimov’s picture

Status: Active » Closed (works as designed)

This module only uses script tabledrag.js. So if draggable functionality got broken we are not much able to fix it in the module as it is core functionality.

Please also check other places where there is draggable table. For example taxonomy terms list etc. Please reopen the ticket if on views functionality is broken but on other places it works.

Thanks.