diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-06-23 11:22:44 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-06-23 11:28:20 +0200 |
| commit | 2e785a886905333758497150b17b0df1d0ef66d6 (patch) | |
| tree | 39a93faf0d6eb23e84d14b5f33779e7e8f73930e /addons/web_editor/static/lib/summernote/src/js/EventHandler.js | |
| parent | ff090ab23ddd7e14d07d5071cf0a74836aebcfbb (diff) | |
[FIX] web_settings_dashboard: Invite new users reload
Before this revision, it wasn't possible to invite new users
(in the Settings Dashboard) multiple times without reloading
the dashboard
e.g. Invite one user, then fill again the textarea, and click
again the `Invite` button
This is because a new widget is created at each reload,
because of:
```
load_invitations: function(data){
return new DashboardInvitations(this, data.users_info).replace(this.$('.o_web_settings_dashboard_invitations'));
},
```
and
```
reload:function(){
return this.parent.load(['invitations']);
},
```
and `this.$('#user_emails').val().` is empty at the second reload,
because the textarea retrieved with this selector is the textarea
of the previous widget, which is now empty.
It should probably be proper to make another mechanism for the reload,
that doesn't create a new widget each time,
but we don't take the chances in a stable release. Therefore,
we just use the event delegate target to retrieve the right
textarea.
opw-677680
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src/js/EventHandler.js')
0 files changed, 0 insertions, 0 deletions
