mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-10 07:30:26 +00:00
19 lines
403 B
JavaScript
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");
|
|
}
|
|
});
|
|
}
|
|
|
|
};
|
|
|
|
}(); |