X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fform%2FTextField.js;h=de50897fa266388631de1c69e17b1af932973e77;hp=a50d6ca2ecb09a2b96aab76df33d0c12cd404a48;hb=79bd3d52a193f29a604d9ab5ed12125a7c6b0a5c;hpb=d01a4dba6310ab6dc6fe56d60b0458a4769d3b83 diff --git a/Roo/form/TextField.js b/Roo/form/TextField.js index a50d6ca2ec..de50897fa2 100644 --- 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) { - 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.