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]
/
roojs-debug.js
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
5fb01cc
..
2b33154
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-39532,11
+39532,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.
@@
-40297,7
+40297,8
@@
Roo.extend(Roo.form.NumberField, Roo.form.TextField, {
* Create a new DateField
* @param {Object} config
*/
* Create a new DateField
* @param {Object} config
*/
-Roo.form.DateField = function(config){
+Roo.form.DateField = function(config)
+{
Roo.form.DateField.superclass.constructor.call(this, config);
this.addEvents({
Roo.form.DateField.superclass.constructor.call(this, config);
this.addEvents({
@@
-40645,7
+40646,13
@@
dateField.setValue('2006-5-4');
return String(this.getValue()) !== String(this.startValue);
return String(this.getValue()) !== String(this.startValue);
+ },
+ // @overide
+ cleanLeadingSpace : function(e)
+ {
+ return;
}
}
+
});/*
* Based on:
* Ext JS Library 1.1.1
});/*
* Based on:
* Ext JS Library 1.1.1
@@
-42119,7
+42126,7
@@
Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
this.view.select(match);
var sn = Roo.get(this.view.getSelectedNodes()[0]);
sn.scrollIntoView(sn.dom.parentNode, false);
this.view.select(match);
var sn = Roo.get(this.view.getSelectedNodes()[0]);
sn.scrollIntoView(sn.dom.parentNode, false);
- }
+ }
/**
* @cfg {Boolean} grow
/**
* @cfg {Boolean} grow