mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-17 12:10:49 +01:00
Add an option under "Save" to download story (as JSON)
This commit is contained in:
parent
b5d9aaf785
commit
25bb6486eb
@ -838,6 +838,7 @@ $(document).ready(function(){
|
|||||||
button_save = $('#btn_save');
|
button_save = $('#btn_save');
|
||||||
button_saveas = $('#btn_saveas');
|
button_saveas = $('#btn_saveas');
|
||||||
button_savetofile = $('#btn_savetofile');
|
button_savetofile = $('#btn_savetofile');
|
||||||
|
button_download = $('#btn_download');
|
||||||
button_load = $('#btn_load');
|
button_load = $('#btn_load');
|
||||||
button_loadfrfile = $('#btn_loadfromfile');
|
button_loadfrfile = $('#btn_loadfromfile');
|
||||||
button_import = $("#btn_import");
|
button_import = $("#btn_import");
|
||||||
@ -1267,6 +1268,10 @@ $(document).ready(function(){
|
|||||||
saveas_accept.on("click", function(ev) {
|
saveas_accept.on("click", function(ev) {
|
||||||
sendSaveAsRequest();
|
sendSaveAsRequest();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
button_download.on("click", function(ev) {
|
||||||
|
window.open("/download", "_blank");
|
||||||
|
});
|
||||||
|
|
||||||
button_load.on("click", function(ev) {
|
button_load.on("click", function(ev) {
|
||||||
socket.send({'cmd': 'loadlistrequest', 'data': ''});
|
socket.send({'cmd': 'loadlistrequest', 'data': ''});
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
<a class="dropdown-item" href="#" id="btn_save">Save</a>
|
<a class="dropdown-item" href="#" id="btn_save">Save</a>
|
||||||
<a class="dropdown-item" href="#" id="btn_saveas">Save As</a>
|
<a class="dropdown-item" href="#" id="btn_saveas">Save As</a>
|
||||||
<a class="dropdown-item" href="#" id="btn_savetofile">Save To File...</a>
|
<a class="dropdown-item" href="#" id="btn_savetofile">Save To File...</a>
|
||||||
|
<a class="dropdown-item" href="#" id="btn_download">Download Current Story</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user