Skip to content

Commit

Permalink
Fix #1051 where disabling save session button (in projects where ther…
Browse files Browse the repository at this point in the history
…e was no save button) broke the project
  • Loading branch information
FayCross committed Sep 23, 2021
1 parent 058ef97 commit d3221be
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -1483,7 +1483,7 @@ function x_continueSetUp1() {
}
else
{
$x_saveSessionBtn.hide();
$x_saveSessionBtn.remove();
}
if (x_params.kblanguage != undefined) {
if (typeof charpadstr != 'undefined')
Expand Down Expand Up @@ -2662,7 +2662,9 @@ function x_setUpPage() {
$x_nextBtn.button("disable");
}
if (x_currentPageXML.getAttribute("save") == "false") {
$x_saveSessionBtn.button("disable");
if ($("#x_saveSessionBtn").length > 0) {
$x_saveSessionBtn.button("disable");
}
}
} else if (!x_isMenu() && x_currentPageXML.getAttribute("navSetting") != undefined) {
// fallback to old way of doing things (navSetting - this should still work for projects that contain it but will be overridden by the navBtns group way of doing it where each button can be turned off individually)
Expand Down

0 comments on commit d3221be

Please sign in to comment.