Commit ff9e6782 authored by Martin Lehoux's avatar Martin Lehoux

update like script

parent e498edf3
......@@ -57,7 +57,7 @@
} else if (data=='True') {
$('#load').hide()
$('#dislike').show()
$('.star.icon').text(" "+(parseInt($('.star.icon').text())+1).toString())
$('#stars').text((parseInt($('#stars').text())+1).toString())
}
}
});
......@@ -76,7 +76,7 @@
} else if (data=='True') {
$('#load').hide()
$('#like').show()
$('.star.icon').text(" "+(parseInt($('.star.icon').text())-1).toString())
$('#stars').text((parseInt($('#stars').text())-1).toString())
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment