Permalink
Browse files

Fixed typos in javascript embedding code.

  • Loading branch information...
1 parent 225d5b2 commit 555a3040320ead06d106778d48ae2b3c663084e6 @JangoSteve JangoSteve committed Jan 15, 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 555a304

Please sign in to comment.