Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | var Tasks = function () { |
| 2 | |||
| 3 | |||
| 4 | return { |
||
| 5 | |||
| 6 | //main function to initiate the module |
||
| 7 | initDashboardWidget: function () { |
||
| 8 | $('.task-list input[type="checkbox"]').change(function() { |
||
| 9 | if ($(this).is(':checked')) { |
||
| 10 | $(this).parents('li').addClass("task-done"); |
||
| 11 | } else { |
||
| 12 | $(this).parents('li').removeClass("task-done"); |
||
| 13 | } |
||
| 14 | }); |
||
| 15 | } |
||
| 16 | |||
| 17 | }; |
||
| 18 | |||
| 19 | }(); |