mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
fhemweb.js: fixing scriptAttr (used by CodeMirror, forum #23661)
git-svn-id: https://svn.fhem.de/fhem/trunk@5877 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
79b4b795e0
commit
163d18c4bb
@ -362,8 +362,8 @@ scriptAttribute(sname)
|
||||
{
|
||||
var attr="";
|
||||
$("head script").each(function(){
|
||||
var attr = $(this).attr("src");
|
||||
if(attr && attr.indexOf(sname) >= 0)
|
||||
var src = $(this).attr("src");
|
||||
if(src && src.indexOf(sname) >= 0)
|
||||
attr = $(this).attr("attr");
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user