SAAS-712: UI Improvements

This commit is contained in:
drigato 2015-04-09 14:22:50 -04:00
parent 84231f811a
commit f238faa937
6 changed files with 39 additions and 35 deletions

View file

@ -9,10 +9,7 @@ function updateEmbedSrcParams()
$embedCodeParams += "stream=auto";
}
var playerTitle = getPlayerTitle();
if (playerTitle !== null) {
$embedCodeParams += "&title="+playerTitle;
}
$embedCodeParams += "&title="+getPlayerTitle();
$embedCodeParams += "\"";
@ -34,11 +31,7 @@ function getStreamMode() {
}
function getPlayerTitle() {
if ($("#player_display_title").prop("checked")) {
return $("input[name=player_title]").val();
} else {
return null;
}
return $("input[name=player_title]").val();
}
$(document).ready(function() {