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

Merge pull request #3 from kihashi/master

OnClick assignment now gets executed.
This commit is contained in:
John Cleaver 2016-03-17 09:38:52 -04:00
commit 658ffa0e8d

15
main.js
View File

@ -7,6 +7,11 @@ var v = new Vue({
}, },
ready: function(){ ready: function(){
this.fetchData(); this.fetchData();
$('.list-group-item').on('click', function() {
$('.glyphicon', this)
.toggleClass('glyphicon-chevron-right')
.toggleClass('glyphicon-chevron-down');
});
}, },
methods: { methods: {
fetchData: function(){ 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');
});
});