From 57a1c99176b2af19dfba330176f4cf1c735c7f9b Mon Sep 17 00:00:00 2001 From: JackDandy Date: Tue, 12 Oct 2021 17:03:35 +0100 Subject: [PATCH] Fix edit-show alert "set master" malfunction on shows with no master to edit. --- CHANGES.md | 7 ++++++- gui/slick/js/editShow.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a79c510..0aa4ae0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.25.10 (2021-10-12 11:55:00 UTC) +### 0.25.11 (2021-10-12 17:00:00 UTC) + +* Fix edit-show alert "set master" malfunction on shows with no master to edit + + +### 0.25.10 (2021-10-12 11:55:00 UTC) * Update certifi 2021.05.30 to 2021.10.08 diff --git a/gui/slick/js/editShow.js b/gui/slick/js/editShow.js index 67de108..c7f775d 100644 --- a/gui/slick/js/editShow.js +++ b/gui/slick/js/editShow.js @@ -54,7 +54,7 @@ $(document).ready(function () { } function okExit(action){ - return ('the-master' === $('input[name="set-master"]:checked').attr('id') + return ('the-master' === ($('input[name="set-master"]:checked').attr('id') || 'the-master') || confirm('A "set master" change is pending\n\n' + action + ' without saving changes?')) }