Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

default values for vars #21

Merged
merged 2 commits into from

2 participants

@fscz

No description provided.

Fabian Schuetz added some commits
@evanmiller
Owner

thanks!

@evanmiller evanmiller merged commit 20b861c into from
@fscz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 18, 2013
  1. default values for vars in template

    Fabian Schuetz authored
  2. ammended

    Fabian Schuetz authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/view/lang/show.html
View
2  src/view/lang/show.html
@@ -27,7 +27,7 @@
var span_id = span.id;
var textbox = document.getElementById("trans_"+span_id);
if (textbox && textbox.value == "" && span.firstChild.value != undefined) {
- google.language.translate(span.firstChild.value, "{{ original_lang }}", "{{ this_lang }}", function(result) {
+ google.language.translate(span.firstChild.value, "{{ original_lang|default_if_none:"" }}", "{{ this_lang|default_if_none:"" }}", function(result) {
if (!result.error) {
if (result.translation) {
textbox.value = result.translation;
Something went wrong with that request. Please try again.