@@ -36,11 +36,11 @@
|
||||
{
|
||||
if (type == 1) {
|
||||
this.likes++;
|
||||
if (this.current != 0) this.dislikes--;
|
||||
if (this.current == -1) this.dislikes--;
|
||||
}
|
||||
else if (type == -1) {
|
||||
this.dislikes++;
|
||||
if (this.current != 0) this.likes--;
|
||||
if (this.current == 1) this.likes--;
|
||||
}
|
||||
|
||||
this.current = type;
|
||||
|
||||
Reference in New Issue
Block a user