Permalink
Browse files

Set default values for include_base and include_css.

  • Loading branch information...
1 parent 0b10056 commit 87d74394c87702c7ae29bb12653ef9e38a17a1d7 @FooBarWidget FooBarWidget committed Jan 15, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 app/views/admin/help/_code.txt.erb
@@ -1,11 +1,13 @@
<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" %>,
- topic_url : location.href,
- topic_title: document.title || location.href
+ 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" %>,
+ topic_url : location.href,
+ topic_title : document.title || location.href,
+ include_base: !window.Juvia,
+ include_css : !window.Juvia
};
function makeQueryString(options) {

0 comments on commit 87d7439

Please sign in to comment.