summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r--framework/Web/Javascripts/source/prado/prado.js8
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);
},
/**