Browse Source
Merge pull request #112 from dbo-odoo/10.0-mig-mail_full_expand
Merge pull request #112 from dbo-odoo/10.0-mig-mail_full_expand
[IMP] mail_full_expand: Migrated to 10.0pull/147/head
Pedro M. Baeza
8 years ago
committed by
GitHub
7 changed files with 88 additions and 79 deletions
-
4mail_full_expand/__manifest__.py
-
12mail_full_expand/static/src/css/mail_full_expand.css
-
25mail_full_expand/static/src/css/mail_full_expand.less
-
43mail_full_expand/static/src/js/mail_full_expand.js
-
9mail_full_expand/static/src/xml/mail_full_expand.xml
-
2mail_full_expand/views/assets.xml
-
72mail_full_expand/views/mail_full_expand.xml
@ -1,12 +0,0 @@ |
|||
/* © 2014-2015 Grupo ESOC <http://www.grupoesoc.es> |
|||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
*/ |
|||
|
|||
.openerp .oe_mail .oe_msg .oe_msg_icons .oe_full_expand:hover a{ |
|||
color: #BBBAFF; |
|||
text-shadow: 0px 1px #7C7BAD, |
|||
0px -1px #7C7BAD, |
|||
-1px 0px #7C7BAD, |
|||
1px 0px #7C7BAD, |
|||
0px 3px 3px rgba(0, 0, 0, 0.1); |
|||
} |
@ -0,0 +1,25 @@ |
|||
/* © 2014-2015 Grupo ESOC <http://www.grupoesoc.es> |
|||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
*/ |
|||
|
|||
.o_mail_thread .o_thread_message { |
|||
.o_full_expand { |
|||
cursor: pointer; |
|||
opacity: 0; |
|||
margin-right: -5px; |
|||
padding: 4px; |
|||
} |
|||
|
|||
&.o_thread_selected_message .o_full_expand { |
|||
opacity: 0.6; |
|||
} |
|||
|
|||
&:hover { |
|||
.o_full_expand { |
|||
opacity: 0.6; |
|||
&:hover { |
|||
opacity: 1; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,26 +1,29 @@ |
|||
/* © 2014-2015 Grupo ESOC <http://www.grupoesoc.es> |
|||
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|||
*/ |
|||
odoo.define('mail_full_expand.expand', function (require) { |
|||
"use strict"; |
|||
|
|||
openerp.mail_full_expand = function (instance) { |
|||
instance.mail.ThreadMessage.include({ |
|||
bind_events: function () { |
|||
this._super.apply(this, arguments); |
|||
this.$('.oe_full_expand').on('click', this.on_message_full_expand); |
|||
}, |
|||
var Thread = require('mail.ChatThread'); |
|||
|
|||
on_message_full_expand: function() { |
|||
// Get the action data and execute it to open the full view
|
|||
var do_action = this.do_action, |
|||
msg_id = this.id; |
|||
Thread.include({ |
|||
events: _.defaults({ |
|||
"click .o_full_expand": "on_message_full_expand", |
|||
}, Thread.prototype.events), |
|||
|
|||
on_message_full_expand: function(event) { |
|||
// Get the action data and execute it to open the full view
|
|||
var do_action = this.do_action, |
|||
msg_id = $(event.currentTarget).data('message-id'); |
|||
|
|||
this.rpc("/web/action/load", { |
|||
"action_id": "mail_full_expand.act_window", |
|||
}) |
|||
.done(function(action) { |
|||
action.res_id = msg_id; |
|||
do_action(action); |
|||
}); |
|||
} |
|||
}); |
|||
}; |
|||
this.rpc("/web/action/load", { |
|||
"action_id": "mail_full_expand.mail_message_action", |
|||
}) |
|||
.done(function(action) { |
|||
action.res_id = msg_id; |
|||
do_action(action); |
|||
}); |
|||
} |
|||
}); |
|||
|
|||
}); |
Write
Preview
Loading…
Cancel
Save
Reference in new issue