This commit is contained in:
vitalets
2013-03-06 18:29:10 +04:00
parent 41fd0929bd
commit 8a258c88a3
2 changed files with 14 additions and 0 deletions
CHANGELOG.txt
src/inputs/date

@ -111,12 +111,24 @@ $(function(){
},
autosubmit: function() {
this.$input.on('mouseup', '.day', function(e){
if($(e.currentTarget).is('.old') || $(e.currentTarget).is('.new')) {
return;
}
var $form = $(this).closest('form');
setTimeout(function() {
$form.submit();
}, 200);
});
//changedate is not suitable as it triggered when showing datepicker. see #149
/*
this.$input.on('changeDate', function(e){
var $form = $(this).closest('form');
setTimeout(function() {
$form.submit();
}, 200);
});
*/
}
});