From 32847f80f055e5c26188b3791b2c61976930b307 Mon Sep 17 00:00:00 2001 From: cat Date: Fri, 31 Jan 2014 11:22:31 +0100 Subject: [PATCH] LSP - bugfixes - hide audio/video options when the encoder is set to current and force 44100 samplerate for mp3 --- lsp/main.js | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/lsp/main.js b/lsp/main.js index 2cd68250..8ebebe90 100755 --- a/lsp/main.js +++ b/lsp/main.js @@ -774,10 +774,26 @@ function conversionSelectInput(theFiles) { ); } }); - var $videocodec = $('').attr('id',objpath+'-video-codec').addClass('isSetting').change(function(){ + if ($(this).val() == '') { + $('#video-settings-container').find('input,select').not($(this)).val('').removeClass('isSetting').parent().hide(); + } + else { + $('#video-settings-container').find('input,select').not($(this)).addClass('isSetting').parent().show(); + } + }); var $audiocodec = $('