Add voting javascript (doesn't do anything yet)
This commit is contained in:
parent
a119b9c85d
commit
7f481afdd8
|
@ -193,5 +193,6 @@
|
|||
|
||||
<!-- Custom scripts -->
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/voting.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
$(function() {
|
||||
$(".vote-up").click(function() {
|
||||
var review = $(this).attr("data-review-id");
|
||||
// Vote up
|
||||
});
|
||||
$(".vote-down").click(function() {
|
||||
var review = $(this).attr("data-review-id");
|
||||
// Vote down
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue