Removed old jquery syntax

This commit is contained in:
denise 2013-09-06 11:08:01 -04:00
parent 5a85fce89d
commit 0b66f62045
1 changed files with 7 additions and 7 deletions

View File

@ -13,11 +13,11 @@ function showErrorSections() {
} }
function rebuildStreamURL(ele){ function rebuildStreamURL(ele){
var div = ele.closest("div") var div = ele.closest("div")
host = div.find("input:[id$=-host]").val() host = div.find("input[id$=-host]").val()
port = div.find("input:[id$=-port]").val() port = div.find("input[id$=-port]").val()
mount = div.find("input:[id$=-mount]").val() mount = div.find("input[id$=-mount]").val()
streamurl = "" streamurl = ""
if(div.find("select:[id$=-output]").val()=="icecast"){ if(div.find("select[id$=-output]").val()=="icecast"){
streamurl = "http://"+host streamurl = "http://"+host
if($.trim(port) != ""){ if($.trim(port) != ""){
streamurl += ":"+port streamurl += ":"+port
@ -180,15 +180,15 @@ function setupEventListeners() {
rebuildStreamURL($(this)); rebuildStreamURL($(this));
}) })
$("input:[id$=-host], input:[id$=-port], input:[id$=-mount]").keyup(function(){ $("input[id$=-host], input[id$=-port], input[id$=-mount]").keyup(function(){
rebuildStreamURL($(this)); rebuildStreamURL($(this));
}); });
$("input:[id$=-port]").keypress(function(e){ $("input[id$=-port]").keypress(function(e){
validate($(this),e); validate($(this),e);
}); });
$("select:[id$=-output]").change(function(){ $("select[id$=-output]").change(function(){
rebuildStreamURL($(this)); rebuildStreamURL($(this));
}); });