roojs-core.js
[roojs1] / Roo / form / Field.js
index bcd3ab7..8baa2c7 100644 (file)
@@ -267,7 +267,7 @@ side          Add an error icon to the right of the field with a popup on hover
      */
     hasChanged : function()
     {
-        if(this.disabled) {
+        if(this.disabled || this.readOnly) {
             return false;
         }
         return this.loadedValue !== false && String(this.getValue()) !== this.loadedValue;
@@ -294,6 +294,7 @@ side          Add an error icon to the right of the field with a popup on hover
      */
     reset : function(){
         this.setValue(this.resetValue);
+        this.originalValue = this.getValue();
         this.clearInvalid();
     },