1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00

fhemweb.js: fixing scriptAttr (used by CodeMirror, forum #23661)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5877 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-05-16 20:02:59 +00:00
parent f8be7d42c5
commit eb2435862d

View File

@ -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");
});