mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-18 22:02:42 +09:00
folder support
This commit is contained in:
17
public/js/app.js
vendored
17
public/js/app.js
vendored
@@ -76,13 +76,20 @@ $.when( $.ready ).then(function() {
|
||||
});
|
||||
$("#sortable").sortable("disable");
|
||||
|
||||
$(".item-container").droppable({
|
||||
$(".droppable").droppable({
|
||||
tolerance: "pointer",
|
||||
greedy: true,
|
||||
drop: function( event, ui ) {
|
||||
alert($( this ).data('id'));
|
||||
alert($( ui.draggable ).data('id'));
|
||||
$( this )
|
||||
.addClass( "ui-state-highlight" )
|
||||
var tag = $( this ).data('id');
|
||||
var item = $( ui.draggable ).data('id');
|
||||
|
||||
$.get('tag/add/'+tag+'/'+item, function(data) {
|
||||
if(data == 1) {
|
||||
$( ui.draggable ).remove();
|
||||
} else {
|
||||
//alert('not added');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user