Disable most top menu actions when disconnected

This commit is contained in:
Gnome Ann 2021-12-30 16:33:28 -05:00
parent 4d27f1e09d
commit 44eaab8515
3 changed files with 15 additions and 7 deletions

View File

@ -2330,7 +2330,9 @@ $(document).ready(function(){
});
button_impaidg.on("click", function(ev) {
showAidgPopup();
if(connected) {
showAidgPopup();
}
});
aidg_close.on("click", function(ev) {
@ -2346,7 +2348,9 @@ $(document).ready(function(){
});
button_saveas.on("click", function(ev) {
showSaveAsPopup();
if(connected) {
showSaveAsPopup();
}
});
saveas_close.on("click", function(ev) {
@ -2412,7 +2416,9 @@ $(document).ready(function(){
});
button_newgame.on("click", function(ev) {
showNewStoryPopup();
if(connected) {
showNewStoryPopup();
}
});
ns_accept.on("click", function(ev) {
@ -2445,7 +2451,9 @@ $(document).ready(function(){
});
button_rndgame.on("click", function(ev) {
showRandomStoryPopup();
if(connected) {
showRandomStoryPopup();
}
});
rs_accept.on("click", function(ev) {

View File

@ -1179,7 +1179,7 @@ body.connected .navbar-togger:hover, .navbar-togger.always-available:hover {
background-color: #757575;
}
body .popuptitlebar {
body.connected .popuptitlebar {
background-color: #337ab7;
}

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="static/bootstrap.min.css">
<link rel="stylesheet" href="static/bootstrap-toggle.min.css">
<link rel="stylesheet" href="static/open-iconic-bootstrap.min.css">
<link rel="stylesheet" href="static/custom.css?ver=1.16.4l">
<link rel="stylesheet" href="static/custom.css?ver=1.16.4m">
<script src="static/jquery-3.6.0.min.js"></script>
<script src="static/jquery-ui.sortable.min.js"></script>
@ -17,7 +17,7 @@
<script src="static/bootstrap.min.js"></script>
<script src="static/bootstrap-toggle.min.js"></script>
<script src="static/rangy-core.min.js"></script>
<script src="static/application.js?ver=1.16.4q"></script>
<script src="static/application.js?ver=1.16.4r"></script>
</head>
<body>
<input type="file" id="remote-save-select" accept="application/json" style="display:none">