- yWeb/Y_Tools_Screenshot_GraphLCD: change filename

Conflicts:
	data/y-web/Y_Tools_Glcd_Screenshot.yhtm
This commit is contained in:
vanhofen
2023-02-09 21:23:34 +01:00
committed by Thilo Graf
parent 81422fbd15
commit 8e5cfd84d3
2 changed files with 4 additions and 9 deletions

View File

@@ -528,8 +528,3 @@ function saveTextAsFile(content, filename, filetype)
} }
downloadLink.click(); downloadLink.click();
} }
function glcdscreenshot(_filename)
{
return loadSyncURL("/control/glcdscreenshot?name="+_filename);
}

View File

@@ -13,8 +13,8 @@ function do_snapshot() {
$('buttons').hide(); $('buttons').hide();
$('status').show(); $('status').show();
var filename = "glcdscreenshot"; var filename = "screenshot-glcd";
if (id("filename").value != "") { if (id('filename').value != "") {
filename = id("filename").value; filename = id("filename").value;
} }
@@ -24,7 +24,7 @@ function do_snapshot() {
} }
function do_showshot(_filename) { function do_showshot(_filename) {
if (_filename == "") if (_filename == "")
_filename = "glcdscreenshot"; _filename = "screenshot-glcd";
$('status').hide(); $('status').hide();
$('buttons').show(); $('buttons').show();
@@ -60,7 +60,7 @@ function do_reload(){
</div> </div>
<div class="right"> <div class="right">
<form onsubmit="do_snapshot(); return false"> <form onsubmit="do_snapshot(); return false">
{=L:filename=}: <input type="text" value="glcdscreenshot" id="filename" size="10" /> {=L:filename=}: <input type="text" value="screenshot-glcd" id="filename" size="12" />
</form> </form>
</div> </div>
<div class="clear"></div> <div class="clear"></div>