this patch will make the module more jquery friendly, from http://www.aspcode.net/JQuery-Curvy-Corners.aspx

apply the patch, and include the js file in the module directory (rename it, removing the .txt). after that, you don't need to do all that window.onload stuff, and just do something like the following:

<script type="text/javascript">  
$(document).ready(function()  
{ 
    $('.title').corner(); 
}) 
 </script> 

Comments

aaron’s picture

or rather, use drupal_to_js, don't do the script stuff, obviously...

JStarcher’s picture

Status: Needs review » Needs work
StatusFileSize
new577.5 KB

I applied the patch and it doesn't seem to work. Here is a copy of the module with the patch applied.

In the "curvyCorners to apply on all pages" box I put:

$(document).ready(function() 
{
    $('div#test').corner();
});

but do not get rounded corners on my div.

allie micka’s picture

For the record, you can accomplish this *without* patching, by using the following code instead:

$(document).ready(function() {
  settings = {
    tl: { radius: 10 },
    tr: { radius: 10 },
    bl: { radius: 10 },
    br: { radius: 10 },
    antiAlias: true,
    autoPad: false,
  }

  $blocks = $('.block-left, .block-right');
  $blocks.each(function() {
    varCC = new curvyCorners(settings, this);
    varCC.applyCornersToAll();
  });
});
hansrossel’s picture

#3 works great for me in Firefox without patching, but not in Internet Explorer 7: no corners there and a javascript error.

JStarcher’s picture

Status: Needs work » Closed (won't fix)