1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

#136 UI started, still in development.

favicon updated to ampache-doped icon.
This commit is contained in:
SUTJael 2014-03-23 20:57:57 +01:00
parent 59305b9a6e
commit 01691feded
11 changed files with 197 additions and 33 deletions

View file

@ -247,10 +247,17 @@ function check_inline_song_edit(type, song) {
/*********************/
$(document).ready(function () {
$('#sortableplaylist').sortable({
axis: 'y',
delay: 200
});
var eles = $("tbody[id^='sortableplaylist_']");
if (eles != null) {
var len = eles.length;
for (var i = 0; i < len; i++) {
$('#' + eles[i].id).sortable({
axis: 'y',
delay: 200
});
}
}
});
function submitNewItemsOrder(itemId, tableid, rowPrefix, updateUrl, refreshAction) {
@ -278,8 +285,8 @@ function submitNewItemsOrder(itemId, tableid, rowPrefix, updateUrl, refreshActio
success : function(resp){
var url = jsAjaxServer + '/refresh_reordered.server.php?action=' + parent.refreshAction + '&id=' + parent.itemId;
// Reload only table
$('#reordered_list').load(url, function() {
$('#sortableplaylist').sortable({
$('#reordered_list_' + parent.itemId).load(url, function() {
$('#sortableplaylist_' + parent.itemId).sortable({
axis: 'y',
delay: 200
});