Curvy Corners: '#content' in conflict with other Drupal/jQuery functionality

ztyx - August 10, 2008 - 19:58
Project:jQuery Eye Candy
Version:6.x-1.x-dev
Component:jQuery plugin
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

Allright, I've installed Curvy Corners plugin (only) and the following JavaScript code works like a charm:

$(function(){
$('.block').corner();
});

Changing the JavaScript to

$(function(){
$('#content').corner();
});

does work (ie. I get roundeed corners) but the collapsibles on /admin/settings/jq_eyecandy stop to work.

Is anyone able to reproduce this?

#1

ztyx - August 10, 2008 - 20:00

Oh, I forgot to add - I am using a (slightly modified, only CSS) Zen subtheme (6.x-1.0-beta2). Drupal, version 6.3.

#2

ztyx - August 17, 2008 - 14:56
Status:active» postponed (maintainer needs more info)

I overcame this issue by changing to

$(function(){
$('.rounded').corner();
});

and adding rounded-style everywhere I wanted rounded corners.

The bug in itself still persists.

#3

ztyx - August 17, 2008 - 15:15
Title:Curvy Corners: '#content' in conflict with collapsibles» Curvy Corners: '#content' in conflict with other Drupal/jQuery functionality

After realizing that Curvy Corners disabled all default jQuery functionality in Drupal I have decided to stop using it until I know what's wrong. I am eager to hear what I might have done wrong.

#4

WorldFallz - August 26, 2008 - 20:37

I believe the problem is that you need to enclose your jquery statements testing for document ready like this:

$(document).ready(function()
{
$('#page').dropShadow({left: 8, top: 10, blur: 4, opacity: 0.8, color: "red", swap: false});
$("#gear").dropShadow({left: 8, top: 8, blur: 3, opacity: 0.8});
})

I need to research this a little more, but since I've started doing that (before I released the module, and it should be in the instructions) I've had no further problems. Let me know if you're still having this problem.

#5

a great place f... - September 8, 2008 - 03:53

It's still happening to me too, but only if I apply effect (curvy corners) to the main wrapper. None of the collapsibles in any of the edit or Create Content pages are working, they take you to the top of the page.

I'm adding

//required for each plugin
$(document).ready(function() {

//plugin specific statements here
$('#wrapper').corner();

})

to the head section of the page.tpl.php (tried it on a couple of themes)

#6

Flying Drupalist - September 17, 2008 - 22:18

This is a pretty big problem, now I can't open the collapsible curvycorners input form to change it. - Though I eventually did by firebugging collapsed to expand.

#7

jonga - September 20, 2008 - 12:25

Subscribing. Looks like no other javascript functions can work inside a div tag (like fivestar, collapsible content etc.) if at least curvy corner effect is applied to it (not sure of the other effects).

#8

ztyx - November 5, 2008 - 12:40
Priority:normal» critical

Changing to critical. This bug really breaks standard Drupal behaviour.

#9

Flying Drupalist - November 5, 2008 - 15:06

I think this may be related to this. http://drupal.org/node/325810

#10

WorldFallz - November 5, 2008 - 16:23

Sorry I haven't gotten to this sooner. I have not been able to reproduce this using d6.6, the latest curvycorners plugin, and d6 zen beta3 (9/15/08) with #content, #page, or #main as the selectors. I've got rev 4257 of the dimensions plugin. I'll try different versions and see if it makes a difference.

#11

blue muse - November 24, 2008 - 21:28

I'm having the same problem and tried adding enclosure. It didn't work. Subscribing.

#12

blue muse - December 4, 2008 - 19:03

Any updates on this?

#13

WorldFallz - December 4, 2008 - 19:36

There's not much i can do without being able to reproduce the problem. I've tried quite a few times. If you want to describe all the details required me for to reproduce your problem (version numbers of modules, js plugins, core, theme, etc) and all the steps required to reproduce it (including code) I can try again.

#14

blue muse - February 24, 2009 - 00:50

Hi there,

So I guess I shouldn't just sit back and hope someone else puts all the details up...

In my template.php file, I added:

drupal_add_js('sites/all/scripts/jquery.curvycorners.packed.js');

drupal_add_js(
    '$(document).ready(function() {
      $("div.block").corner("round 10px");
    });',
    'inline'
  );

Notice I used the enclosure suggested above, and used a class, also as suggested above.

I've assigned the class "block" to, all my blocks, but also to a wrapper called "content-inner2". This is where the problem lies. Because this block encapsules all my content on the page, when I go to edit a node, all of the js functionality from my edit page is gone. I can't expand or reduce the input format section, for example. When I make an attempt a hash mark appears at the end of my url and the page stays the same.

I am using Drupal 6.9. The theme is a customized version, based on ad_redoable. Let me know what other info you might require.

Thanks!

#15

blue muse - November 23, 2009 - 18:22
Status:postponed (maintainer needs more info)» needs review

What more info is required by the maintainer?

#16

RdN - May 19, 2009 - 11:16

Hi,

I am have a similar problem Curvy Corners is working and not causing this problem but when the Gradient Plugin is enabled collapsible content cannot be opened.

Kevin

 
 

Drupal is a registered trademark of Dries Buytaert.