diff options
| author | Christophe Matthieu <chm@openerp.com> | 2012-12-07 10:11:34 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2012-12-07 10:11:34 +0100 |
| commit | 27bc9ed5faf3df21c059ad2d06ebf255fe9dffde (patch) | |
| tree | 5a7e9da6545925f4aa2c04ae8ba44473cb95d055 /addons/web/static/src/js/views.js | |
| parent | 94c9801ac707086732cbe1a7913ef139d1cc785b (diff) | |
[IMP] mail: fix display message attachment error
bzr revid: chm@openerp.com-20121207091134-9v0ce6o3dp8gca7l
Diffstat (limited to 'addons/web/static/src/js/views.js')
| -rw-r--r-- | addons/web/static/src/js/views.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 94ce854876e..2388c0f287a 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -1115,20 +1115,12 @@ instance.web.Sidebar = instance.web.Widget.extend({ }); }); }, - do_attachement_update: function(dataset, model_id,args) { + do_attachement_update: function(dataset, model_id, args) { var self = this; this.dataset = dataset; this.model_id = model_id; - if (args && args[0]["error"]) { - instance.web.dialog($('<div>'),{ - modal: true, - title: "OpenERP " + _.str.capitalize(args[0]["title"]), - buttons: [{ - text: _t("Ok"), - click: function(){ - $(this).dialog("close"); - }}] - }).html(args[0]["error"]); + if (args && args[0].error) { + this.do_warn( instance.web.qweb.render('message_error_uploading'), args[0].error); } if (!model_id) { this.on_attachments_loaded([]); |
