summaryrefslogtreecommitdiffstats
path: root/core/js/octemplate.js
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-04-29 22:35:37 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-04-29 22:35:37 +0200
commit048569754aec39b0e58232107e8108fed70bf7e8 (patch)
tree3298671a52c3e7fb09258f78d8ea2b7f6223e1a9 /core/js/octemplate.js
parent1f194b7bdcbac868525b164b29814d3373b6e818 (diff)
downloadnextcloud-server-048569754aec39b0e58232107e8108fed70bf7e8.tar.gz
nextcloud-server-048569754aec39b0e58232107e8108fed70bf7e8.zip
Add compatibility function for outerHTML
Diffstat (limited to 'core/js/octemplate.js')
-rw-r--r--core/js/octemplate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/octemplate.js b/core/js/octemplate.js
index a5d56852a57..e032506c0b1 100644
--- a/core/js/octemplate.js
+++ b/core/js/octemplate.js
@@ -72,7 +72,7 @@
},
// From stackoverflow.com/questions/1408289/best-way-to-do-variable-interpolation-in-javascript
_build: function(o){
- var data = this.elem.attr('type') === 'text/template' ? this.elem.html() : this.elem.get(0).outerHTML;
+ var data = this.elem.attr('type') === 'text/template' ? this.elem.html() : outerHTML(this.elem.get(0));
try {
return data.replace(/{([^{}]*)}/g,
function (a, b) {