Roo/bootstrap/Input.js
authorEdward <edward@roojs.com>
Wed, 1 Aug 2018 05:24:32 +0000 (13:24 +0800)
committerEdward <edward@roojs.com>
Wed, 1 Aug 2018 05:24:32 +0000 (13:24 +0800)
Roo/bootstrap/Input.js

index 0d803de..f5e1ead 100644 (file)
@@ -745,7 +745,6 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
     
     onChange : function(e)
     {
-        Roo.log('onChange');
         var v = this.getValue();
         if(String(v) !== String(this.startValue)){
             this.fireEvent('change', this, v, this.startValue);
@@ -757,9 +756,7 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
      * Resets the current field value to the originally loaded value and clears any validation messages
      */
     reset : function(){
-        Roo.log('reset');
         this.setValue(this.originalValue);
-        Roo.log(this.startValue);
         this.validate();
     },
      /**
@@ -819,8 +816,8 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
      * @param {Mixed} value The value to set
      */
     setValue : function(v){
-        Roo.log('setValue');
         this.value = v;
+        this.startValue = v;
         if(this.rendered){
             this.inputEl().dom.value = (v === null || v === undefined ? '' : v);
             this.validate();