clear date & datetime when showbuttons=false, fix

This commit is contained in:
vitalets
2013-04-02 21:32:29 +04:00
parent ca14bed8e3
commit 21a6148f8d
5 changed files with 96 additions and 3 deletions

@ -108,6 +108,9 @@ $(function(){
clear: function() {
this.$input.data('datepicker').date = null;
this.$input.find('.active').removeClass('active');
if(!this.options.showbuttons) {
this.$input.closest('form').submit();
}
},
autosubmit: function() {

@ -132,6 +132,9 @@ $(function(){
clear: function() {
this.$input.data('datetimepicker').date = null;
this.$input.find('.active').removeClass('active');
if(!this.options.showbuttons) {
this.$input.closest('form').submit();
}
},
autosubmit: function() {