X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fbootstrap%2FDateField.js;h=2191956a66efd8232c8fc5575e806ec2b41a91f8;hp=642f1127254f17e5cad02c212bf67338abaeaeeb;hb=decbd95de2b8ac4505902e151302adbe67480a7b;hpb=b2f4341f395557e892614d0316541238c8bcf7f3 diff --git a/Roo/bootstrap/DateField.js b/Roo/bootstrap/DateField.js index 642f112725..2191956a66 100644 --- a/Roo/bootstrap/DateField.js +++ b/Roo/bootstrap/DateField.js @@ -727,6 +727,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { break; case 'span': if (className.indexOf('disabled') < 0) { + if (!this.viewDate) { + this.viewDate = new Date(); + } this.viewDate.setUTCDate(1); if (className.indexOf('month') > -1) { this.viewDate.setUTCMonth(Roo.bootstrap.DateField.dates[this.language].monthsShort.indexOf(html));