Hide jsGrid filter/insert rows in mobile view correctly on all pages
This commit is contained in:
parent
eb46c82ae1
commit
5bf2f310d6
@ -363,7 +363,5 @@
|
||||
var expense_data = JSON.parse({{ import('json').dumps(import('json').dumps(revision.expense))|safe }});
|
||||
var editing = false;
|
||||
makeGrid();
|
||||
|
||||
$('.jsgrid-filter-row, .jsgrid-insert-row').attr('style', 'display: none !important;'); /* Override Semantic UI */
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
@ -141,4 +141,8 @@ function makeGrid() {
|
||||
onItemUpdated: recalcExpTotal,
|
||||
onRefreshed: recalcExpTotal,
|
||||
});
|
||||
|
||||
if (!editing) {
|
||||
$('.jsgrid-filter-row, .jsgrid-insert-row').attr('style', 'display: none !important;'); /* Override Semantic UI */
|
||||
}
|
||||
}
|
||||
|
@ -85,4 +85,8 @@ function makeGrid() {
|
||||
onItemUpdated: recalcTotal,
|
||||
onRefreshed: recalcTotal,
|
||||
});
|
||||
|
||||
if (!editing) {
|
||||
$('.jsgrid-filter-row, .jsgrid-insert-row').attr('style', 'display: none !important;'); /* Override Semantic UI */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user