From: Chris Date: Wed, 2 Apr 2014 13:46:09 +0000 (+0800) Subject: Pman.GoogleTranslate.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=daf08828e9c20f419890a8d1f252ac064b4db8aa Pman.GoogleTranslate.js --- diff --git a/Pman.GoogleTranslate.js b/Pman.GoogleTranslate.js index 4a137ef6..40d628d6 100644 --- a/Pman.GoogleTranslate.js +++ b/Pman.GoogleTranslate.js @@ -149,11 +149,11 @@ Pman.GoogleTranslate = function(str, src, dest, cb, force) { return o; } // Roo.log('in2?'); -// if(typeof(o.data.error) != 'undefined'){ -// Roo.get(document.body).unmask(); -// Roo.MessageBox.alert("Failure ", o.data.error.message); -// return; -// } + if(typeof(o.data.error) != 'undefined'){ + Roo.get(document.body).unmask(); + Roo.MessageBox.alert("Failure ", o.data.error.message); + return; + } // Roo.log('in3?'); cb(o.data.translatedText); // ret = o.data.translatedText;