diff options
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r-- | framework/Web/Javascripts/source/prado/prado.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/source/prado/prado.js b/framework/Web/Javascripts/source/prado/prado.js index ec7f68fc..01c0d630 100644 --- a/framework/Web/Javascripts/source/prado/prado.js +++ b/framework/Web/Javascripts/source/prado/prado.js @@ -525,8 +525,9 @@ Prado.Element = * @param {string|element} element - DOM element or element id * @param {optional string} content - New content of element * @param {optional string} boundary - Boundary of new content + * @param {optional boolean} self - Whether to replace itself or just the inner content */ - replace : function(element, content, boundary) + replace : function(element, content, boundary, self) { if(boundary) { @@ -534,7 +535,10 @@ Prado.Element = if(result != null) content = result; } - jQuery('#'+element).replaceWith(content); + if(self) + jQuery('#'+element).replaceWith(content); + else + jQuery('#'+element).html(content); }, /** |