SAAS-712: UI Improvements

This commit is contained in:
drigato 2015-04-08 14:01:57 -04:00
parent f6d5b34cca
commit 23bf866211
13 changed files with 81 additions and 50 deletions

View file

@ -29,12 +29,16 @@ function getStreamMode() {
$(document).ready(function() {
$("#player_stream_url-element").hide();
$("#player_stream_mode-element").change(function() {
var $streamMode = getStreamMode();
if ($streamMode == "auto") {
$("#player_stream_url-element input[type='radio']").attr("disabled", "disabled");
$("#player_stream_url-element").hide();
} else if ($streamMode == "manual") {
$("#player_stream_url-element input[type='radio']").removeAttr("disabled");
$("#player_stream_url-element").show();
$("input[name=player_stream_url]").each(function(i, obj) {
if ($(this).parent().text().toLowerCase().indexOf("opus") >= 0) {