mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #191 from danielma/master
Add ability to toggle datetimepicker
This commit is contained in:
commit
e69685b5bc
@ -1484,6 +1484,9 @@
|
||||
}
|
||||
event.stopPropagation();
|
||||
})
|
||||
.on('toggle.xdsoft', function (event) {
|
||||
datetimepicker.is(':visible') ? datetimepicker.trigger('close.xdsoft') : datetimepicker.trigger('open.xdsoft');
|
||||
})
|
||||
.data('input', input);
|
||||
|
||||
timer = 0;
|
||||
@ -1595,6 +1598,9 @@
|
||||
case 'hide':
|
||||
datetimepicker.trigger('close.xdsoft');
|
||||
break;
|
||||
case 'toggle':
|
||||
datetimepicker.trigger('toggle.xdsoft');
|
||||
break;
|
||||
case 'destroy':
|
||||
destroyDateTimePicker($(this));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user