projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8bc41c6
)
Roo/form/TextField.js
author
Alan Knowles
<alan@roojs.com>
Wed, 31 Jul 2019 04:11:31 +0000
(12:11 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 31 Jul 2019 04:11:31 +0000
(12:11 +0800)
Roo/form/TextField.js
patch
|
blob
|
history
diff --git
a/Roo/form/TextField.js
b/Roo/form/TextField.js
index
451c63f
..
22189b9
100644
(file)
--- a/
Roo/form/TextField.js
+++ b/
Roo/form/TextField.js
@@
-174,11
+174,11
@@
Roo.extend(Roo.form.TextField, Roo.form.Field, {
// private - clean the leading white space
cleanLeadingSpace : function(e)
{
// private - clean the leading white space
cleanLeadingSpace : function(e)
{
- if (this.constructor == Roo.Form.TextField && this.inputType == 'file') {
- return;
- }
-
- this.setValue((this.getValue() + '').replace(/^\s+/,''));
+
if (this.constructor == Roo.Form.TextField && this.inputType == 'file') {
+
return;
+
}
+
+
this.setValue((this.getValue() + '').replace(/^\s+/,''));
},
/**
* Resets the current field value to the originally-loaded value and clears any validation messages.
},
/**
* Resets the current field value to the originally-loaded value and clears any validation messages.