mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Also allow downloading stories as plaintext
This commit is contained in:
@ -839,6 +839,7 @@ $(document).ready(function(){
|
||||
button_saveas = $('#btn_saveas');
|
||||
button_savetofile = $('#btn_savetofile');
|
||||
button_download = $('#btn_download');
|
||||
button_downloadtxt= $('#btn_downloadtxt');
|
||||
button_load = $('#btn_load');
|
||||
button_loadfrfile = $('#btn_loadfromfile');
|
||||
button_import = $("#btn_import");
|
||||
@ -1272,6 +1273,10 @@ $(document).ready(function(){
|
||||
button_download.on("click", function(ev) {
|
||||
window.open("/download", "_blank");
|
||||
});
|
||||
|
||||
button_downloadtxt.on("click", function(ev) {
|
||||
window.open("/download?format=plaintext", "_blank");
|
||||
});
|
||||
|
||||
button_load.on("click", function(ev) {
|
||||
socket.send({'cmd': 'loadlistrequest', 'data': ''});
|
||||
|
Reference in New Issue
Block a user