mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
98_SVG.pm: add error-message for readonly-returns (Forum #126561)
git-svn-id: https://svn.fhem.de/fhem/trunk@25781 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2e44e7ed43
commit
82cc49142d
@ -531,8 +531,8 @@ SVG_PEdit($$$$)
|
||||
|
||||
$ret .= "<tr class=\"".(($r++&1)?"odd":"even")."\"><td colspan=\"3\">";
|
||||
$ret .= (exists($conf{readonly}) ?
|
||||
'<span>.gplot file is "set readonly"</span>' :
|
||||
FW_submit("submit", "Write .gplot file")." ").
|
||||
FW_submit("readonly", '.gplot file is set readonly'):
|
||||
FW_submit("submit", "Write .gplot file"))." ".
|
||||
FW_submit("showFileLogData", "Show preprocessed input").
|
||||
"</td></tr>";
|
||||
|
||||
@ -664,6 +664,13 @@ SVG_WriteGplot($)
|
||||
FW_digestCgi($arg);
|
||||
|
||||
return if($FW_hiddenroom{detail});
|
||||
if($FW_webArgs{readonly}) {
|
||||
$FW_RET .=
|
||||
'<div id="errmsg">'.
|
||||
"gplot file marked as readonly: won't write!".
|
||||
'</div>';
|
||||
return 0;
|
||||
}
|
||||
return SVG_showData() if($FW_webArgs{showFileLogData});
|
||||
|
||||
if(!defined($FW_webArgs{par_0_0})) {
|
||||
|
Loading…
Reference in New Issue
Block a user