Forum closed. New forum available at http://community.wymeditor.org/

WYM Dialog does not submit

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

WYM Dialog does not submit

Postby monkhorst on Thu Jul 17, 2008 12:50 pm

My WYM editor suddenly stopped submitting its (edit link) dialoges (I think the bug appeared when we starte using an absolute basePath, but I'm not sure).

In firebug I noticed the following error: n.parents(jqexpr).slice is not a function

It seems that the function jQuery.fn.parentsOrSelf trips over this if/else clause:

Code: Select all
  if (n.filter(jqexpr).size() == 1)
    return n;
  else
    return n.parents(jqexpr).slice(0,1);


I changed the comparison operator to '<=' and it all seemed to work fine again.

Code: Select all
  if (n.filter(jqexpr).size() <= 1)
    return n;
  else
    return n.parents(jqexpr).slice(0,1);


The change seems to fit in the purpose of the clause too.
Maybe best to let the lead developer decide if this is the way to go?

Thx, Wouter
monkhorst
 
Posts: 1
Joined: Thu Jul 17, 2008 12:30 pm

Re: WYM Dialog does not submit

Postby jfh on Wed Aug 13, 2008 8:42 pm

A ticket on the Trac would be great, thanks.
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests