[ADD] 'locked' icon on non-public custom filters
Icon is kind-of crummy, but none of the iconic font's icons work, they're too small to work correctly (especially when using both locked and unlocked, they can't be distinguished below a font size of ~48) bzr revid: xmo@openerp.com-20120518111202-3h19grpq5cxgejg0
This commit is contained in:
parent
aa3ef52416
commit
ffbd7480a4
|
@ -1368,7 +1368,10 @@
|
|||
cursor: pointer;
|
||||
position: relative;
|
||||
line-height: 1.2em;
|
||||
padding: 2px 20px 2px 10px;
|
||||
padding: 2px 20px 2px 25px;
|
||||
}
|
||||
.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_custom li.oe_searchview_custom_private {
|
||||
background: url(/web/static/src/img/icons/terp-locked.png) 5px center no-repeat;
|
||||
}
|
||||
.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_custom li:hover {
|
||||
background-color: #f0f0fa;
|
||||
|
|
|
@ -1113,7 +1113,10 @@ $colour4: #8a89ba
|
|||
cursor: pointer
|
||||
position: relative
|
||||
line-height: 1.2em
|
||||
padding: 2px 20px 2px 10px
|
||||
padding: 2px 20px 2px 25px
|
||||
|
||||
&.oe_searchview_custom_private
|
||||
background: url(/web/static/src/img/icons/terp-locked.png) 5px center no-repeat
|
||||
|
||||
&:hover
|
||||
background-color: $hover-background
|
||||
|
@ -1123,6 +1126,7 @@ $colour4: #8a89ba
|
|||
top: 0
|
||||
right: 5px
|
||||
|
||||
|
||||
.oe_searchview_advanced
|
||||
form
|
||||
display: none
|
||||
|
|
|
@ -1597,9 +1597,7 @@ instance.web.search.CustomFilters = instance.web.search.Input.extend({
|
|||
};
|
||||
// FIXME: current context?
|
||||
return self.model.call('create_or_replace', [filter]).then(function (id) {
|
||||
if (id) {
|
||||
filter.id = id;
|
||||
}
|
||||
filter.id = id;
|
||||
self.append_filter(filter);
|
||||
self.$element
|
||||
.removeClass('oe_opened')
|
||||
|
|
Loading…
Reference in New Issue