powerdns-admin/app/static/admin/pages/scripts/tasks.js
2015-12-13 16:34:12 +07:00

19 lines
403 B
JavaScript

var Tasks = function () {
return {
//main function to initiate the module
initDashboardWidget: 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");
}
});
}
};
}();