forked from rDrama/rDrama
dfs
parent
ee585c3f38
commit
d9c3e7d2bb
|
@ -36,8 +36,8 @@
|
||||||
|
|
||||||
var upvote = function(event) {
|
var upvote = function(event) {
|
||||||
|
|
||||||
var type = event.target.dataset.contentType;
|
var type = event.target.dataset.bsContentType;
|
||||||
var id = event.target.dataset.idUp;
|
var id = event.target.dataset.bsIdUp;
|
||||||
|
|
||||||
var downvoteButton = document.getElementsByClassName(type + '-' + id + '-down');
|
var downvoteButton = document.getElementsByClassName(type + '-' + id + '-down');
|
||||||
var upvoteButton = document.getElementsByClassName(type + '-' + id + '-up');
|
var upvoteButton = document.getElementsByClassName(type + '-' + id + '-up');
|
||||||
|
@ -86,13 +86,8 @@
|
||||||
|
|
||||||
var downvote = function(event) {
|
var downvote = function(event) {
|
||||||
|
|
||||||
var type = event.target.dataset.contentType;
|
var type = event.target.dataset.bsContentType;
|
||||||
var id = event.target.dataset.idDown;
|
var id = event.target.dataset.bsIdDown;
|
||||||
console.log(event)
|
|
||||||
console.log(event.target)
|
|
||||||
console.log(event.target.dataset)
|
|
||||||
console.log(type)
|
|
||||||
console.log(id)
|
|
||||||
|
|
||||||
var downvoteButton = document.getElementsByClassName(type + '-' + id + '-down');
|
var downvoteButton = document.getElementsByClassName(type + '-' + id + '-down');
|
||||||
var upvoteButton = document.getElementsByClassName(type + '-' + id + '-up');
|
var upvoteButton = document.getElementsByClassName(type + '-' + id + '-up');
|
||||||
|
|
Loading…
Reference in New Issue