summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/blogs/StoryView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/StoryView.js')
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/blogs/StoryView.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/blogs/StoryView.js b/StoneIsland/platforms/ios/www/js/lib/blogs/StoryView.js
index 0f03a518..7f9b30a1 100644
--- a/StoneIsland/platforms/ios/www/js/lib/blogs/StoryView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/blogs/StoryView.js
@@ -21,10 +21,10 @@ var StoryView = View.extend({
this.$loader.hide()
this.$content.empty()
this.data.forEach(function(row){
- var t = this.template.replace({{image}}, row.image.url)
- .replace({{date}}, row.date)
- .replace({{title}}, row.title)
- .replace({{body}}, row.body)
+ var t = this.template.replace(/{{image}}/, row.image.url)
+ .replace(/{{date}}/, row.date)
+ .replace(/{{title}}/, row.title)
+ .replace(/{{body}}/, row.body)
this.$content.append(t)
}.bind(this))
},