Changeset 1369


Ignore:
Timestamp:
08/26/09 15:42:30 (15 years ago)
Author:
niltonneto
Message:

Ticket #179 - Corrigido problema do handler do cExecuteForm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/connector.js

    r1364 r1369  
    33var files = new Array(); 
    44var progressBar; 
     5var handlerExecuteForm = null; 
    56 
    67  if (document.all) 
     
    4041                this.oldX = 0; 
    4142                this.oldY = 0; 
    42                 this.updateVersion = ""; 
     43                this.updateVersion = "";         
    4344        } 
    4445         
     
    585586        function cExecuteForm(url, form, handler,id){ 
    586587                connector.buildBar(); 
    587                 isExecuteForm = true;            
     588                isExecuteForm = true; 
     589                 
    588590                document.onmouseup = alertBut; 
    589  
     591                 
    590592                connector.showProgressBar(); 
    591593                if(! (divUpload = document.getElementById('divUpload'))) { 
     
    618620 
    619621                form._action.value = url; 
    620                 divUpload.innerHTML= "<iframe onload=\"cExecute('$this.functions.getReturnExecuteForm',"+handler+");\"  style='display:"+(debug_controller ? "" : "none")+";width:"+(debug_controller ? 400 : 0)+";height:"+(debug_controller ? 400 : 0)+";' name='uploadFile'></iframe>"; 
     622                // Connector Bug fixing: Encapsulating returned handler function 
     623                handlerExecuteForm = handler; 
     624                var form_handler = function (data){ 
     625                        handlerExecuteForm(data); 
     626                        handlerExecuteForm = null; 
     627                } 
     628                divUpload.innerHTML= "<iframe onload=\"cExecute('$this.functions.getReturnExecuteForm',"+form_handler+");\"  style='display:"+(debug_controller ? "" : "none")+";width:"+(debug_controller ? 400 : 0)+";height:"+(debug_controller ? 400 : 0)+";' name='uploadFile'></iframe>"; 
    621629                form.action ="controller.php"; 
    622630                form.target ="uploadFile";               
Note: See TracChangeset for help on using the changeset viewer.