mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Working button in UI
This commit is contained in:
parent
65a9a9cd2c
commit
a8fdedab64
|
|
@ -1,4 +1,4 @@
|
||||||
var shoppingListTable = $('#shoppinglist-table').DataTable({
|
var shoppingListTable = $('#shoppinglist-table').DataTable({
|
||||||
'order': [[1, 'asc']],
|
'order': [[1, 'asc']],
|
||||||
"orderFixed": [[3, 'asc']],
|
"orderFixed": [[3, 'asc']],
|
||||||
'columnDefs': [
|
'columnDefs': [
|
||||||
|
|
@ -448,7 +448,17 @@ $(document).on("click", "#print-shopping-list-button", function(e)
|
||||||
className: 'btn-secondary',
|
className: 'btn-secondary',
|
||||||
callback: function()
|
callback: function()
|
||||||
{
|
{
|
||||||
bootbox.hideAll();
|
Grocy.Api.Get('print/shoppinglist/thermal', { "list": $("#selected-shopping-list").val(),
|
||||||
|
"printHeader": $("#print-show-header").prop("checked") },
|
||||||
|
function(result)
|
||||||
|
{
|
||||||
|
bootbox.hideAll();
|
||||||
|
},
|
||||||
|
function(xhr)
|
||||||
|
{
|
||||||
|
console.error(xhr);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ok: {
|
ok: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user