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:
parent
0ba17be6bc
commit
d6587155be
15
main.js
15
main.js
@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user