home » zplus/freepost.git
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 deletiondownload


Diffstat
-rw-r--r-- javascript/freepost.js 2

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+1/-1 M   javascript/freepost.js
index df13829..ee401d7
old size: 5K - new size: 5K
@@ -104,7 +104,7 @@ document.addEventListener ('DOMContentLoaded', function() {
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++)