From a72bd4cb7ce7e64766545207db9df4c0551e58ea Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sat, 4 Jul 2015 17:26:47 -0700 Subject: [PATCH] Fixed up the appearance of the config page (was kind of broken on Firefox) --- data/interfaces/default/config.html | 254 +++++++++++++++----------- data/interfaces/default/css/style.css | 10 + 2 files changed, 158 insertions(+), 106 deletions(-) diff --git a/data/interfaces/default/config.html b/data/interfaces/default/config.html index f380c7d6..0e7f55a0 100644 --- a/data/interfaces/default/config.html +++ b/data/interfaces/default/config.html @@ -659,50 +659,54 @@
+ Quality
- Quality -
+
+
+
+
+
-
- - Reject if target size is not in bitrate range: - to\ - kbps - -
+
+
+ + Reject if target size is not in bitrate range: + to\ + kbps + +
+
@@ -735,69 +739,79 @@
Post-Processing -
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
-
- -
-
- -
-
- -
-
- - +
+
+
+
+
-
-
- as .jpg -
- Use $Artist/$artist, $Album/$album, $Year/$year +
+
+
+ as .jpg
+ Use $Artist/$artist, $Album/$album, $Year/$year +
+
+
+
-
- %for x in ['cbr', 'vbr']: <% if config['encodervbrcbr'] == x: @@ -1277,35 +1291,38 @@ %endfor
-
- - +
+
+ + +
-
- - +
+
+ + +
- <% if config["samplingfrequency"] == 44100: freq44100 = 'selected="selected"' @@ -1347,7 +1364,7 @@
Miscellaneous -
+
-
- +
+
-
- +
+
-
- +
+
-
- - +
+
-
+
+
+ +
@@ -1439,7 +1461,7 @@
- +
@@ -1498,7 +1520,7 @@
-
+
Get an Account!
@@ -1525,6 +1547,10 @@ $("#lameffmpegproperties").slideUp(); $("#xldproperties").slideUp(); }; + hideEncodingOptionDivs = function () { + $("#vbr_options").slideUp(); + $("#cbr_options").slideUp(); + }; handleNewServerSelection = function () { hideServerDivs(); @@ -1558,6 +1584,19 @@ } }; + handleNewEncodingOptionSelection = function () { + hideEncodingOptionDivs(); + + switch ($(this).val()) { + case 'vbr': + $("#vbr_options").slideDown(); + break; + case 'cbr': + $("#cbr_options").slideDown(); + break; + } + }; + function openExtrasDialog() { $("#dialog").dialog({ close: function(){ var elem = ''; @@ -2120,6 +2159,9 @@ $("#encoder").change(handleNewEncoderSelection); handleNewEncoderSelection.apply($("#encoder")); + $("#encodervbrcbr").change(handleNewEncodingOptionSelection); + handleNewEncodingOptionSelection.apply($("#encodervbrcbr")); + var deletedNewznabs = 0; $(".remove").click(function() { diff --git a/data/interfaces/default/css/style.css b/data/interfaces/default/css/style.css index e4922d60..7786a9ba 100644 --- a/data/interfaces/default/css/style.css +++ b/data/interfaces/default/css/style.css @@ -408,6 +408,9 @@ form .checkbox small { form .indent input { margin-left: 15px; } +form .suboptions { + margin-left: 15px; +} ul, ol { margin-left: 2em; @@ -1420,6 +1423,13 @@ div#artistheader h2 a { line-height: 10px; height: 10px; } +.nopad { + margin-bottom: 0px !important; + margin-top: 0px !important; + padding-top: 0px !important; + padding-bottom: 0px !important; + padding: 0px 0px !important; +} #album_table th#albumname, #upcoming_table th#artistname, #wanted_table th#artistname {