From 42840af961e0f464605d95db285d351f361f4968 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 11 Jul 2016 14:59:46 -0400 Subject: [PATCH] fix playlist index after drag and drop --- dashboard-ui/scripts/playlistedit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/playlistedit.js b/dashboard-ui/scripts/playlistedit.js index 56b0bf7b0..c3c50dbee 100644 --- a/dashboard-ui/scripts/playlistedit.js +++ b/dashboard-ui/scripts/playlistedit.js @@ -119,7 +119,7 @@ function onDrop(evt, page, item) { var el = evt.item; - + var newIndex = evt.newIndex; var itemId = el.getAttribute('data-playlistitemid'); @@ -134,6 +134,7 @@ }).then(function () { + el.setAttribute('data-index', newIndex); Dashboard.hideLoadingMsg(); }, function () {