web/data/cubicweb.htmlhelpers.js
changeset 5699 f4f6ee3af50b
parent 5658 7b9553a9db65
child 6220 e23231d482fb
--- a/web/data/cubicweb.htmlhelpers.js	Wed Jun 09 12:39:55 2010 +0200
+++ b/web/data/cubicweb.htmlhelpers.js	Wed Jun 09 12:43:21 2010 +0200
@@ -1,6 +1,3 @@
-CubicWeb.require('python.js');
-CubicWeb.require('jquery.corner.js');
-
 /**
  * .. function:: baseuri()
  *
@@ -183,14 +180,14 @@
     }
 }
 //============= page loading events ==========================================//
-CubicWeb.rounded = [['div.sideBoxBody', 'bottom 6px'],
-                    ['div.boxTitle, div.sideBoxTitle, th.month', 'top 6px']];
+cw.rounded = [['div.sideBoxBody', 'bottom 6px'],
+              ['div.boxTitle, div.sideBoxTitle, th.month', 'top 6px']];
 
 function roundedCorners(node) {
     if (jQuery.fn.corner !== undefined) {
         node = jQuery(node);
-        for (var r = 0; r < CubicWeb.rounded.length; r++) {
-            node.find(CubicWeb.rounded[r][0]).corner(CubicWeb.rounded[r][1]);
+        for (var r = 0; r < cw.rounded.length; r++) {
+            node.find(cw.rounded[r][0]).corner(cw.rounded[r][1]);
         }
     }
 }
@@ -198,8 +195,3 @@
 jQuery(document).ready(function() {
     roundedCorners(this.body);
 });
-
-CubicWeb.provide('corners.js');
-
-CubicWeb.provide('htmlhelpers.js');
-