Fix getting pms_url when multiple connections published

* Fixes bug grabbing the wrong pms_url when multiple local/remote
connections are published to plex.tv
* This tries to find the connection with the matching address first,
otherwise grabs the first valid local/remote connection (prior
behaviour)
This commit is contained in:
JonnyWong16 2016-04-12 22:52:08 -07:00
parent 6a72923182
commit 2f5f0ba1e1
2 changed files with 23 additions and 23 deletions

View file

@ -39,7 +39,6 @@ function showMsg(msg,loader,timeout,ms,error) {
}
if (error) {
feedback.css("background-color", "rgba(255,0,0,0.5)");
console.log('is error');
}
$(feedback).html(message);
feedback.fadeIn();
@ -48,7 +47,8 @@ function showMsg(msg,loader,timeout,ms,error) {
setTimeout(function(){
message.fadeOut(function(){
$(this).remove();
feedback.fadeOut();
feedback.fadeOut();
feedback.css("background-color", "");
});
},ms);
}