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

@@ -129,7 +129,7 @@
<script src="js/libs/jquery.dataTables.min.js"></script>
<script>
$(document).ready(function() {
getAlbumInfo("${album['ArtistName']}","${album['AlbumTitle']}","#albumheader .albumArt",1);
getAlbumInfo("${album['ArtistName']}","${album['AlbumTitle']}","#albumheader .albumArt",3);
initActions();
$('#track_table').dataTable({

View File

@@ -362,7 +362,9 @@ function doAjaxCall(url,elem,reload,form) {
feedback.removeClass('success');
});
if ( reload == true ) refreshSubmenu(url);
if ( reload == "table") console.log('refresh'); refreshTable();
if ( reload == "table") {
console.log('refresh'); refreshTable();
}
if ( reload == "tabs") refreshTab();
if ( form ) {
// Change the option to 'choose...'

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();