fix playlist index after drag and drop
This commit is contained in:
parent
a21e807db5
commit
07fa31c5a6
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,7 @@
|
||||||
function onDrop(evt, page, item) {
|
function onDrop(evt, page, item) {
|
||||||
|
|
||||||
var el = evt.item;
|
var el = evt.item;
|
||||||
|
|
||||||
var newIndex = evt.newIndex;
|
var newIndex = evt.newIndex;
|
||||||
|
|
||||||
var itemId = el.getAttribute('data-playlistitemid');
|
var itemId = el.getAttribute('data-playlistitemid');
|
||||||
|
@ -134,6 +134,7 @@
|
||||||
|
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
|
||||||
|
el.setAttribute('data-index', newIndex);
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
|
|
||||||
}, function () {
|
}, function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue