web/data/cubicweb.htmlhelpers.js
branchstable
changeset 2355 359903ef980a
parent 2338 3f7c7fbae94e
child 2357 e65e352cfde3
--- 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<CubicWeb.rounded.length;r++){
+    for(var r=0; r < CubicWeb.rounded.length; r++) {
        node.find(CubicWeb.rounded[r][0]).corner(CubicWeb.rounded[r][1]);
     }
 }
 
-jQuery(document).ready(roundedCornersOnLoad);
+jQuery(document).ready(function () {roundedCorners(this.body)});
 
 CubicWeb.provide('htmlhelpers.js');