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