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:
parent
0750007cfe
commit
f5e952006a
1 changed files with 3 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
||||||
define(['jQuery'], function ($) {
|
define(['jQuery'], function ($) {
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
var form = this;
|
var form = this;
|
||||||
var localAddress = form.querySelector('#txtLocalAddress').value;
|
var localAddress = form.querySelector('#txtLocalAddress').value;
|
||||||
var enableUpnp = $('#chkEnableUpnp', form).checked();
|
var enableUpnp = $('#chkEnableUpnp', form).checked();
|
||||||
|
|
||||||
confirmSelections(localAddress, enableUpnp, function () {
|
confirmSelections(localAddress, enableUpnp, function () {
|
||||||
|
|
||||||
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
ApiClient.getServerConfiguration().then(function (config) {
|
ApiClient.getServerConfiguration().then(function (config) {
|
||||||
|
|
||||||
config.HttpServerPortNumber = $('#txtPortNumber', form).val();
|
config.HttpServerPortNumber = $('#txtPortNumber', form).val();
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
function confirmSelections(localAddress, enableUpnp, callback) {
|
function confirmSelections(localAddress, enableUpnp, callback) {
|
||||||
|
|
||||||
if (localAddress) {
|
if (localAddress || !enableUpnp) {
|
||||||
|
|
||||||
require(['alert'], function (alert) {
|
require(['alert'], function (alert) {
|
||||||
alert({
|
alert({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue