Fixed minore issues

- Fixed getting cover art that's too small
- fixed reloading images after adding artist
- added init function on search results
This commit is contained in:
Elmar Kouwenhoven
2012-05-11 22:44:58 +02:00
parent 74e061c96b
commit 25d1b2f7ed
3 changed files with 9 additions and 3 deletions

View File

@@ -55,7 +55,7 @@
<script src="js/libs/jquery.dataTables.min.js"></script>
<script>
$(document).ready(function(){
function initThisPage() {
$("table#searchresults_table tr td#artistname").each(function(){
var artist = $(this).children('a').attr('title');
var image = $(this).parent().find("td#albumart img");
@@ -71,6 +71,7 @@
});
$('#searchresults_table').dataTable(
{
"bDestroy": true,
"aoColumnDefs": [
{ 'bSortable': false, 'aTargets': [ 0,3 ] }
],
@@ -86,6 +87,9 @@
"aaSorting": []
});
resetFilters("album");
}
$(document).ready(function(){
initThisPage();
});
$(window).load(function(){
initFancybox();