mirror of https://github.com/ColorlibHQ/AdminLTE
Update todo list plugin usage example
parent
9f870d0fad
commit
075fe294ed
|
@ -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;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue