Roo/bootstrap/form/DateField.js
authorleon <leon@roojs.com>
Thu, 10 Aug 2023 03:00:53 +0000 (11:00 +0800)
committerleon <leon@roojs.com>
Thu, 10 Aug 2023 03:00:53 +0000 (11:00 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/form/DateField.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index f503a20..25d1581 100644 (file)
@@ -177,7 +177,7 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input,  {
 
         this.setDatesTranslation(this.language);
 
-        Roo.log(dates);
+        Roo.log(Roo.bootstrap.form.DateField.dates);
         
         this.isRTL = Roo.bootstrap.form.DateField.dates[this.language].rtl || false;
         this.format = this.format || 'm/d/y';
index 34ce09b..8dad751 100644 (file)
@@ -23022,6 +23022,8 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input,  {
         Roo.bootstrap.form.DateField.superclass.onRender.call(this, ct, position);
 
         this.setDatesTranslation(this.language);
+
+        Roo.log(Roo.bootstrap.form.DateField.dates);
         
         this.isRTL = Roo.bootstrap.form.DateField.dates[this.language].rtl || false;
         this.format = this.format || 'm/d/y';
index eda8cd8..f093435 100644 (file)
@@ -969,7 +969,7 @@ Roo.bootstrap.form.DateField=function(A){Roo.bootstrap.form.DateField.superclass
 ;locale=A.replace('_','-');for(var i=0;i<7;i++){var B=new Date(2020,0,5+i);Roo.bootstrap.form.DateField.dates[A]['days'].push(new Intl.DateTimeFormat(locale,{weekday:'long'}).format(B));Roo.bootstrap.form.DateField.dates[A]['daysShort'].push(new Intl.DateTimeFormat(locale,{weekday:'short'}
 ).format(B));Roo.bootstrap.form.DateField.dates[A]['daysMin'].push(new Intl.DateTimeFormat(locale,{weekday:'narrow'}).format(B));}for(var i=0;i<12;i++){var B=new Date(2020,i);Roo.bootstrap.form.DateField.dates[A]['months'].push(new Intl.DateTimeFormat(locale,{month:'long'}
 ).format(B));Roo.bootstrap.form.DateField.dates[A]['monthsShort'].push(new Intl.DateTimeFormat(locale,{month:'short'}).format(B));}},onRender:function(ct,A){Roo.bootstrap.form.DateField.superclass.onRender.call(this,ct,A);this.setDatesTranslation(this.language);
-this.isRTL=Roo.bootstrap.form.DateField.dates[this.language].rtl||false;this.format=this.format||'m/d/y';this.isInline=false;this.isInput=true;this.component=this.el.select('.add-on',true).first()||false;this.component=(this.component&&this.component.length===0)?false:this.component;
+Roo.log(Roo.bootstrap.form.DateField.dates);this.isRTL=Roo.bootstrap.form.DateField.dates[this.language].rtl||false;this.format=this.format||'m/d/y';this.isInline=false;this.isInput=true;this.component=this.el.select('.add-on',true).first()||false;this.component=(this.component&&this.component.length===0)?false:this.component;
 this.hasInput=this.component&&this.inputEl().length;if(typeof(this.minViewMode==='string')){switch(this.minViewMode){case 'months':this.minViewMode=1;break;case 'years':this.minViewMode=2;break;default:this.minViewMode=0;break;}}if(typeof(this.viewMode==='string')){switch(this.viewMode){case 'months':this.viewMode=1;
 break;case 'years':this.viewMode=2;break;default:this.viewMode=0;break;}}this.pickerEl=Roo.get(document.body).createChild(Roo.bootstrap.form.DateField.template);this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block';this.picker().on('mousedown',this.onMousedown,this);
 this.picker().on('click',this.onClick,this);this.picker().addClass('datepicker-dropdown');this.startViewMode=this.viewMode;if(this.singleMode){Roo.each(this.picker().select('thead > tr > th',true).elements,function(v){v.setVisibilityMode(Roo.Element.DISPLAY);