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:
rudolfkoenig
2014-05-16 20:02:59 +00:00
parent cdc2cab5d1
commit 1999e9b9d7

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