mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhemweb.js: fixing issues on the detail page (Forum #129858)
git-svn-id: https://svn.fhem.de/fhem/trunk@26631 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
36221537c3
commit
d371cb957c
@ -4742,7 +4742,7 @@ FW_log($$)
|
||||
<a id="FHEMWEB-attr-detailLinks"></a>
|
||||
<li>detailLinks<br>
|
||||
Anzahl der Links, die auf der Detailseite unten angezeigt werden. Die
|
||||
weiteren Befehle werden in einem Auswahlmen&%uuml; angezeigt.
|
||||
weiteren Befehle werden in einem Auswahlmenü angezeigt.
|
||||
Voreinstellung ist 2.
|
||||
</li>
|
||||
<br>
|
||||
|
@ -2808,6 +2808,8 @@ CommandRename($$)
|
||||
return "Invalid characters in name (not A-Za-z0-9._): $new"
|
||||
if(!goodDeviceName($new));
|
||||
return "Cannot rename global" if($old eq "global");
|
||||
return "Cannot rename $old from itself"
|
||||
if($cl && $cl->{SNAME} && $cl->{SNAME} eq $old);
|
||||
|
||||
%ntfyHash = ();
|
||||
$defs{$new} = $defs{$old};
|
||||
|
@ -501,7 +501,7 @@ FW_confirmDelete()
|
||||
if(!ma || ma.length != 2)
|
||||
return;
|
||||
FW_removeLink(this);
|
||||
$(this).click(function(e){ FW_delete(ma[1], ma[0]) });
|
||||
$(this).click(function(e){ FW_delete(ma[1], ma[0]); return false; });
|
||||
});
|
||||
}
|
||||
|
||||
@ -520,7 +520,7 @@ FW_renameDevice(dev)
|
||||
var nn = $(div).find("input").val();
|
||||
if(!nn.match(/^[a-z0-9._]*$/i))
|
||||
return FW_okDialog("Illegal characters in the new name");
|
||||
location.href = addcsrf(FW_root+"?cmd=rename "+dev+" "+nn);
|
||||
location.href=addcsrf(FW_root+"?cmd=rename "+dev+" "+nn+"&detail="+nn);
|
||||
}},
|
||||
{text:"Cancel", click:doClose} ],
|
||||
close: doClose
|
||||
|
Loading…
Reference in New Issue
Block a user