From ccb2731a49ea33b1a0a3a1dfca5a09ce7163e300 Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Fri, 20 Apr 2012 19:07:43 +0530 Subject: in project widget='etherpad' added bzr revid: tta@openerp.com-20120420133743-2o5d0spxwfxin0yo --- addons/web_etherpad/static/src/js/web_etherpad.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'addons/web_etherpad/static/src/js/web_etherpad.js') diff --git a/addons/web_etherpad/static/src/js/web_etherpad.js b/addons/web_etherpad/static/src/js/web_etherpad.js index 22f21cd1e67..defcf5db76e 100755 --- a/addons/web_etherpad/static/src/js/web_etherpad.js +++ b/addons/web_etherpad/static/src/js/web_etherpad.js @@ -63,10 +63,9 @@ openerp.web_etherpad = function (instance) { { var self = this; if(show_value.split('\n')[0] != '') - $.get(show_value.split('\n')[0]+'/export/html', function(data) { - console.log(data); - self.$element.html(data); - }); + $.get(show_value.split('\n')[0]+'/export/html') + .success(function(data) { self.$element.html(data); }) + .error(function() { self.$element.text('Unable to load pad'); }); else self.$element.text(show_value); } -- cgit v1.2.3