diff -r 6620e5abcd99 -r 3f7c7fbae94e web/data/cubicweb.htmlhelpers.js --- a/web/data/cubicweb.htmlhelpers.js Wed Jul 08 12:51:04 2009 +0200 +++ b/web/data/cubicweb.htmlhelpers.js Wed Jul 08 13:58:37 2009 +0200 @@ -1,4 +1,5 @@ CubicWeb.require('python.js'); +CubicWeb.require('jquery.corner.js'); /* returns the document's baseURI. (baseuri() uses document.baseURI if * available and inspects the tag manually otherwise.) @@ -253,13 +254,25 @@ } //============= page loading events ==========================================// + +CubicWeb.rounded = [ + ['div.sideBoxBody', 'bottom 6px'], + ['div.boxTitle, div.boxPrefTitle, div.sideBoxTitle, th.month', 'top 6px'], + ]; + function roundedCornersOnLoad() { - jQuery('div.sideBoxBody').corner('bottom 6px'); - jQuery('div.boxTitle, div.boxPrefTitle, div.sideBoxTitle, th.month').corner('top 6px'); + roundedCorners(); +} + +function roundedCorners(node) { + node == node || document.body; + node = jQuery(node); + for(var r=0; r