mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-21 20:39:27 +01:00
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:
@@ -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({
|
||||
|
||||
@@ -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...'
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user