web/data/cubicweb.ajax.js
branchtls-sprint
changeset 1801 672acc730ce5
parent 1563 b130c6cec8c2
child 2257 2c9eceeaae6a
equal deleted inserted replaced
1800:05c36cf3c813 1801:672acc730ce5
   315     } else {
   315     } else {
   316 	log('Node', nodeId, 'not found');
   316 	log('Node', nodeId, 'not found');
   317     }
   317     }
   318 }
   318 }
   319 
   319 
       
   320 /*
       
   321  * fetches `url` and replaces `nodeid`'s content with the result
       
   322  * @param replacemode how the replacement should be done (default is 'replace')
       
   323  *  Possible values are :
       
   324  *    - 'replace' to replace the node's content with the generated HTML
       
   325  *    - 'swap' to replace the node itself with the generated HTML
       
   326  *    - 'append' to append the generated HTML to the node's content
       
   327  */
       
   328 function loadxhtml(nodeid, url, /* ... */ replacemode) {
       
   329     jQuery('#' + nodeid).loadxhtml(url, null, 'post', replacemode);
       
   330 }
       
   331 
   320 /* XXX: this function should go in edition.js but as for now, htmlReplace
   332 /* XXX: this function should go in edition.js but as for now, htmlReplace
   321  * references it.
   333  * references it.
   322  *
   334  *
   323  * replace all textareas with fckeditors.
   335  * replace all textareas with fckeditors.
   324  */
   336  */