Author
|
zPlus <->
2017-03-27 19:28:31
|
Committer
|
zPlus <->
2017-03-27 19:28:31
|
Commit
|
9e783bb
(patch)
|
Tree
|
f107d93
|
Parent(s)
|
|
freepost.js: Replace document.getElementsByClassName() with
document.querySelectorAll()
commits diff:
b1531cb..9e783bb
1 file changed,
1 insertion,
1 deletion
—
download
Diffstat
Diff options
+1/-1
M javascript/freepost.js
104
|
104
|
|
* - votes sum
|
105
|
105
|
|
* - down arrow
|
106
|
106
|
|
*/
|
107
|
|
- |
let vote_sections = document.getElementsByClassName ('vote');
|
|
107
|
+ |
let vote_sections = document.querySelectorAll ('.vote');
|
108
|
108
|
|
|
109
|
109
|
|
// Bind vote() event to up/down vote arrows
|
110
|
110
|
|
for (let i = 0; i < vote_sections.length; i++)
|