Add initial/basic support for "simple" mobile grid filter w/ radio buttons

so far only one such filter is (presumably?) supported..etc.
This commit is contained in:
Lance Edgar 2017-07-10 21:04:56 -05:00
parent 9da7ba21bf
commit f47157102c
10 changed files with 104 additions and 19 deletions

View file

@ -34,3 +34,8 @@
font-weight: bold;
margin-top: 1em;
}
/* make sure space comes between simple filter and "grid" list */
.simple-filter {
margin-bottom: 1.5em;
}

View file

@ -69,6 +69,12 @@ $(document).on('pageshow', function() {
});
// handle radio button value change for "simple" grid filter
$(document).on('change', '.simple-filter .ui-radio', function() {
$(this).parents('form:first').submit();
});
// vendor validation for new purchasing batch
$(document).on('click', 'form[name="new-purchasing-batch"] input[type="submit"]', function() {
var $form = $(this).parents('form');