projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58fa50
)
Fixed javascript error appearing on themes using SVGElements.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sun, 28 Feb 2021 14:37:31 +0000
(15:37 +0100)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sun, 28 Feb 2021 14:42:04 +0000
(15:42 +0100)
js/behaviour.js
patch
|
blob
|
history
diff --git
a/js/behaviour.js
b/js/behaviour.js
index fa812c8be7152bbfaad52d1eb0563cd1c8ecafb5..917299fe0040f7ca537d540eeeee6f18a980801d 100644
(file)
--- 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];
}
}