From 9be6e45a0ff049e97ab69d97706b81d8a0500fb1 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 13 Jul 2021 16:57:39 +0800 Subject: [PATCH] whitespace --- Roo/bootstrap/DateField.js | 8 ++++---- docs/src/Roo_bootstrap_DateField.js.html | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) 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)); -- 2.39.2