[MERGE] [IMP] Custom filters: restore checkboxes and make them exclusive

bzr revid: fme@openerp.com-20130220165347-p64fqa7pa1eat0mo
This commit is contained in:
Fabien Meghazi
2013-02-20 17:53:47 +01:00
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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');
});
+2 -2
View File
@@ -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>