cleanup stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 26 Aug 2009 11:11:40 +0200
branchstable
changeset 3011 657dfe374b08
parent 3010 684a0c546774
child 3012 97696093ba54
cleanup
web/data/cubicweb.ajax.js
web/data/cubicweb.facets.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 :
--- a/web/data/cubicweb.facets.js	Wed Aug 26 10:18:49 2009 +0200
+++ b/web/data/cubicweb.facets.js	Wed Aug 26 11:11:40 2009 +0200
@@ -80,9 +80,8 @@
 		reloadComponent('edit_box', rql, 'boxes', 'edit_box');
 	    }
 	    if (jQuery('#breadcrumbs').length) {
-		log('reloading breadcrumbs!', rql);
 		reloadComponent('breadcrumbs', rql, 'components', 'breadcrumbs');
-	    } else { log('breadcrumbs not found!'); }
+	    }
 	}
 	var d = asyncRemoteExec('filter_select_content', toupdate, rql);
 	d.addCallback(function(updateMap) {