mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-17 04:00:44 +01:00
Disable most top menu actions when disconnected
This commit is contained in:
parent
4d27f1e09d
commit
44eaab8515
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user