From ac6b2f91f5b8b4df2500fd2fb7fdac6206e0b4c9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 8 Feb 2021 10:28:12 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js --- roojs-bootstrap-debug.js | 4 ++-- roojs-bootstrap.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 6569692f72..de49218b63 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -21966,8 +21966,8 @@ Roo.extend(Roo.bootstrap.TimeField, Roo.bootstrap.Input, { getAutoCreate : function() { this.after = ''; - Roo.bootstrap.TimeField.superclass.getAutoCreate.call(this); - + return Roo.bootstrap.TimeField.superclass.getAutoCreate.call(this); + }, onRender: function(ct, position) diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 2193554574..2054729b8b 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -918,7 +918,7 @@ if(B!==true){return false;}}if(this.regex&&!this.regex.test(A)){return false;}if ]}]}}); // Roo/bootstrap/TimeField.js Roo.bootstrap.TimeField=function(A){Roo.bootstrap.TimeField.superclass.constructor.call(this,A);this.addEvents({show:true,hide:true,select:true});};Roo.extend(Roo.bootstrap.TimeField,Roo.bootstrap.Input,{format:"H:i",getAutoCreate:function(){this.after=''; -Roo.bootstrap.TimeField.superclass.getAutoCreate.call(this);},onRender:function(ct,A){Roo.bootstrap.TimeField.superclass.onRender.call(this,ct,A);this.el.select('>.input-group',true).first().createChild(Roo.bootstrap.TimeField.template);this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block'; +return Roo.bootstrap.TimeField.superclass.getAutoCreate.call(this);},onRender:function(ct,A){Roo.bootstrap.TimeField.superclass.onRender.call(this,ct,A);this.el.select('>.input-group',true).first().createChild(Roo.bootstrap.TimeField.template);this.picker().setVisibilityMode(Roo.Element.DISPLAY).originalDisplay='block'; this.pop=this.picker().select('>.datepicker-time',true).first();this.pop.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.fillTime();this.update();this.pop.select('span.hours-up',true).first().on('click',this.onIncrementHours,this);this.pop.select('span.hours-down',true).first().on('click',this.onDecrementHours,this);this.pop.select('span.minutes-up',true).first().on('click',this.onIncrementMinutes,this); this.pop.select('span.minutes-down',true).first().on('click',this.onDecrementMinutes,this);this.pop.select('button.period',true).first().on('click',this.onTogglePeriod,this);this.pop.select('button.ok',true).first().on('click',this.setTime,this);},fireKey:function(e){if(!this.picker().isVisible()){if(e.keyCode==27){this.show(); -- 2.39.2