X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-bootstrap-debug.js;fp=roojs-bootstrap-debug.js;h=09230325ee2c9d4dfd333c90d460eba56af3046b;hp=324da9ac572aaf8f9474e2eb48051c46ff3f12dc;hb=e6e51042a1606a05c5875c5943829e7ff3cec513;hpb=9bd8e392d7204efca7cc62e5edbaa04e108be1b1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 324da9ac57..09230325ee 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -23187,6 +23187,11 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input, { singleMode : false, hiddenField : false, + + /** + * @cfg {Boolean} editable False to prevent the user from typing text directly into the field (defaults to true) + */ + editable: true, UTCDate: function() { @@ -23374,6 +23379,10 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input, { ); this.inputEl().dom.setAttribute('name', this.name + '____hidden___'); + if(!this.editable) { + this.inputEl().dom.setAttribute('readOnly', true); + } + }, picker : function()