X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=161bc3ca4cc2cca3ef33cfab1981e0d22d81dd1b;hb=a9512966febab0a7572d0d750bf6262a7880eb82;hp=e956860183116233b7b90207bfc4348535c8817a;hpb=16d585588738895fd73db1cc2cf3754144012aab;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index e956860183..161bc3ca4c 100644 --- 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) { - 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. @@ -40293,7 +40297,8 @@ Roo.extend(Roo.form.NumberField, Roo.form.TextField, { * 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({ @@ -40641,7 +40646,13 @@ dateField.setValue('2006-5-4'); return String(this.getValue()) !== String(this.startValue); + }, + // @overide + cleanLeadingSpace : function(e) + { + return; } + });/* * 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) */ - collapse : function(skipAnim, skipCheck = false){ + collapse : function(skipAnim, skipCheck){ if(this.collapsed) { return; }