From 075fe294ed112413951f832e234d68ff3b47cbf3 Mon Sep 17 00:00:00 2001 From: Abdullah Almsaeed Date: Sat, 25 Feb 2017 14:54:11 -0500 Subject: [PATCH] Update todo list plugin usage example --- dist/js/pages/dashboard.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/dist/js/pages/dashboard.js b/dist/js/pages/dashboard.js index 1f53a291e..75e77b9fc 100644 --- a/dist/js/pages/dashboard.js +++ b/dist/js/pages/dashboard.js @@ -30,7 +30,6 @@ $(function () { // bootstrap WYSIHTML5 - text editor $('.textarea').wysihtml5(); - $('.daterange').daterangepicker({ ranges : { 'Today' : [moment(), moment()], @@ -199,14 +198,12 @@ $(function () { }); /* The todo list plugin */ - $('.todo-list').todolist({ - onCheck : function (ele) { - window.console.log('The element has been checked'); - return ele; + $('.todo-list').todoList({ + onCheck : function () { + window.console.log($(this), 'The element has been checked'); }, - onUncheck: function (ele) { - window.console.log('The element has been unchecked'); - return ele; + onUnCheck: function () { + window.console.log($(this), 'The element has been unchecked'); } });