From 8e2ee60158c550ac07a7e4bebef8a6d6a9590e9a Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 9 Feb 2023 21:23:34 +0100 Subject: [PATCH] yWeb/Y_Tools_Screenshot_GraphLCD: change filename Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/2f45b396ccee2503f5c7628c6e707ceb2270c686 Author: vanhofen Date: 2023-02-09 (Thu, 09 Feb 2023) Origin message was: ------------------ - yWeb/Y_Tools_Screenshot_GraphLCD: change filename --- data/y-web/Y_Baselib.js | 5 ----- data/y-web/Y_Tools_Screenshot_GraphLCD.yhtm | 7 +++---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/data/y-web/Y_Baselib.js b/data/y-web/Y_Baselib.js index e974904a8..4adddb64e 100644 --- a/data/y-web/Y_Baselib.js +++ b/data/y-web/Y_Baselib.js @@ -528,8 +528,3 @@ function saveTextAsFile(content, filename, filetype) } downloadLink.click(); } - -function glcdscreenshot(_filename) -{ - return loadSyncURL("/control/glcdscreenshot?name="+_filename); -} diff --git a/data/y-web/Y_Tools_Screenshot_GraphLCD.yhtm b/data/y-web/Y_Tools_Screenshot_GraphLCD.yhtm index b29317b8d..b41bb34bf 100644 --- a/data/y-web/Y_Tools_Screenshot_GraphLCD.yhtm +++ b/data/y-web/Y_Tools_Screenshot_GraphLCD.yhtm @@ -12,8 +12,7 @@ function do_snapshot() { jQuery('#buttons').hide(); jQuery('#status').show(); - // FIXME: any other filename then "glcdscreenshot" seeems broken - var filename = "glcdscreenshot"; + var filename = "screenshot-glcd"; if (id('filename').value != "") { filename = id("filename").value; } @@ -24,7 +23,7 @@ function do_snapshot() { } function do_showshot(_filename) { if (_filename == "") - _filename = "glcdscreenshot"; + _filename = "screenshot-glcd"; jQuery('#status').hide(); jQuery('#buttons').show(); @@ -60,7 +59,7 @@ function do_reload(){
- {=L:filename=}: + {=L:filename=}: