projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Roo/form/ComboBox.js
[roojs1]
/
roojs-debug.js
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
e956860
..
161bc3c
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-39532,7
+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)
{
- 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.
@@
-40293,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({
@@
-40641,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
@@
-52580,7
+52591,7
@@
Roo.extend(Roo.LayoutRegion, Roo.BasicLayoutRegion, {
* Collapses this region.
* @param {Boolean} skipAnim (optional) true to collapse the element without animation (if animate is true)
*/
* Collapses this region.
* @param {Boolean} skipAnim (optional) true to collapse the element without animation (if animate is true)
*/
- collapse : function(skipAnim, skipCheck
= false
){
+ collapse : function(skipAnim, skipCheck){
if(this.collapsed) {
return;
}
if(this.collapsed) {
return;
}