From ce86a6e0afce9b672e718949b9e86a0706427e6e Mon Sep 17 00:00:00 2001 From: Aura Esteban Date: Tue, 24 Oct 2017 16:05:53 +0800 Subject: [PATCH 1/2] [DD-2697] Refresh sortable --- client/common/directives/ModelFieldList/ModelFieldList.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/common/directives/ModelFieldList/ModelFieldList.js b/client/common/directives/ModelFieldList/ModelFieldList.js index 2ca82dae..7f5ffe46 100644 --- a/client/common/directives/ModelFieldList/ModelFieldList.js +++ b/client/common/directives/ModelFieldList/ModelFieldList.js @@ -96,6 +96,10 @@ angular.module('dashboard.directives.ModelFieldList', [ console.error('ModelFieldList failed to parse scope.data', e); } } + + $timeout(function() { + angular.element('.ui-sortable').sortable('refresh'); + }) } }); From 466e7fcf6c5df744bceb17baff33545b33901239 Mon Sep 17 00:00:00 2001 From: Aura Esteban Date: Tue, 24 Oct 2017 16:54:38 +0800 Subject: [PATCH 2/2] Add semi-colon --- client/common/directives/ModelFieldList/ModelFieldList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/common/directives/ModelFieldList/ModelFieldList.js b/client/common/directives/ModelFieldList/ModelFieldList.js index 7f5ffe46..5d44eea9 100644 --- a/client/common/directives/ModelFieldList/ModelFieldList.js +++ b/client/common/directives/ModelFieldList/ModelFieldList.js @@ -99,7 +99,7 @@ angular.module('dashboard.directives.ModelFieldList', [ $timeout(function() { angular.element('.ui-sortable').sortable('refresh'); - }) + }); } });