# HG changeset patch # User Adrien Di Mascio # Date 1247125364 -7200 # Node ID 6db26d081c3771c25403368d75586302fc1f16d6 # Parent a15d3f54f0f259b55aa47e9a8376d98c89c385c9# Parent 65445ae67db047ccb40aa87d22da739ec9164cfe merge diff -r a15d3f54f0f2 -r 6db26d081c37 web/data/cubicweb.ajax.js --- a/web/data/cubicweb.ajax.js Wed Jul 08 21:46:30 2009 +0200 +++ b/web/data/cubicweb.ajax.js Thu Jul 09 09:42:44 2009 +0200 @@ -59,8 +59,8 @@ if (typeof buildWidgets != 'undefined') { buildWidgets(node); } - if (typeof roundedCornersOnLoad != 'undefined') { - roundedCornersOnLoad(); + if (typeof roundedCorners != 'undefined') { + roundedCorners(node); } loadDynamicFragments(node); jQuery(CubicWeb).trigger('ajax-loaded'); @@ -231,6 +231,7 @@ // make sure the component is visible removeElementClass(node, "hidden"); swapDOM(node, domnode); + postAjaxLoad(domnode); } }); d.addCallback(resetCursor); diff -r a15d3f54f0f2 -r 6db26d081c37 web/data/cubicweb.htmlhelpers.js --- a/web/data/cubicweb.htmlhelpers.js Wed Jul 08 21:46:30 2009 +0200 +++ b/web/data/cubicweb.htmlhelpers.js Thu Jul 09 09:42:44 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