From f141cf75a82017f9ff73fb1056289ec678cb2b2b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 30 Mar 2013 12:40:06 +0000 Subject: [PATCH] save button replaced with the menu entry "Save config" git-svn-id: https://svn.fhem.de/fhem/trunk@2999 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/01_FHEMWEB.pm | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index d232a669f..8f2c3888b 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,6 +1,7 @@ # Add changes at the top of the list. - SVN + - feature: FHEMWEB: save button replaced with the menu entry "Save config" - feature: notify supports $NAME/$EVENT/$EVTPART0/etc. @/% is deprecated. - feature: 93_DbLog extended to give more functions for the charting frontend. This includes new queries for raw table data and also statistics, diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 9e6480501..a32285b28 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -1,6 +1,8 @@ ############################################## # $Id$ package main; +# BUG: smallscreen webapp icon (works for touchpad?) +# BUG: iPhone5 webapp black margin use strict; use warnings; @@ -508,14 +510,16 @@ FW_answerCall($) # Enable WebApps if($FW_tp || $FW_ss) { - FW_pO ''; - FW_pO ''; + my $icon = $FW_ME."/images/default/fhemicon.png"; if($FW_ss) { - FW_pO ''; + FW_pO ''; } elsif($FW_tp) { FW_pO ''; } + FW_pO ''; + FW_pO ''; + FW_pO ''; } # meta refresh in rooms only @@ -873,7 +877,11 @@ FW_roomOverview($) # MENU my (@list1, @list2); push(@list1, ""); push(@list2, ""); - + if(!$FW_hiddenroom{save}) { + push(@list1, "Save config"); push(@list2, "$FW_ME?cmd=save"); + push(@list1, ""); push(@list2, ""); + } + ######################## # FW Extensions if(defined($data{FWEXT})) { @@ -941,11 +949,6 @@ FW_roomOverview($) FW_pO ""; } FW_pO ""; - if(!$FW_hiddenroom{save}) { - FW_pO "
" . - FW_submit("cmd", "save"). - "
"; - } FW_pO ""; } else { @@ -990,9 +993,6 @@ FW_roomOverview($) FW_pO "
"; FW_pO FW_hidden("room", "$FW_room") if($FW_room); FW_pO FW_textfield("cmd", $FW_ss ? 25 : 40, "maininput"); - if(!$FW_ss && !$FW_hiddenroom{save}) { - FW_pO "
" . FW_submit("cmd", "save"); - } FW_pO "
"; FW_pO ""; FW_pO ""; @@ -2006,7 +2006,7 @@ FW_pH(@) $class = "" if(!defined($class)); $class = " class=\"$class\"" if($class); - # Using onclick, as href start safari in a webapp. + # Using onclick, as href starts safari in a webapp. # Known issue: the pointer won't change if($FW_ss || $FW_tp) { FW_pO "$txt";