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

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

index 78a918c..2e447ff 100644 (file)
@@ -259,6 +259,7 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input,  {
         Roo.each(this.picker().select('tfoot th.today', true).elements, function(v){
             Roo.log('ELEMENT');
             Roo.log(v);
+            Roo.log(this);
             if(!this.calendarWeeks){
                 v.remove();
                 return;
index c942624..86828f5 100644 (file)
@@ -23105,6 +23105,7 @@ Roo.extend(Roo.bootstrap.form.DateField, Roo.bootstrap.form.Input,  {
         Roo.each(this.picker().select('tfoot th.today', true).elements, function(v){
             Roo.log('ELEMENT');
             Roo.log(v);
+            Roo.log(this);
             if(!this.calendarWeeks){
                 v.remove();
                 return;
index 2dd9ce4..b566f81 100644 (file)
@@ -973,7 +973,7 @@ this.format=this.format||'m/d/y';this.isInline=false;this.isInput=true;this.comp
 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);
-v.hide();});Roo.each(this.picker().select('tbody > tr > td',true).elements,function(v){v.setStyle('width','189px');});}Roo.each(this.picker().select('tfoot th.today',true).elements,function(v){Roo.log('ELEMENT');Roo.log(v);if(!this.calendarWeeks){v.remove();
+v.hide();});Roo.each(this.picker().select('tbody > tr > td',true).elements,function(v){v.setStyle('width','189px');});}Roo.each(this.picker().select('tfoot th.today',true).elements,function(v){Roo.log('ELEMENT');Roo.log(v);Roo.log(this);if(!this.calendarWeeks){v.remove();
 return;}Roo.log('EDIT');v.dom.innerHTML=Roo.bootstrap.form.DateField.todayText;v.attr('colspan',function(i,B){return parseInt(B)+1;});});this.weekEnd=this.weekStart===0?6:this.weekStart-1;this.setStartDate(this.startDate);this.setEndDate(this.endDate);this.setDaysOfWeekDisabled(this.daysOfWeekDisabled);
 this.fillDow();this.fillMonths();this.update();this.showMode();if(this.isInline){this.showPopup();}this.hiddenField=this.inputEl().insertSibling({tag:'input',type:'hidden',name:this.name},'before',true);this.inputEl().dom.setAttribute('name',this.name+'____hidden___');
 },picker:function(){return this.pickerEl;},fillDow:function(){var A=this.weekStart;var B={tag:'tr',cn:[]};if(this.calendarWeeks){B.cn.push({tag:'th',cls:'cw',html:'&nbsp;'})}while(A<this.weekStart+7){B.cn.push({tag:'th',cls:'dow',html:Roo.bootstrap.form.DateField.dates[this.language].daysMin[(A++)%7]}