diff options
author | 2011-08-29 12:01:05 +0200 | |
---|---|---|
committer | 2011-08-29 12:01:05 +0200 | |
commit | 74b7332fb174bbf474cfffefee6cc80e40fda574 (patch) | |
tree | 18199d056d9c184acca939359fec0c257707201a | |
parent | Implement the templating system (diff) | |
download | glsamaker-74b7332fb174bbf474cfffefee6cc80e40fda574.tar.gz glsamaker-74b7332fb174bbf474cfffefee6cc80e40fda574.tar.bz2 glsamaker-74b7332fb174bbf474cfffefee6cc80e40fda574.zip |
Add missing quotes
-rw-r--r-- | app/views/tools/template.js.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tools/template.js.erb b/app/views/tools/template.js.erb index f1a5472..d4a87ad 100644 --- a/app/views/tools/template.js.erb +++ b/app/views/tools/template.js.erb @@ -1,6 +1,6 @@ <% if @error.nil? -%> GLSAMaker.editing.templates.close($('templates-<%= @target %>')); -var target = $(<%= @target %>); +var target = $('<%= @target %>'); target.setValue(target.getValue() + "<%= escape_javascript(@template.text) %>"); <% else -%> alert("<%= escape_javascript(@error) %>"); |