mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-18 05:56:03 +00:00
01_FHEMWEB.pm: make the module more reload-ready (Forum #30065)
git-svn-id: https://svn.fhem.de/fhem/trunk@7154 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b58aa6c07e
commit
47d9b14d07
@ -122,7 +122,7 @@ FHEMWEB_Initialize($)
|
||||
$hash->{AttrFn} = "FW_Attr";
|
||||
$hash->{DefFn} = "FW_Define";
|
||||
$hash->{UndefFn} = "FW_Undef";
|
||||
$hash->{NotifyFn}= "FW_SecurityCheck";
|
||||
$hash->{NotifyFn}= ($init_done ? "FW_Notify" : "FW_SecurityCheck");
|
||||
$hash->{ActivateInformFn} = "FW_ActivateInform";
|
||||
no warnings 'qw';
|
||||
my @attrList = qw(
|
||||
@ -190,6 +190,12 @@ FHEMWEB_Initialize($)
|
||||
$data{webCmdFn}{noArg} = "FW_noArgFn";
|
||||
$data{webCmdFn}{textField} = "FW_textFieldFn";
|
||||
$data{webCmdFn}{"~dropdown"}= "FW_dropdownFn"; # Should be the last
|
||||
|
||||
if($init_done) { # reload workaround
|
||||
foreach my $pe ("fhemSVG", "openautomation", "default") {
|
||||
FW_readIcons($pe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#####################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user