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