# HG changeset patch # User Aurelien Campeas # Date 1247143196 -7200 # Node ID 359903ef980ae1449a9427a0f6dd2192add1fad1 # Parent acf4b6a59558e2dc64e9dff5a4fa5a474772ee95 for some reason, use of an anonymous function makes things more readable diff -r acf4b6a59558 -r 359903ef980a web/data/cubicweb.htmlhelpers.js --- a/web/data/cubicweb.htmlhelpers.js Thu Jul 09 13:04:28 2009 +0200 +++ b/web/data/cubicweb.htmlhelpers.js Thu Jul 09 14:39:56 2009 +0200 @@ -260,19 +260,16 @@ ['div.boxTitle, div.boxPrefTitle, div.sideBoxTitle, th.month', 'top 6px'], ]; -function roundedCornersOnLoad() { - roundedCorners(); -} + function roundedCorners(node) { - node == node || document.body; node = jQuery(node); - for(var r=0; r