mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 17:59:28 +01:00
Getting thumbs now works, its still shit slow and ends up blocking page switching because cherrypy/chrome don't want to deal with that many ajax requeuts at once
This commit is contained in:
@@ -27,11 +27,10 @@
|
||||
<script src="js/libs/jquery.dataTables.min.js"></script>
|
||||
<script>
|
||||
function getArtistArt() {
|
||||
console.log("getting artist art")
|
||||
$("table#artist_table tr td#albumart #artistImg").each(function(){
|
||||
console.log("Getting image")
|
||||
var id = $(this).children('img').attr('id');
|
||||
var image = $(this).children('img');
|
||||
var nodes = document.getElementById("artist_table").getElementsByTagName("img");
|
||||
$("#artist_table img").each(function(){
|
||||
var id = $(this).attr('id');
|
||||
var image = $(this);
|
||||
if ( !image.hasClass('done') ) {
|
||||
image.addClass('done');
|
||||
getThumb(image,id,'artist');
|
||||
@@ -39,7 +38,6 @@
|
||||
});
|
||||
}
|
||||
function initThisPage() {
|
||||
getArtistArt();
|
||||
$('#artist_table').dataTable({
|
||||
"bDestroy": true,
|
||||
"aoColumnDefs": [
|
||||
@@ -71,12 +69,15 @@
|
||||
},
|
||||
"fnServerData": function ( sSource, aoData, fnCallback ) {
|
||||
/* Add some extra data to the sender */
|
||||
$.getJSON( sSource, aoData, function (json) {
|
||||
fnCallback(json)
|
||||
} );
|
||||
}
|
||||
});
|
||||
getArtistArt();
|
||||
$.getJSON( sSource, aoData, function (json) { fnCallback(json) } )
|
||||
},
|
||||
"fnInitComplete": function(oSettings, json)
|
||||
{
|
||||
getArtistArt();
|
||||
}});
|
||||
|
||||
|
||||
|
||||
resetFilters("artist or album");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user