1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #1582 - NowPlaying: Inconclusive button states

This commit is contained in:
Luke Pulverenti 2016-06-07 15:48:40 -04:00
parent 0750007cfe
commit f5e952006a

View file

@ -1,14 +1,14 @@
define(['jQuery'], function ($) {
function onSubmit() {
Dashboard.showLoadingMsg();
var form = this;
var localAddress = form.querySelector('#txtLocalAddress').value;
var enableUpnp = $('#chkEnableUpnp', form).checked();
confirmSelections(localAddress, enableUpnp, function () {
Dashboard.showLoadingMsg();
ApiClient.getServerConfiguration().then(function (config) {
config.HttpServerPortNumber = $('#txtPortNumber', form).val();
@ -32,7 +32,7 @@
function confirmSelections(localAddress, enableUpnp, callback) {
if (localAddress) {
if (localAddress || !enableUpnp) {
require(['alert'], function (alert) {
alert({