1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Working on task kanban

This commit is contained in:
Hillel Coren 2017-12-19 23:02:05 +02:00
parent a355ab0d67
commit cb4edaedc6
2 changed files with 7 additions and 4 deletions

View File

@ -18,9 +18,14 @@ class TaskKanbanController extends BaseController
->with(['project', 'client', 'task_status'])
->whereNull('invoice_id')
->orderBy('task_status_sort_order')
->orderBy('id')
->get();
$statuses = TaskStatus::scope()
->orderBy('sort_order')
->orderBy('id')
->get();
$statuses = TaskStatus::scope()->orderBy('sort_order')->get();
$projects = Project::scope()->get();
$clients = Client::scope()->get();

View File

@ -259,8 +259,7 @@
callback(response);
},
error: function(error) {
console.log('error');
console.log(error);
swal("{{ trans('texts.error_refresh_page') }}");
},
}).always(function() {
setTimeout(function() {
@ -270,7 +269,6 @@
}
self.onStatusDragged = function(dragged) {
console.log('onStatusDragged..');
var status = dragged.item;
status.sort_order(dragged.targetIndex);