web/data/cubicweb.ajax.js
changeset 7574 34154f48d255
parent 7433 9aadb5a04b53
parent 7571 6386f802fbc6
child 7623 5cc7acc7a238
--- a/web/data/cubicweb.ajax.js	Tue Jun 28 17:59:31 2011 +0200
+++ b/web/data/cubicweb.ajax.js	Wed Jun 29 16:04:01 2011 +0200
@@ -296,7 +296,7 @@
 }
 
 /**
- * .. function:: loadxhtml(url, form, reqtype='get', mode='replace', cursor=true)
+ * .. function:: loadxhtml(url, form, reqtype='get', mode='replace', cursor=false)
  *
  * build url given by absolute or relative `url` and `form` parameters
  * (dictionary), fetch it using `reqtype` method, then evaluate the
@@ -312,7 +312,9 @@
  */
 jQuery.fn.loadxhtml = function(url, form, reqtype, mode, cursor) {
     if (this.size() > 1) {
-        cw.log('loadxhtml was called with more than one element');
+        cw.log('loadxhtml called with more than one element');
+    } else if (this.size() < 1) {
+        cw.log('loadxhtml called without an element');
     }
     var callback = null;
     if (form && form.callback) {