[IMP]imrpove the style of dropdodwnselection
bzr revid: mba@tinyerp.com-20140320055524-szvqd1d8i2sgpe2l
This commit is contained in:
parent
0c621f4776
commit
002f663d29
|
@ -3444,15 +3444,15 @@ body.oe_single_form .oe_single_form_container {
|
|||
padding-right: 0px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.openerp .btn.btn-xs.btn-default {
|
||||
color: #333333;
|
||||
text-decoration: none !important;
|
||||
float: none;
|
||||
.openerp .btn-group.state {
|
||||
padding-top: 3px;
|
||||
}
|
||||
.openerp .btn-group:focus, .openerp .btn-group:hover {
|
||||
padding: 1px 5px;
|
||||
border: 1px solid #98999b;
|
||||
display: inline;
|
||||
.openerp .btn-group.state a {
|
||||
color: #333333;
|
||||
}
|
||||
.openerp .btn-group.state a:hover {
|
||||
text-decoration: none;
|
||||
color: #333333;
|
||||
}
|
||||
.openerp .status {
|
||||
display: inline-block;
|
||||
|
|
|
@ -2783,15 +2783,13 @@ body.oe_single_form
|
|||
padding-left: 5px
|
||||
padding-right: 0px
|
||||
font-size: 13px
|
||||
.btn.btn-xs.btn-default
|
||||
color: #333
|
||||
text-decoration: none !important
|
||||
float: none
|
||||
.btn-group:focus, .btn-group:hover
|
||||
padding: 1px 5px
|
||||
border: 1px solid #98999B
|
||||
display: inline
|
||||
|
||||
.btn-group.state
|
||||
padding-top: 3px
|
||||
.btn-group.state a
|
||||
color: #333333
|
||||
.btn-group.state a:hover
|
||||
text-decoration: none
|
||||
color: #333333
|
||||
.status
|
||||
display: inline-block
|
||||
position: relative
|
||||
|
|
|
@ -2348,6 +2348,10 @@ instance.web.form.DropdownSelection = instance.web.form.FieldChar.extend({
|
|||
data['states'] = self.prepare_dropdown_selection();
|
||||
this.$el.html(QWeb.render("DropdownSelection", data));
|
||||
this.$el.find('.oe_legend').click(self.do_action.bind(self));
|
||||
this.$el.on('mouseenter mouseleave', function(e) {
|
||||
self.$el.find('.caret').toggleClass('hidden', e.type == 'mouseleave');
|
||||
});
|
||||
|
||||
},
|
||||
do_action: function(e) {
|
||||
var self = this;
|
||||
|
|
|
@ -1009,11 +1009,11 @@
|
|||
</t>
|
||||
|
||||
<t t-name="DropdownSelection">
|
||||
<span class="btn-group">
|
||||
<span class="btn-group state">
|
||||
<t t-foreach="states" t-as="rec">
|
||||
<a t-att-class="rec.state_icon" t-if="widget.get('value') === rec.name" t-att-title="rec.state_name" >
|
||||
<a t-att-class="'oe_legend dropdown-toggle'" data-toggle="dropdown">
|
||||
<span class="caret"></span>
|
||||
<a class="oe_legend dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="caret hidden"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span> </a>
|
||||
</a>
|
||||
</t>
|
||||
|
|
|
@ -1330,6 +1330,9 @@ instance.web_kanban.DropdownSelection = instance.web_kanban.AbstractField.extend
|
|||
data['states'] = self.prepare_dropdown_selection();
|
||||
this.$el = $(QWeb.render("DropdownSelection", data));
|
||||
this.$el.find('.oe_legend').click(self.do_action.bind(self));
|
||||
this.$el.on('mouseenter mouseleave', function(e) {
|
||||
self.$el.find('.caret').toggleClass('hidden', e.type == 'mouseleave');
|
||||
});
|
||||
},
|
||||
do_action: function(e) {
|
||||
var self = this;
|
||||
|
|
Loading…
Reference in New Issue