github.com/apremalal/vamps-core@v1.0.1-0.20161221121535-d430b56ec174/server/webapps/app/base/js/tasks.js (about) 1 var Tasks = function () { 2 3 4 return { 5 6 //main function to initiate the module 7 initDashboardWidget: function () { 8 $('.task-list input[type="checkbox"]').change(function() { 9 if ($(this).is(':checked')) { 10 $(this).parents('li').addClass("task-done"); 11 } else { 12 $(this).parents('li').removeClass("task-done"); 13 } 14 }); 15 } 16 17 }; 18 19 }();