diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-11-08 12:39:03 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-11-08 12:39:03 +0100 |
| commit | 85448373c8cb4ba78d9b5974ddef0f0cf10960bc (patch) | |
| tree | 2469c042e19af0b571c637b3c9914dbfad1db421 /addons/google_docs/static/src/js | |
| parent | d0400362d636cbe2677c29a9196d63f419b72bff (diff) | |
| parent | 2cb52fe5353cc71018cdfa83acbc8b50f7994982 (diff) | |
[IMP] Updated jquery and jquery ui. API change for $.Deferreds
bzr revid: fme@openerp.com-20121108113903-wcdypeb4ff9xxhvt
Diffstat (limited to 'addons/google_docs/static/src/js')
| -rw-r--r-- | addons/google_docs/static/src/js/gdocs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/google_docs/static/src/js/gdocs.js b/addons/google_docs/static/src/js/gdocs.js index 0cc93b2510c..45e1d09d42c 100644 --- a/addons/google_docs/static/src/js/gdocs.js +++ b/addons/google_docs/static/src/js/gdocs.js @@ -16,9 +16,9 @@ var _t = instance.web._t, var view = self.getParent(); var ids = ( view.fields_view.type != "form" )? view.groups.get_selection().ids : [ view.datarecord.id ]; if( !_.isEmpty(ids) ){ - view.sidebar_context().then(function (context) { + view.sidebar_context().done(function (context) { var ds = new instance.web.DataSet(this, 'ir.attachment', context); - ds.call('google_doc_get', [view.dataset.model, ids, context]).then(function(r) { + ds.call('google_doc_get', [view.dataset.model, ids, context]).done(function(r) { if (r == 'False') { var params = { error: response, |
