equal
deleted
inserted
replaced
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 */ |