1
0
mirror of https://github.com/kihashi/stardew_community_checklist.git synced 2025-10-19 08:03:17 +00:00

OnClick assignment now gets executed.

This commit is contained in:
John Cleaver 2016-03-17 09:38:29 -04:00
parent 0ba17be6bc
commit d6587155be

15
main.js
View File

@ -7,6 +7,11 @@ var v = new Vue({
},
ready: function(){
this.fetchData();
$('.list-group-item').on('click', function() {
$('.glyphicon', this)
.toggleClass('glyphicon-chevron-right')
.toggleClass('glyphicon-chevron-down');
});
},
methods: {
fetchData: function(){
@ -18,13 +23,3 @@ var v = new Vue({
}
}
});
$(function() {
$('.list-group-item').on('click', function() {
$('.glyphicon', this)
.toggleClass('glyphicon-chevron-right')
.toggleClass('glyphicon-chevron-down');
});
});