Changeset 14905

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

Prevent loading the Ajax editor again when it is already loaded, fixes #63

Files:

Legend:

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

    r14904 r14905  
    192192            */ 
    193193        } 
    194          
    195             if (this.formId == 'midcom_helper_datamanager2_controller_ajax_4b2ac795e1dfc64ff11af56337840b5f') 
    196             { 
    197                 console.info("x1: " + this.formDimensions.x1 + " y1: " + this.formDimensions.y1 + ", x2: " + this.formDimensions.x2 + " y2: " + this.formDimensions.y2); 
    198             } 
    199194         
    200195        if (   this.formArea 
     
    524519    fetchFields: function() 
    525520    { 
     521        if (this.newState == 'edit') 
     522        { 
     523            // Don't load the editor again if we already have it 
     524            return; 
     525        } 
    526526        this.removeToolbar(); 
    527527        this.blinder.innerHTML = 'Loading...';