mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 17:40:27 +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");
|
|
}
|
|
});
|
|
}
|
|
|
|
};
|
|
|
|
}(); |