diff -r 684a0c546774 -r 657dfe374b08 web/data/cubicweb.ajax.js --- a/web/data/cubicweb.ajax.js Wed Aug 26 10:18:49 2009 +0200 +++ b/web/data/cubicweb.ajax.js Wed Aug 26 11:11:40 2009 +0200 @@ -66,7 +66,16 @@ jQuery(CubicWeb).trigger('ajax-loaded'); } -// cubicweb loadxhtml plugin to make jquery handle xhtml response +/* cubicweb loadxhtml plugin to make jquery handle xhtml response + * + * fetches `url` and replaces this's content with the result + * + * @param mode how the replacement should be done (default is 'replace') + * Possible values are : + * - 'replace' to replace the node's content with the generated HTML + * - 'swap' to replace the node itself with the generated HTML + * - 'append' to append the generated HTML to the node's content + */ jQuery.fn.loadxhtml = function(url, data, reqtype, mode) { var ajax = null; if (reqtype == 'post') { @@ -323,7 +332,7 @@ } } -/* +/* XXX deprecates? * fetches `url` and replaces `nodeid`'s content with the result * @param replacemode how the replacement should be done (default is 'replace') * Possible values are :