fix #149
This commit is contained in:
parent
41fd0929bd
commit
8a258c88a3
@ -5,6 +5,8 @@ X-editable changelog
|
|||||||
|
|
||||||
Version 1.4.2 wip
|
Version 1.4.2 wip
|
||||||
----------------------------
|
----------------------------
|
||||||
|
[bug #149] datepicker not shown when showbuttons = false (vitalets)
|
||||||
|
[bug #133] clear button incorect position due to parent line-height property (vitalets)
|
||||||
[bug #141] data-value ignored for empty elements (vitalets)
|
[bug #141] data-value ignored for empty elements (vitalets)
|
||||||
[bug #137] fix empty class for delegated element (vitalets)
|
[bug #137] fix empty class for delegated element (vitalets)
|
||||||
[enh #121] add support of momentjs 2.0.0 in combodate (vitalets)
|
[enh #121] add support of momentjs 2.0.0 in combodate (vitalets)
|
||||||
|
@ -111,12 +111,24 @@ $(function(){
|
|||||||
},
|
},
|
||||||
|
|
||||||
autosubmit: 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){
|
this.$input.on('changeDate', function(e){
|
||||||
var $form = $(this).closest('form');
|
var $form = $(this).closest('form');
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$form.submit();
|
$form.submit();
|
||||||
}, 200);
|
}, 200);
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user