Skip to content

Commit

Permalink
ammended
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Schuetz authored and Fabian Schuetz committed Feb 18, 2013
1 parent 27c36c9 commit 0440118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/lang/show.html
Expand Up @@ -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|default_if_none:undefined }}", "{{ this_lang|default_if_none:undefined }}", 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;
Expand Down

0 comments on commit 0440118

Please sign in to comment.