[IMP] Custom filters: restore checkboxes and make them exclusive
bzr revid: fme@openerp.com-20130220163306-14xwsgvu8rw2ciny
This commit is contained in:
parent
a7376a5686
commit
f20c884cf5
|
@ -1548,6 +1548,9 @@ instance.web.search.CustomFilters = instance.web.search.Input.extend({
|
|||
})
|
||||
.on('reset', this.proxy('clear_selection'));
|
||||
this.$el.on('submit', 'form', this.proxy('save_current'));
|
||||
this.$el.on('click', 'input[type=checkbox]', function() {
|
||||
$(this).siblings('input[type=checkbox]').prop('checked', false);
|
||||
});
|
||||
this.$el.on('click', 'h4', function () {
|
||||
self.$el.toggleClass('oe_opened');
|
||||
});
|
||||
|
|
|
@ -1605,9 +1605,9 @@
|
|||
<form>
|
||||
<p><input id="oe_searchview_custom_input" placeholder="Filter name"/></p>
|
||||
<p>
|
||||
<input id="oe_searchview_custom_public" type="radio" name="oe_searchview_custom_filter"/>
|
||||
<input id="oe_searchview_custom_public" type="checkbox"/>
|
||||
<label for="oe_searchview_custom_public">Share with all users</label>
|
||||
<input id="oe_searchview_custom_default" type="radio" name="oe_searchview_custom_filter"/>
|
||||
<input id="oe_searchview_custom_default" type="checkbox"/>
|
||||
<label for="oe_searchview_custom_default">Use by default</label>
|
||||
</p>
|
||||
<button>Save</button>
|
||||
|
|
Loading…
Reference in New Issue