Changeset 14904

Show
Ignore:
Timestamp:
02/12/08 12:42:44 (10 months ago)
Author:
bergie
Message:

Fix a major reliability bug in Ajax editor

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.datamanager2/static/ajax.js

    r12176 r14904  
    407407         
    408408        // And remove the old state if set so DM2 doesn't get confused by them 
    409         delete this.formValues['midcom_helper_datamanager2_' + this.oldState];     
    410         delete this.formValues[this.formId + '_' + this.oldState]; 
     409        if (this.newState != this.oldState) 
     410        { 
     411            delete this.formValues['midcom_helper_datamanager2_' + this.oldState];     
     412            delete this.formValues[this.formId + '_' + this.oldState]; 
     413        } 
    411414                 
    412415        // QuickForm requires its own identifier to be present