I started investigating this because I couldn't get sticky notes to work properly with a custom theme I'd built. So I created a 100% clean install, enabling nothing but the required modules. Everything works fine in Garland, as well as the majority of themes included with Drupal core, except for Marvin and Chameleon.

In those themes (as well as my custom theme), When I click the Add a Note link, I'm taken to a new page with the sticky note form instead of it opening in a window as intended. In addition, I am unable to drag sticky notes around the screen. Switching back to Garland fixes the problem.

Comments

seehawk’s picture

I suppose that this could just as easily be an issue with the Modal Frame API. Does anyone have a suggestion for how to test this so I can rule out one or the other?

Also, I'm using JQuery UI 1.7.3 and JQuery 1.3.2.

Thanks!

Michelle’s picture

I don't use this module but saw the issue title in the global tracker... Those two themes are not PHPTemplate themes, IIRC, and that can cause a lot of module incompatibility.

Michelle

seehawk’s picture

Title: Doesn't work properly with Marvin or Chameleon themes » Need help troubleshooting errors in custom theme
Category: bug » support

Got it. So in that case, this becomes more of a support request, since the end goal is to find out why it wasn't working in my custom theme (which is built using phptemplate). I had thought that figuring out why it wasn't working in the two core themes would give me some insight, but it looks like we'd be talking apples and oranges.

I realize that there are probably a million things that could cause the kind of behavior I describe above, but does anyone have some suggestions as to what to check first?

Since I first posted the issue, I did a little more digging, and found that when I click the Add Note link, JavaScript returns this error:

"c[l][k] is not a constructor
[Break on this error] jQuery.ui||(function(c){var i=c.fn.rem...el:null,distance:1,delay:0}})(jQuery);"

This is in ui.core.min.js? (line 10)

So, obviously JQuery doesn't like something that's going on. But I'm admittedly not all that great with JS, so any suggestions would be most welcome.

Thanks!

berliner’s picture

Status: Active » Postponed (maintainer needs more info)

I just had a look into this. Enabled first chameleon, than marvin. In both I don't get javascript errors. The modal frame and the javascript behaviors work so far. One problem I see arising here is that Modalframe API certainly can't handle pure css themes because the callbacks load only the node template and prevents the embedding in the page template to display content in the frame window. Since css driven themes don't have that kind of separation, Modalframe API can't do it's job. To support pure css driven themes Sticky Notes must be independent of Modalframe API, something I kind of abandoned already because the workload would be considerable.

Concerning your error it might be indeed a jquery / jqueryui issue. Right now I can't look deeper into this and given that I am not able to reproduce it (Drupal 6.16,jquery ui 1.6, jquery 1.2.6) I would need more information to help you resolve your errors.

seehawk’s picture

I finally figured it out. JQuery UI was being called from two places, once in my theme and once in the Jquery UI module. Rookie mistake, really. My embarrassment is exceeded only by my happiness at finally getting it working. Thanks for your response, and apologies for what turned out to be a dumb question. :-)

berliner’s picture

Status: Postponed (maintainer needs more info) » Fixed

In that case I mark this issue as fixed. I'm glad that it works for you now!

Status: Fixed » Closed (fixed)

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