folder support

This commit is contained in:
KodeStar
2018-02-17 00:13:38 +00:00
parent 4e37176436
commit 98b831bc22
32 changed files with 5533 additions and 37 deletions

17
public/js/app.js vendored
View File

@@ -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');
}
});
}
});