X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fbootstrap%2FDateField.js;h=ba18ac35df1a2cd51b50adc28d6104dad331e8f4;hp=2191956a66efd8232c8fc5575e806ec2b41a91f8;hb=9be6e45a0ff049e97ab69d97706b81d8a0500fb1;hpb=decbd95de2b8ac4505902e151302adbe67480a7b diff --git a/Roo/bootstrap/DateField.js b/Roo/bootstrap/DateField.js index 2191956a66..ba18ac35df 100644 --- a/Roo/bootstrap/DateField.js +++ b/Roo/bootstrap/DateField.js @@ -727,10 +727,10 @@ 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 (!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)); } else {