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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5877 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-05-16 20:02:59 +00:00
parent 93ed383c13
commit 9343b56e56

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