Use false instead of 'false' to disable the sort col

This commit is contained in:
Kevin MacMartin 2016-12-19 22:03:43 -05:00
parent b4523938f5
commit 2819ed5582

View file

@ -5,8 +5,8 @@
@endsection
@section('dashboard-body')
@set('sort_data', $sortcol != 'false' ? "data-sort=$sortcol" : '')
@set('sort_icon', $sortcol != 'false' ? '<i class="fa fa-bars sort-icon" title="Click and drag to reorder"></i>' : '')
@set('sort_data', $sortcol != false ? "data-sort=$sortcol" : '')
@set('sort_icon', $sortcol != false ? '<i class="fa fa-bars sort-icon" title="Click and drag to reorder"></i>' : '')
<ul id="edit-list" class="list-group edit-list" data-model="{{ $model }}" {{ $sort_data }}>
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}" />