Update todo list plugin usage example

pull/1498/head
Abdullah Almsaeed 2017-02-25 14:54:11 -05:00
parent 9f870d0fad
commit 075fe294ed
1 changed files with 5 additions and 8 deletions

View File

@ -30,7 +30,6 @@ $(function () {
// bootstrap WYSIHTML5 - text editor // bootstrap WYSIHTML5 - text editor
$('.textarea').wysihtml5(); $('.textarea').wysihtml5();
$('.daterange').daterangepicker({ $('.daterange').daterangepicker({
ranges : { ranges : {
'Today' : [moment(), moment()], 'Today' : [moment(), moment()],
@ -199,14 +198,12 @@ $(function () {
}); });
/* The todo list plugin */ /* The todo list plugin */
$('.todo-list').todolist({ $('.todo-list').todoList({
onCheck : function (ele) { onCheck : function () {
window.console.log('The element has been checked'); window.console.log($(this), 'The element has been checked');
return ele;
}, },
onUncheck: function (ele) { onUnCheck: function () {
window.console.log('The element has been unchecked'); window.console.log($(this), 'The element has been unchecked');
return ele;
} }
}); });