From 0e76c82a3a2ced262f5f8cbf2e9577c34c119dde Mon Sep 17 00:00:00 2001 From: kou_hin Date: Tue, 26 Aug 2014 19:16:46 +0900 Subject: [PATCH] Change command "disable" and "enable" to use "readonly" instead of "disabled". --- src/js/bootstrap-datetimepicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/bootstrap-datetimepicker.js b/src/js/bootstrap-datetimepicker.js index c566f890e..fe79bdfb2 100644 --- a/src/js/bootstrap-datetimepicker.js +++ b/src/js/bootstrap-datetimepicker.js @@ -137,11 +137,11 @@ }, disable: function(){ - this.$element.find('input').prop('disabled',true); + this.$element.find('input').prop('readonly',true); this._detachDatePickerEvents(); }, enable: function(){ - this.$element.find('input').prop('disabled',false); + this.$element.find('input').prop('readonly',false); this._attachDatePickerEvents(); },