[imp] design improvements
bzr revid: nicolas.vanhoren@openerp.com-20110609173644-jb92t37j75c7xl87
This commit is contained in:
parent
f9776c399a
commit
38a6e52f24
|
@ -1011,60 +1011,12 @@ background: linear-gradient(top, #ffffff 0%,#ebe9e9 100%); /* W3C */
|
||||||
border-color: #828282;
|
border-color: #828282;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Many2one Autosearch */
|
.openerp .oe-m2m-drop-down-button {
|
||||||
.openerp .ui_combo {
|
margin-left: -23px;
|
||||||
height: 19px;
|
|
||||||
top: 6px;
|
|
||||||
width: 20px;
|
|
||||||
position: relative;
|
|
||||||
margin-left: -26px;
|
|
||||||
}
|
}
|
||||||
|
.openerp .oe-m2m-drop-down-button img,
|
||||||
.openerp img.m2o_open {
|
.openerp .oe-m2m-cm-button img {
|
||||||
vertical-align: middle;
|
margin-bottom: -4px;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
/*----- End Many2one Autosearch ------- */
|
{
|
||||||
|
|
||||||
/* Many2one Contextmenu */
|
|
||||||
.openerp div.m2o_contextmenu {
|
|
||||||
background-color: #444;
|
|
||||||
border: 1px solid #000;
|
|
||||||
white-space: nowrap;
|
|
||||||
position: absolute;
|
|
||||||
padding: 2px;
|
|
||||||
z-index: 100;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.openerp div.m2o_contextmenu a,
|
|
||||||
.openerp div.m2o_contextmenu span {
|
|
||||||
display: block;
|
|
||||||
text-align: left;
|
|
||||||
text-decoration: none;
|
|
||||||
white-space: nowrap;
|
|
||||||
padding: 2px;
|
|
||||||
color: #FFF;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.openerp div.m2o_contextmenu hr {
|
|
||||||
margin: 1px 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.openerp div.m2o_contextmenu td {
|
|
||||||
padding: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.openerp div.m2o_contextmenu a:hover,
|
|
||||||
.openerp div.m2o_contextmenu span:hover {
|
|
||||||
color: #FFF;
|
|
||||||
background-color: #505050;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.openerp div.m2o_contextmenu a.disabled,
|
|
||||||
.openerp div.m2o_contextmenu span.disabled {
|
|
||||||
color: #C0C0C0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*----- End Many2one Contextmenu ------- */
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 263 B |
|
@ -991,8 +991,8 @@ openerp.base.form.FieldMany2One = openerp.base.form.Field.extend({
|
||||||
this._super();
|
this._super();
|
||||||
var self = this;
|
var self = this;
|
||||||
this.$input = this.$element.find("input");
|
this.$input = this.$element.find("input");
|
||||||
this.$drop_down = this.$element.find("span");
|
this.$drop_down = this.$element.find(".oe-m2m-drop-down-button");
|
||||||
this.$menu_btn = this.$element.find("img");
|
this.$menu_btn = this.$element.find(".oe-m2m-cm-button");
|
||||||
|
|
||||||
var bindings = {};
|
var bindings = {};
|
||||||
bindings[this.cm_id + "_search"] = function() {
|
bindings[this.cm_id + "_search"] = function() {
|
||||||
|
@ -1025,9 +1025,7 @@ openerp.base.form.FieldMany2One = openerp.base.form.Field.extend({
|
||||||
self.value = undefined;
|
self.value = undefined;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.$drop_down.button({
|
this.$drop_down.click(function() {
|
||||||
icons: {primary: "ui-icon-triangle-1-s"}, text: false
|
|
||||||
}).click(function() {
|
|
||||||
if (self.$input.autocomplete("widget").is(":visible")) {
|
if (self.$input.autocomplete("widget").is(":visible")) {
|
||||||
self.$input.autocomplete("close");
|
self.$input.autocomplete("close");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -527,10 +527,10 @@
|
||||||
<t t-name="FieldMany2One">
|
<t t-name="FieldMany2One">
|
||||||
<div t-att-id="widget.element_id" style="padding-right: 16px;white-space: nowrap;">
|
<div t-att-id="widget.element_id" style="padding-right: 16px;white-space: nowrap;">
|
||||||
<input t-att-id="widget.element_id + '_input'" type="text" style="width: 100%;"/>
|
<input t-att-id="widget.element_id + '_input'" type="text" style="width: 100%;"/>
|
||||||
<span t-att-id="widget.element_id + '_drop_down'" type="button" class="ui_combo"
|
<span class="oe-m2m-drop-down-button" t-att-id="widget.element_id + '_drop_down'">
|
||||||
tabindex="-1" title="Show All Items"></span>
|
<img src="/base/static/src/img/down-arrow.png" /></span>
|
||||||
<img t-att-id="widget.name + '_open'" alt="Open" title="Create"
|
<span class="oe-m2m-cm-button" t-att-id="widget.name + '_open'">
|
||||||
src="/base/static/src/img/iconset-d-drop.gif" class="m2o_open"/>
|
<img src="/base/static/src/img/icons/gtk-edit.png"/></span>
|
||||||
<div t-att-id="widget.cm_id" class="contextMenu" style="display:none"><ul>
|
<div t-att-id="widget.cm_id" class="contextMenu" style="display:none"><ul>
|
||||||
<li t-att-id="widget.cm_id + '_search'">Search</li>
|
<li t-att-id="widget.cm_id + '_search'">Search</li>
|
||||||
<li t-att-id="widget.cm_id + '_create'">Create</li>
|
<li t-att-id="widget.cm_id + '_create'">Create</li>
|
||||||
|
|
Loading…
Reference in New Issue