Replace jquery_interface with jquery_ui

Pierre_M - January 11, 2009 - 19:50
Project:Todolist
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:marvil07
Status:closed
Issue tags:jQuery
Description

Hi, I got todolist installed, but I'm getting an error when I try to view the todolist full node view. Here is the error /sites/all/modules/todolist/todolist.module on line 128. I deleted line 128 jquery_interface_add(); now I can see the add task button without the error, but after submitting a task I get white screen.

The drupal6 version was posted on the 10th, I'm not sure if it hasn't been entirely ported to drupal6 or some step I'm missing. If needed I'm willing to help a bit with this module, not very good coding modules but you if guys need my help...

Pierre

#1

marvil07 - January 11, 2009 - 22:18
Title:ToDoList drupal 6 Test» Replace jquery_interface with jquery_ui
Category:support request» task

Yeah, it's in process now.

I really apreciate testing :D

#2

kenorb - January 19, 2009 - 21:58

I've got jquery_ui, but it still there is white screen during task adding.

#3

sumitk - January 26, 2009 - 03:37

hey you can copy code from list module we have already ported it to use jquery_ui :)
http://drupal.org/project/list

regards
sumitk
http://sumitk.net

#4

peterbarnett - February 12, 2009 - 14:10

Hi sumitk,

Where could I find the code for the list project?... ok scrap that, moment of stupidity. checked the cvs :)

Thanks,
Peter

#5

s8inac - February 26, 2009 - 19:25

@ #2

Because there is a if condition in the code that is checking for an input named 'sort' but it doesn't exist!
Have a look in the function 'todolist_create_task()'.

A security issue: $_REQUEST should be replaced by $_POST

#6

palo - May 9, 2009 - 06:27

Can you explain the fix in more detail for non-programmers to fix?

#7

jeffschuler - May 28, 2009 - 16:24

What needs to happen here, and how can we help?

#8

marvil07 - June 19, 2009 - 17:32

Hi jeffschuler,

Like it's mentioned, the problem here is that we¡re not using jquery_ui, so patches are _really_ welcome. Take a look to the list project too.

Sorry for log delay here, but I have not so many time now.

So, like I said, patchers are really welcome :D

@palo.. it's a code issue :(

#9

jeffschuler - August 11, 2009 - 20:32

So, if I (following what s8inac said in #5) -- set
$_REQUEST['sort'] = 0;
in todolist_create_task()... I don't get a white screen anymore, but, rather, just see the Javascript from that function printed on the page, by itself.

I'm not familiar with what todolist_ok_js() does, in setting new content headers and sprinkling Javascript in with the PHP.
How is this supposed to work to inject the js into the loaded page? Is there some prerequisite I'm missing?

#10

w00fy - August 12, 2009 - 10:35

subscribing

#11

sanguis - September 25, 2009 - 00:33
Status:active» fixed

this is a simple fix change line 128 that says

    jquery_interface_add();

to
    jquery_ui_add();

(this)
is just part of the fix sorry

JOsh

#12

marvil07 - October 7, 2009 - 14:36
Status:fixed» needs work

@sanguis: exactlly, that's part of the fix. Thanks for the help.

There's still a lot to do here :(

#13

marvil07 - October 8, 2009 - 19:55
Assigned to:Anonymous» marvil07
Status:needs work» fixed

finally, reviewing list module, I arrive to a beta-1, where jquery_ui is used :D

http://drupal.org/cvs?commit=272424

#14

System Message - October 22, 2009 - 20:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.