X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=ux%2FDateDisplay.js;h=4e4a26b0f02788bf1cc61447a8a617f8a7819ba5;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=21d7387f7697e35568b90b1700e3aa94c46ad3c1;hpb=8e43ecf796a0c3d0f6b5862a3c3e3bab37fef96c;p=roojs1 diff --git a/ux/DateDisplay.js b/ux/DateDisplay.js index 21d7387f76..4e4a26b0f0 100644 --- a/ux/DateDisplay.js +++ b/ux/DateDisplay.js @@ -4,9 +4,16 @@ Roo.form.DateDisplay = function(config){ + config.listener = config.listener || {}; + var c = Roo.apply({}, config); + delete c.listener; Roo.form.DateDisplay.superclass.constructor.call(this, config); - this.picker = new Roo.DatePicker( config ); + + Roo.log(c); + + + this.picker = new Roo.DatePicker( c ); this.addEvents({ /** @@ -54,7 +61,7 @@ Roo.extend(Roo.form.DateDisplay , Roo.form.TextField , { if (this.picker.value) { this.setValue(this.picker.value.format('Y-m-d')); - this.fireEvent('select', this); + //this.fireEvent('select', this); } }