MNOD EV3-447 Termék választó összes termék gomb
This commit is contained in:
parent
0ca5eb2255
commit
f5d04f29b9
@ -1889,6 +1889,9 @@ public function getDataTableContent(): JsonResponse
|
||||
} else {
|
||||
if (\request()->get('groupId')) {
|
||||
$groupId = \request()->get('groupId');
|
||||
if ($groupId === 'all') {
|
||||
$groupId = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1269,7 +1269,7 @@ solution before template
|
||||
data:function (data) {
|
||||
data.searchStr=dataTableSearchStr;
|
||||
data.krel=dataTableSearchKrel;
|
||||
data.groupId=selectedProductGroup;
|
||||
data.groupId = (selectedProductGroup === 'all') ? null : selectedProductGroup;
|
||||
data.supplierId=Order.supplierId;
|
||||
data.deliveryDate=Order.deliveryDate;
|
||||
data.orderId=Order.id;
|
||||
@ -1417,6 +1417,9 @@ solution before template
|
||||
$('.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a.categoryItem.clickable').on('click',
|
||||
function () {
|
||||
let groupId=$(this).data('id');
|
||||
if (groupId === 'all') {
|
||||
groupId = null;
|
||||
}
|
||||
selectedProductGroup=groupId;
|
||||
dataTableSearchStr=null;
|
||||
console.log(groupId);
|
||||
|
||||
@ -46,6 +46,9 @@
|
||||
</a>
|
||||
<div class="sidebar-submenu active" style="display: block;">
|
||||
<ul>
|
||||
<li class="list-unstyled">
|
||||
<a class="categoryItem clickable" data-id="all">Összes</a>
|
||||
</li>
|
||||
@if(count($productGroup)>0)
|
||||
@include('modules.order.productSelectSidebarProductGroupPartial',$productGroup)
|
||||
@endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user