From: Alan Knowles Date: Tue, 13 Jul 2021 08:57:39 +0000 (+0800) Subject: whitespace X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=9be6e45a0ff049e97ab69d97706b81d8a0500fb1 whitespace --- 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 { diff --git a/docs/src/Roo_bootstrap_DateField.js.html b/docs/src/Roo_bootstrap_DateField.js.html index 43f2d3f66d..2dbef208ef 100644 --- a/docs/src/Roo_bootstrap_DateField.js.html +++ b/docs/src/Roo_bootstrap_DateField.js.html @@ -727,6 +727,9 @@ 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));