projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
11e4a77
)
Roo/bootstrap/form/TimeField.js
author
leon
<leon@roojs.com>
Thu, 23 Feb 2023 07:50:05 +0000
(15:50 +0800)
committer
leon
<leon@roojs.com>
Thu, 23 Feb 2023 07:50:05 +0000
(15:50 +0800)
Roo/bootstrap/form/TimeField.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/form/TimeField.js
b/Roo/bootstrap/form/TimeField.js
index
1529a8a
..
af0effe
100644
(file)
--- a/
Roo/bootstrap/form/TimeField.js
+++ b/
Roo/bootstrap/form/TimeField.js
@@
-283,10
+283,13
@@
Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input, {
if(typeof(this.time) === 'undefined') {
var now = new Date();
if(typeof(this.time) === 'undefined') {
var now = new Date();
- this.time.setMinutes(Math.round(parseInt(now.format('i')) / this.minuteStep) * this.minuteStep);
+ Roo.log('NOW');
+ Roo.log(now.format('i'));
+ Roo.log('NEW');
+ var newMinute = Math.round(parseInt(now.format('i')) / this.minuteStep) * this.minuteStep;
+ Roo.log(newMinute);
}
this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;
}
this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;
- //var minutesToAdd = Math.round((parseInt(this.time.format('i')) + this.minuteStep) / this.minuteStep) * this.minuteStep - parseInt(this.time.format('i'));
this.fill();
},
this.fill();
},