fix showbuttons passing to input options

This commit is contained in:
vitalets
2013-04-03 00:17:24 +04:00
parent b38f872302
commit 72f964a7cc
5 changed files with 12 additions and 5 deletions

@ -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) {