From 248fd7be06a685ba4f0b9922b8c66a6e0879f2cf Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 12 Jun 2017 17:16:49 +0200 Subject: [PATCH] Fix reordering columns to the first position [SCI-1346] --- app/assets/javascripts/repositories/repository_datatable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/repositories/repository_datatable.js b/app/assets/javascripts/repositories/repository_datatable.js index 042d8b83b..39798bda8 100644 --- a/app/assets/javascripts/repositories/repository_datatable.js +++ b/app/assets/javascripts/repositories/repository_datatable.js @@ -52,7 +52,7 @@ function dataTableInit() { scrollY: '64vh', scrollCollapse: true, colReorder: { - fixedColumnsLeft: 2, + fixedColumnsLeft: $('#assigned').text().length === 0 ? 1 : 2, realtime: false }, destroy: true,