mirror of
https://gitee.com/coder-xiaomo/flashsale
synced 2025-09-12 15:01:39 +08:00
添加Metronic(作为LFS)
This commit is contained in:
19
frontend/static/assets/admin/pages/scripts/tasks.js
Normal file
19
frontend/static/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