Commit inicial Ventas Productivo
This commit is contained in:
19
Metronic/assets/admin/pages/scripts/tasks.js
Normal file
19
Metronic/assets/admin/pages/scripts/tasks.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}();
|
||||
Reference in New Issue
Block a user