Changeset 1369
- Timestamp:
- 08/26/09 15:42:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/connector.js
r1364 r1369 3 3 var files = new Array(); 4 4 var progressBar; 5 var handlerExecuteForm = null; 5 6 6 7 if (document.all) … … 40 41 this.oldX = 0; 41 42 this.oldY = 0; 42 this.updateVersion = ""; 43 this.updateVersion = ""; 43 44 } 44 45 … … 585 586 function cExecuteForm(url, form, handler,id){ 586 587 connector.buildBar(); 587 isExecuteForm = true; 588 isExecuteForm = true; 589 588 590 document.onmouseup = alertBut; 589 591 590 592 connector.showProgressBar(); 591 593 if(! (divUpload = document.getElementById('divUpload'))) { … … 618 620 619 621 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>"; 621 629 form.action ="controller.php"; 622 630 form.target ="uploadFile";
Note: See TracChangeset
for help on using the changeset viewer.