projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #5963 - white space strip only on text fields
[roojs1]
/
Roo
/
form
/
TextField.js
diff --git
a/Roo/form/TextField.js
b/Roo/form/TextField.js
index
a50d6ca
..
de50897
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.inputType == 'file') {
- return;
- }
-
- this.setValue((this.getValue() + '').replace(/^\s+/,''));
+
if (
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.