[FIX] pad: font-awesomeize icon

bzr revid: chs@openerp.com-20140212181014-rk1qh1pcovtmjhqu
This commit is contained in:
Christophe Simonis 2014-02-12 19:10:14 +01:00
parent 9d670cd45f
commit e90a59aef6
3 changed files with 4 additions and 4 deletions

View File

@ -13,13 +13,12 @@
border: solid 1px #ccc; border: solid 1px #ccc;
border-radius:3px; border-radius:3px;
text-align: center; text-align: center;
line-height: 22px; line-height: 28px;
overflow: hidden; overflow: hidden;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
color: #666666; color: #666666;
padding-top:-3px;
padding-left:-1px;
cursor: pointer; cursor: pointer;
font-size: 14px;
} }
.oe_pad_switch:hover{ .oe_pad_switch:hover{

View File

@ -13,6 +13,7 @@ openerp.pad = function(instance) {
this.switch_configured(); this.switch_configured();
this.$('.oe_pad_switch').click(function() { this.$('.oe_pad_switch').click(function() {
self.$el.toggleClass('oe_pad_fullscreen'); self.$el.toggleClass('oe_pad_fullscreen');
self.$el.find('.oe_pad_switch').toggleClass('fa-expand fa-compress');
}); });
this.render_value(); this.render_value();
}, },

View File

@ -15,7 +15,7 @@
</t> </t>
<t t-if="! widget.get('effective_readonly')"> <t t-if="! widget.get('effective_readonly')">
<div class="oe_pad_switch_positioner oe_configured"> <div class="oe_pad_switch_positioner oe_configured">
<span class="oe_pad_switch oe_e">&amp;Ntilde;</span> <span class="fa fa-expand oe_pad_switch"></span>
</div> </div>
<div class="oe_pad_content oe_editing oe_configured"> <div class="oe_pad_content oe_editing oe_configured">
</div> </div>