GITLAB

SourceCode / smartzone-home

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • smartzone-home
  • test-api
  • src
  • assets
  • pages
  • scripts
  • tasks.js
  • 718ca9e6   วัน(ทศนิยม),comment,status Browse Code »
    trainee
    2018-07-03 14:38:43 +0700  
tasks.js 432 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
var AppTask = function () {

    return {

        //main function to initiate the module
        init: 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"); 
				}
			}); 
        }

    };

}();

jQuery(document).ready(function() {
    AppTask.init();
});