From d5de7f9b55e06dcd8a15fafe65584438d56f7897 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Tue, 27 Jan 2015 23:13:53 +0100 Subject: [PATCH] Limit dialog windows for 'choose specific downloads'. Fixes #2096 --- data/interfaces/default/album.html | 75 ++++++++++++++++-------------- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/data/interfaces/default/album.html b/data/interfaces/default/album.html index 3a04ee36..ad1eab5c 100644 --- a/data/interfaces/default/album.html +++ b/data/interfaces/default/album.html @@ -48,37 +48,37 @@ Edit Search Term - + Choose Specific Download - + @@ -197,7 +197,7 @@ var elem = $("#albumInfo"); getInfo(elem,id,'album'); } - + function initThisPage() { $('#album_chooser').click(function() { $('#dialog').dialog({ width: "500px" }); @@ -214,7 +214,7 @@ setTimeout(function(){ initFancybox(); },1000); - + $('#track_table').dataTable({ "aaSorting": [], "bFilter": false, @@ -236,17 +236,20 @@ $('#downloads_table').dataTable({ "aoColumns": [ null, - { "sType": "title-numeric"}, + {"sType": "title-numeric"}, null, null, - null + {"sType": "string"} ], - "aaSorting": [], + "aaSorting": [[ 4, 'desc']], "bFilter": false, "bInfo": false, "bPaginate": false, }); - $("#choose_specific_download_dialog").dialog({ width: "1000px" }); + $("#choose_specific_download_dialog").dialog({ + width: "80%", + height: 500 + }); return false; }); }