Ignore:
Timestamp:
11/27/09 10:24:20 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhorias no módulo gerenciador de arquivos com ajax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/js/connector.js

    r1704 r1719  
    4343        var div = document.getElementById('divProgressBar'); 
    4444 
    45         if(! div) {                                                                                            
     45        if(! div) { 
    4646                div = document.createElement("DIV"); 
    47                 div.style.visibility    = "hidden"; 
     47                //div.style.visibility  = "hidden"; 
    4848                div.style.width = "103px"; 
    4949                div.id = 'divProgressBar'; 
     
    5454                div.style.top = '0px'; 
    5555                div.style.right = '0px'; 
    56                 document.body.appendChild(div);                                                                
     56                document.body.appendChild(div); 
    5757 
    5858                if(is_ie) { 
     
    8181        if (! div){ 
    8282                connector.buildBar(); 
    83                 connector.showProgressBar(); 
    8483                return; 
    8584        } 
     
    115114 
    116115function cExecute(requestURL,handler){ 
     116        if (connector.isVisibleBar == true){ 
     117                setTimeout('cExecute("'+requestURL+'",'+handler+')',150); 
     118                return; 
     119        } 
     120        connector.showProgressBar(); 
    117121        var AjaxRequest = function () { 
    118122                Ajax = false; 
     
    131135        var responseRequest = function (){ 
    132136                if (Ajax.readyState == 4) 
    133                         if (Ajax.status == 200) 
     137                        if (Ajax.status == 200){ 
    134138                                handler(Ajax.responseText); 
     139                                connector.hideProgressBar(); 
     140                        } 
    135141                        else 
    136142                                throw("Connection error!"); 
Note: See TracChangeset for help on using the changeset viewer.