Avoid to send XHR request when a task has not moved after a drag and drop

This commit is contained in:
Frederic Guillot
2016-01-21 22:17:24 -05:00
parent 836495b54b
commit 8bb67dc8cb
4 changed files with 20 additions and 10 deletions

View File

@@ -3,6 +3,9 @@
<?= $task['is_active'] == 1 ? ($this->user->hasProjectAccess('board', 'save', $task['project_id']) ? 'draggable-item ' : '').'task-board-status-open '.($task['date_modification'] > (time() - $board_highlight_period) ? 'task-board-recent' : '') : 'task-board-status-closed' ?>
color-<?= $task['color_id'] ?>"
data-task-id="<?= $task['id'] ?>"
data-column-id="<?= $task['column_id'] ?>"
data-swimlane-id="<?= $task['swimlane_id'] ?>"
data-position="<?= $task['position'] ?>"
data-owner-id="<?= $task['owner_id'] ?>"
data-category-id="<?= $task['category_id'] ?>"
data-due-date="<?= $task['date_due'] ?>"