powerdns-admin/app/static/admin/pages/scripts/tasks.js

19 lines
403 B
JavaScript
Raw Normal View History

2015-12-13 09:34:12 +00:00
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");
}
});
}
};
}();