You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
432 B
22 lines
432 B
var AppTask = function () {
|
|
|
|
return {
|
|
|
|
//main function to initiate the module
|
|
init: function () {
|
|
$('.task-list input[type="checkbox"]').change(function() {
|
|
if ($(this).is(':checked')) {
|
|
$(this).parents('li').addClass("task-done");
|
|
} else {
|
|
$(this).parents('li').removeClass("task-done");
|
|
}
|
|
});
|
|
}
|
|
|
|
};
|
|
|
|
}();
|
|
|
|
jQuery(document).ready(function() {
|
|
AppTask.init();
|
|
});
|