Permalink
Browse files

Merge pull request #17 from alfajango/embed-snippet-typos

Fixed typos in javascript embedding code.
  • Loading branch information...
2 parents 7c6921d + 555a304 commit b97ce0e72acf1e87c0887aaea5a3c2df87f3b7f0 @FooBarWidget FooBarWidget committed Jan 30, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/views/admin/help/_code.txt.erb
@@ -1,9 +1,9 @@
<script type="text/javascript" class="juvia">
(function() {
var options = {
- container : <%= escape_js_string(local_assigns[:container]) || "'(a CSS path)'" %>,
- site_key : <%= escape_js_string(local_assigns[:site_key]) || "'(some site key)'" %>,
- topic_key : <%= escape_js_string(local_assigns[:topic_key]) || "location.path" %>,
+ container : <%= raw(escape_js_string(local_assigns[:container]) || "'(a CSS path)'") %>,
+ site_key : <%= raw(escape_js_string(local_assigns[:site_key]) || "'(some site key)'") %>,
+ topic_key : <%= raw(escape_js_string(local_assigns[:topic_key]) || "location.pathname") %>,
topic_url : location.href,
topic_title : document.title || location.href,
include_base: !window.Juvia,
@@ -44,4 +44,4 @@
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(s);
})();
-</script>
+</script>

0 comments on commit b97ce0e

Please sign in to comment.