From: Alan Knowles Date: Tue, 22 Mar 2011 09:24:53 +0000 (+0800) Subject: Roo/form/DayPicker.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=70079ea599b2ef99c51ce25afc50fa4e544da40a Roo/form/DayPicker.js --- diff --git a/Roo/form/DayPicker.js b/Roo/form/DayPicker.js index 6a79ea93f2..820db481b3 100644 --- a/Roo/form/DayPicker.js +++ b/Roo/form/DayPicker.js @@ -125,6 +125,7 @@ Roo.extend(Roo.form.DayPicker, Roo.form.Field, { this.viewEl.select('img',true).each(function(e,i,n) { val += e.is(".x-menu-item-checked") ? String(n) : ' '; }); + this.setValue(val, true); }, /** @@ -134,8 +135,14 @@ Roo.extend(Roo.form.DayPicker, Roo.form.Field, { * @param {Boolean/String} suppressEvent - whether to suppress the checkchange event. */ setValue : function(v,suppressEvent){ + if (!this.el.dom.value) { + return; + } + this.el.dom.value = v; + if (suppressEvent) { + return ; + } - }, // handle setting of hidden value by some other method!!?!?