X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=js%2Fbehaviour.js;h=917299fe0040f7ca537d540eeeee6f18a980801d;hb=6ff34c1474ec3724609905319b3bbc087b49451e;hp=fa812c8be7152bbfaad52d1eb0563cd1c8ecafb5;hpb=efa2530a7c385a329c3fc76f4560b28ba97c3efe;p=fa-stable.git diff --git a/js/behaviour.js b/js/behaviour.js index fa812c8b..917299fe 100644 --- a/js/behaviour.js +++ b/js/behaviour.js @@ -161,7 +161,7 @@ document.getElementsBySelector = function(selector) { currentContext = new Array; var currentContextIndex = 0; for (var k = 0; k < found.length; k++) { - if (found[k].className && found[k].className.match(new RegExp('\\b'+className+'\\b'))) { + if (found[k].getAttribute('class') != null && found[k].getAttribute('class').match(new RegExp('\\b'+className+'\\b'))) { currentContext[currentContextIndex++] = found[k]; } }