fix showbuttons passing to input options
This commit is contained in:
@ -189,7 +189,10 @@ To create your own input you can inherit from this class.
|
||||
inputclass: 'input-medium',
|
||||
//scope for external methods (e.g. source defined as function)
|
||||
//for internal use only
|
||||
scope: null
|
||||
scope: null,
|
||||
|
||||
//need to re-declare showbuttons here to get it's value from common config (passed only options existing in defaults)
|
||||
showbuttons: true
|
||||
};
|
||||
|
||||
$.extend($.fn.editabletypes, {abstractinput: AbstractInput});
|
||||
|
@ -109,7 +109,7 @@ $(function(){
|
||||
this.$input.data('datepicker').date = null;
|
||||
this.$input.find('.active').removeClass('active');
|
||||
if(!this.options.showbuttons) {
|
||||
this.$input.closest('form').submit();
|
||||
this.$input.closest('form').submit();
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -129,7 +129,7 @@ $(function(){
|
||||
activate: function() {
|
||||
},
|
||||
|
||||
clear: function() {
|
||||
clear: function() {
|
||||
this.$input.data('datetimepicker').date = null;
|
||||
this.$input.find('.active').removeClass('active');
|
||||
if(!this.options.showbuttons) {
|
||||
|
Reference in New Issue
Block a user