Changeset 499


Ignore:
Timestamp:
08/09/2010 12:33:43 PM (18 months ago)
Author:
ofer
Message:

Fix TGP behavior with no result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/js/transposh.js

    r481 r499  
    197197    function do_tgp_invoke (token, trans) { 
    198198        $.getJSON(t_jp.post_url+'?tgp='+trans+'&tgl='+t_jp.lang, function(result) { 
    199             if (result.sentences[0].trans) { 
     199            if (result.sentences !== undefined && result.sentences[0].trans) { 
    200200                auto_translate_success(token, result.sentences[0].trans); 
    201201            } 
Note: See TracChangeset for help on using the changeset viewer.