Commit c17b3643 by Dányi Bence

webui: store toplist ajax display

parent 0be16a8c
......@@ -553,7 +553,32 @@ $(function() {
}
},
})
});
self.loadTopList = throttle(function(){
self.currentPath('/');
$.ajax({
type: 'POST',
url: '/ajax/store/top/',
dataType: 'json',
success: function(data){
$('.file-list .real').css({
left: 0,
position: 'relative'
}).animate({
left: '-100%'
}, 500).promise().done(function() {
loadFolderDone(data);
$('.file-list .real').css({
left: '-300%',
position: 'relative'
}).animate({
left: 0
}, 500);
});
}
})
});
/**
* After loadFolder completes, this function updates the UI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment