From df64f7fd91e71b610e1019a059cdbfdc83647f3d Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 15 Aug 2012 16:13:37 +0530 Subject: [PATCH] Moved document.ready functions to initThisPage, which will recreate the track table when a new album version is selected (fixes issue with css not loading properly --- data/interfaces/default/album.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/data/interfaces/default/album.html b/data/interfaces/default/album.html index 3a07bf06..20a8f659 100644 --- a/data/interfaces/default/album.html +++ b/data/interfaces/default/album.html @@ -168,7 +168,7 @@ getInfo(elem,id,'album'); } - $(document).ready(function() { + function initThisPage() { $('#album_chooser').click(function() { $('#dialog').dialog(); return false; @@ -187,8 +187,13 @@ "aaSorting": [], "bFilter": false, "bInfo": false, - "bPaginate": false - }); + "bPaginate": false, + "bDestroy": true + }); + }; + + $(document).ready(function() { + initThisPage(); });