diff options
| author | Tejas Tank <tta@openerp.com> | 2012-04-20 19:07:43 +0530 |
|---|---|---|
| committer | Tejas Tank <tta@openerp.com> | 2012-04-20 19:07:43 +0530 |
| commit | ccb2731a49ea33b1a0a3a1dfca5a09ce7163e300 (patch) | |
| tree | b13847de5db46f7cc4531b71e13e2c7a18553bf6 /addons/web_etherpad/static | |
| parent | fa035be71d8ccabd31b15fd26cf6d8eefe8ae2fc (diff) | |
in project widget='etherpad' added
bzr revid: tta@openerp.com-20120420133743-2o5d0spxwfxin0yo
Diffstat (limited to 'addons/web_etherpad/static')
| -rwxr-xr-x | addons/web_etherpad/static/src/js/web_etherpad.js | 7 |
1 files changed, 3 insertions, 4 deletions
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); } |
