public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] wlanap.cgi: Cosmetic fix - replace 'Save' image with 'Save' button
@ 2020-12-27 15:48 Matthias Fischer
  2020-12-28 13:20 ` Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Fischer @ 2020-12-27 15:48 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

The 'WLanAP'-GUI is the only page where settings are saved by clicking
an unlabeled floppy disk image.

Why? I don't know - this image is otherwise only used by the 'Backup'-GUI
to save settings.

Now replaced by the standard 'Save' button.

Signed-off-by: Matthias Fischer <matthias.fischer(a)ipfire.org>
---
 html/cgi-bin/wlanap.cgi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi
index fd7e9a679..cfdcac576 100644
--- a/html/cgi-bin/wlanap.cgi
+++ b/html/cgi-bin/wlanap.cgi
@@ -516,8 +516,7 @@ print <<END
 <table width='80%' cellspacing='0'>
 <tr><td align='center'>
 <form method='post' action='$ENV{'SCRIPT_NAME'}'>
-       <input type='hidden' name='ACTION' value=$Lang::tr{'save'} />
-       <input type='image' alt='$Lang::tr{'save'}' title='$Lang::tr{'save'}' src='/images/media-floppy.png' /></form></td>
+       <input type='submit' name='ACTION' value=$Lang::tr{'save'} /></form></td>
 </tr>
 </table>
 END
-- 
2.18.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] wlanap.cgi: Cosmetic fix - replace 'Save' image with 'Save' button
  2020-12-27 15:48 [PATCH] wlanap.cgi: Cosmetic fix - replace 'Save' image with 'Save' button Matthias Fischer
@ 2020-12-28 13:20 ` Michael Tremer
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tremer @ 2020-12-28 13:20 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]

Hello,

> On 27 Dec 2020, at 16:48, Matthias Fischer <matthias.fischer(a)ipfire.org> wrote:
> 
> The 'WLanAP'-GUI is the only page where settings are saved by clicking
> an unlabeled floppy disk image.
> 
> Why? I don't know - this image is otherwise only used by the 'Backup'-GUI
> to save settings.
> 
> Now replaced by the standard 'Save' button.
> 
> Signed-off-by: Matthias Fischer <matthias.fischer(a)ipfire.org>
> ---
> html/cgi-bin/wlanap.cgi | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi
> index fd7e9a679..cfdcac576 100644
> --- a/html/cgi-bin/wlanap.cgi
> +++ b/html/cgi-bin/wlanap.cgi
> @@ -516,8 +516,7 @@ print <<END
> <table width='80%' cellspacing='0'>
> <tr><td align='center'>
> <form method='post' action='$ENV{'SCRIPT_NAME'}'>
> -       <input type='hidden' name='ACTION' value=$Lang::tr{'save'} />
> -       <input type='image' alt='$Lang::tr{'save'}' title='$Lang::tr{'save'}' src='/images/media-floppy.png' /></form></td>
> +       <input type='submit' name='ACTION' value=$Lang::tr{'save'} /></form></td>

This is invalid syntax because “value” is not quoted. Some HTML parsers do not care, but this would break if “save” would be longer than one word in one language.

-Michael

> </tr>
> </table>
> END
> -- 
> 2.18.0
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-28 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-27 15:48 [PATCH] wlanap.cgi: Cosmetic fix - replace 'Save' image with 'Save' button Matthias Fischer
2020-12-28 13:20 ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox