Changeset 7535


Ignore:
Timestamp:
11/20/12 15:50:34 (11 years ago)
Author:
angelo
Message:

Ticket #3197 - Reduzir tempo de carregamento do modulo Expresso Mail

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/index.php

    r7459 r7535  
    1616                'enable_nextmatchs_class' => True 
    1717        ); 
    18          
    1918        require_once('../header.inc.php'); 
    2019        $update_version = $GLOBALS['phpgw_info']['apps']['expressoMail1_2']['version']; 
    2120        $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 
    2221        echo "<script type='text/javascript'>var template = '".$_SESSION['phpgw_info']['expressoMail1_2']['user']['preferences']['common']['template_set']."';</script>"; 
    23         echo "<script src='js/modal/modal.js'></script>"; 
    24         //jquery and Editor  
    25         echo '  
     22        echo ' 
    2623                <link rel="stylesheet" type="text/css" href="templates/default/main.css"></link> 
    27                  
    2824                <link rel="stylesheet" type="text/css" href="../phpgwapi/js/dftree/dftree.css"></link> 
    29                  
    30                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.spinner/jquery.spinner.css"></link> 
    31                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.css"></link> 
    32                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.print.css"></link> 
    33                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/icalendar/jquery.icalendar.css"></link> 
    34                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.jrating/jRating.jquery.css"></link> 
    35  
     25                <link rel="Stylesheet" type="text/css" href="../prototype/plugins/jquery/jquery-ui.css" /> 
     26                <link rel="stylesheet" type="text/css" href="../prototype/plugins/zebradialog/css/zebra_dialog.css"></link> 
     27                <link rel="stylesheet" href="../prototype/plugins/treeview/jquery.treeview.css" type="text/css" media="screen" /> 
     28                <link rel="stylesheet" href="../prototype/modules/mail/css/followupflag.css" type="text/css" /> 
     29                <link rel="stylesheet" href="../prototype/modules/attach_message/attach_message.css" type="text/css" /> 
     30                <!-- <link rel="stylesheet" href="../prototype/modules/mail/css/label.css" type="text/css" /> --> 
     31 
     32                <script src="js/modal/modal.js"></script> 
    3633                <script type="text/javascript" src="../prototype/plugins/jquery/jquery.min.js"></script> 
    37                 <link href="../prototype/modules/filters/filters.css" rel="stylesheet" type="text/css"> 
    38                  
    3934                <script type="text/javascript" src="../prototype/plugins/jquery/jquery-ui.min.js"></script> 
     35                <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.contextMenu.js"></script> 
    4036                <script src="../prototype/plugins/json2/json2.js" language="javascript"></script> 
    4137                <script src="../prototype/plugins/ejs/ejs.js" language="javascript"></script> 
     
    5248                <script src="../library/ckeditor/ckeditor.js" language="javascript" charset="utf-8"></script>  
    5349                <script src="../library/ckeditor/adapters/jquery.js" language="javascript"></script>  
    54                 <script src="../prototype/plugins/lazy/jquery.lazy.js" language="javascript"></script>  
    55                  
    56                 <link rel="Stylesheet" type="text/css" href="../prototype/plugins/jquery/jquery-ui.css" />                                       
    57                  
    58                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/contextmenu/jquery.contextMenu.css"></link> 
    59                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/zebradialog/css/zebra_dialog.css"></link>              
    60                  
    61                 <link rel="stylesheet" href="../prototype/plugins/farbtastic/farbtastic.css" type="text/css" >   
    62                 <link rel="stylesheet" href="../prototype/plugins/fileupload/jquery.fileupload-ui.css" type="text/css" >         
    63                  
     50                <script src="../prototype/plugins/lazy/jquery.lazy.js" language="javascript"></script> 
    6451                <script type="text/javascript" src="../prototype/plugins/zebradialog/javascript/zebra_dialog.js"></script> 
    65                 <script type="text/javascript" src="../prototype/plugins/datejs/date-pt-BR.js"></script> 
    66                 <script type="text/javascript" src="../prototype/plugins/datejs/sugarpak.js"></script> 
    67                 <script type="text/javascript" src="../prototype/plugins/datejs/parser.js"></script> 
    68                 <script type="text/javascript" src="../prototype/plugins/jq-raty/js/jquery.raty.min.js"></script> 
    69                 <script type="text/javascript" src="../prototype/plugins/jquery.jrating/jRating.jquery.js"></script> 
    70  
    71                 <script type="text/javascript" src="../prototype/plugins/watermark/jquery.watermarkinput.js"></script> 
    72                 <script type="text/javascript" src="../prototype/plugins/mask/jquery.maskedinput.js"></script> 
    73                 <script type="text/javascript" src="../prototype/plugins/alphanumeric/jquery.alphanumeric.js"></script> 
    74                 <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.fileupload.js"></script> 
    75                 <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.iframe-transport.js"></script> 
    76                  
    77                 <script type="text/javascript" src="../prototype/plugins/qtip/jquery.qtip-1.0.0-rc3.min.js"></script> 
    78                 <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.contextMenu.js"></script> 
    79                 <!-- <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.ui.position.js"></script> --> 
    80  
    81                 <script type="text/javascript" src="../prototype/modules/calendar/js/timezone.js"></script> 
    82                 <script type="text/javascript" src="../prototype/plugins/dateFormat/dateFormat.js"></script> 
    83                 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.date.js"></script> 
    84                 <script type="text/javascript" src="../prototype/modules/calendar/js/desktop.notification.js"></script> 
    85                 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.codecs.js"></script> 
    86                 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.alarms.js"></script> 
    87                 <script type="text/javascript" src="../prototype/modules/calendar/js/helpers.js"></script> 
    88                 <link rel="stylesheet" type="text/css" href="../prototype/plugins/freeow/style/freeow/freeow.css" > 
    89                 <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.min.js"></script> 
    90                 <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.js"></script> 
    91  
    92  
    9352                <script src="js/rich_text_editor.js" type="text/javascript"></script> 
    9453                <script src="js/base64.js" type="text/javascript"></script> 
    95                  
    96                 <script type="text/javascript">  
    97                     User.moduleName = "expressoMail1_2"; 
    98                 </script>  
    99  
    100  
    101                 '; 
     54                <script type="text/javascript" src="../prototype/plugins/treeview/jquery.treeview.js"></script> 
     55                <script type="text/javascript" src="../prototype/plugins/treeview/lib/jquery.cookie.js"></script> 
     56                <script type="text/javascript" src="../prototype/plugins/block/jquery.blockUI.js"></script> 
     57                <script type="text/javascript" src="../prototype/plugins/scrollto/jquery.scrollTo.js"></script>          
     58                <script src="../prototype/modules/mail/js/foldertree.js" type="text/javascript"></script>                
     59                <script src="../prototype/modules/mail/js/label.js" type="text/javascript"></script>     
     60                <script src="../prototype/modules/mail/js/followupflag.js" type="text/javascript"></script> 
     61    '; 
    10262        //---------------------------// 
    103  
    10463        echo "<script src='js/globals.js?".$update_version."' type='text/javascript'></script>"; 
    10564        echo "<script src='js/sniff_browser.js?".$update_version."' type='text/javascript'></script>"; 
     
    11170        echo '<script type="text/javascript" src="../phpgwapi/js/wz_dragdrop/wz_dragdrop.js?'.$update_version.'"></script> 
    11271                <script type="text/javascript" src="../phpgwapi/js/dJSWin/dJSWin.js?'.$update_version.'"></script> 
    113                 <script type="text/javascript" src="../phpgwapi/js/x_tools/xtools.js?'.$update_version.'"></script>';            
    114  
    115         echo '   
    116                 <script type="text/javascript" src="../prototype/plugins/treeview/jquery.treeview.js"></script> 
    117                 <script type="text/javascript" src="../prototype/plugins/treeview/lib/jquery.cookie.js"></script> 
    118                 <script type="text/javascript" src="../prototype/plugins/block/jquery.blockUI.js"></script> 
    119                 <script type="text/javascript" src="../prototype/plugins/scrollto/jquery.scrollTo.js"></script> 
    120  
    121                 <link rel="stylesheet" href="../prototype/plugins/treeview/jquery.treeview.css" type="text/css" media="screen" /> 
    122                  
    123                 <script src="../prototype/plugins/jqgrid/js/i18n/grid.locale-pt-br.js" type="text/javascript"></script> 
    124                 <script src="../prototype/plugins/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> 
    125                 <script src="../prototype/modules/mail/js/foldertree.js" type="text/javascript"></script> 
    126                  
    127                 <link rel="stylesheet" href="../prototype/plugins/jqgrid/css/ui.jqgrid.css" type="text/css" />   
    128                 <link rel="stylesheet" href="../prototype/plugins/jqgrid/themes/prognusone/jquery-ui-1.8.2.custom.css" type="text/css" />        
    129  
    130                 <script src="../prototype/plugins/countdown/jquery.countdown.min.js" type="text/javascript"></script> 
    131                 <script src="../prototype/plugins/countdown/jquery.countdown-pt-BR.js" type="text/javascript"></script>          
    132                  
    133                 <script src="../prototype/modules/mail/js/label.js" type="text/javascript"></script>     
    134                 <script src="../prototype/modules/mail/js/followupflag.js" type="text/javascript"></script> 
    135                  
    136                 <link rel="stylesheet" href="../prototype/modules/mail/css/followupflag.css" type="text/css" /> 
    137                 <link rel="stylesheet" href="../prototype/modules/attach_message/attach_message.css" type="text/css" /> 
    138                 <!-- <link rel="stylesheet" href="../prototype/modules/mail/css/label.css" type="text/css" /> -->';      
    139          
     72                <script type="text/javascript" src="../phpgwapi/js/x_tools/xtools.js?'.$update_version.'"></script>';    
     73 
    14074        /* 
    14175         * TODO: implementar o controle como preferência do usuário  
     
    14781                echo "\n".'<link rel="stylesheet" type="text/css" href="../library/jcarousel/skins/default/skin.css" />'; 
    14882                echo "\n".'<script src="../library/jcarousel/lib/jquery.jcarousel.min.js" type="text/javascript"></script>'; 
    149  
    15083                //fancybox 
    15184                echo "\n".'<link rel="stylesheet" type="text/css" href="../library/fancybox/jquery.fancybox-1.3.4.css" />';              
     
    15487 
    15588        echo "<div id='overlay' style='background-color: #AAAAAAA; opacity: .50; filter:Alpha(Opacity=50); height: 100%; width: 100%; position: absolute; top: 0; left: 0; visibility: hidden; z-index: 30000000000000000000000'></div>"; 
    156  
    157          
    15889        //Enable/Disable VoIP Service -> Voip Server Config 
    15990        $voip_enabled = false; 
     
    173104                } 
    174105        } 
    175  
    176106        //Local messages 
    177107        $_SESSION['phpgw_info']['server']['expressomail']['enable_local_messages'] = $current_config['enable_local_messages']; 
     
    342272                $("#menu2Container").hide(); 
    343273    </script> 
    344         <script type="text/javascript" src="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.js"></script> 
    345         <script type="text/javascript" src="../prototype/plugins/timepicker/localization/jquery-ui-timepicker-pt-BR.js"></script> 
    346         <script type="text/javascript" src="../prototype/plugins/jquery/i18n/jquery.ui.datepicker-pt-BR.js"></script> 
    347         <link rel="Stylesheet" type="text/css" href="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.css" /> 
    348         <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/layout.css" /> 
     274 
    349275        <!--<link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/style.css" /> --> 
    350276        <script type="text/javascript" src="../prototype/modules/filters/filters.js"></script> 
    351          
    352277        '; 
    353  
    354278 
    355279    // End Set Imap Folder names options 
     
    370294            $mail_archiver_protocol = "https"; 
    371295            $mail_archiver_port = "4334"; 
    372         } 
    373      
     296        }    
    374297        //JS Variables (to add on jscripts variables, needed by dependence scripts following) 
    375         echo '<script type="text/javascript">var mail_archive_protocol="'.$mail_archiver_protocol.'"; var mail_archive_port="'.$mail_archiver_port.'";</script>'; 
    376      
     298        echo '<script type="text/javascript">var mail_archive_protocol="'.$mail_archiver_protocol.'"; var mail_archive_port="'.$mail_archiver_port.'";</script>';   
    377299        //CXF custom js files, from MailArchiver ArcServUtil JS files repository, intended to be running already: CORS support and custom TRANSPORT object 
    378300        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-xdr-adapter.js"></script>'; 
    379301        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-cors-request-object.js"></script>'; 
    380302        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-cors-utils.js"></script>'; 
    381  
    382303        //CXF UTILS MAIN FILE 
    383         echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcserv/ArchiveServices?js&nojsutils"></script>'; 
    384      
     304        echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcserv/ArchiveServices?js&nojsutils"></script>';    
    385305        //QueryConfig add on 
    386306        echo '<script src="js/MAQueryConfig.js?'.$update_version.'"></script>';         
    387307        //Expresso serialized format add on 
    388         echo '<script src="js/MAExpressoPattern.js?'.$update_version.'"></script>';         
    389      
     308        echo '<script src="js/MAExpressoPattern.js?'.$update_version.'"></script>';            
    390309        //echo $obj -> getFilesJs("js/mail_archiver.js," . $GLOBALS['phpgw_info']['flags']['update_version']); 
    391         echo '<script src="js/mail_archiver.js?'.$update_version.'"></script>'; 
    392      
     310        echo '<script src="js/mail_archiver.js?'.$update_version.'"></script>';  
    393311    } 
    394312        //echo "<script language='javascript'> var account_id = ".$GLOBALS['phpgw_info']['user']['account_id'].";var expresso_offline = false;</script>"; 
    395  
    396313        $obj = createobject("expressoMail1_2.functions"); 
    397  
    398314        // setting timezone preference 
    399315        $zones = $obj->getTimezones(); 
    400316        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] : sprintf("%s", array_search("America/Sao_Paulo", $zones)); 
    401  
    402317        // este arquivo deve ser carregado antes que 
    403318        // os demais pois nele contem a função get_lang 
     
    434349                <script type="text/javascript">connector.updateVersion = "'.$update_version.'";</script>'; 
    435350 
    436  
    437  
    438351        // Get Preferences or redirect to preferences page. 
    439352        $GLOBALS['phpgw']->preferences->read_repository(); 
     
    444357        unset($_SESSION['phpgw_info']['expressomail']['server']['global_denied_users']); 
    445358        unset($_SESSION['phpgw_info']['expressomail']['server']['global_denied_groups']); 
     359 
     360echo ' 
     361        <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.spinner/jquery.spinner.css"></link> 
     362        <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.css"></link> 
     363        <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.print.css"></link> 
     364        <link rel="stylesheet" type="text/css" href="../prototype/plugins/icalendar/jquery.icalendar.css"></link> 
     365        <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.jrating/jRating.jquery.css"></link> 
     366        <link href="../prototype/modules/filters/filters.css" rel="stylesheet" type="text/css"> 
     367        <link rel="stylesheet" href="../prototype/plugins/farbtastic/farbtastic.css" type="text/css" >   
     368        <link rel="stylesheet" href="../prototype/plugins/fileupload/jquery.fileupload-ui.css" type="text/css" > 
     369        <link rel="stylesheet" type="text/css" href="../prototype/plugins/contextmenu/jquery.contextMenu.css"></link>            
     370        <link rel="stylesheet" href="../prototype/plugins/jqgrid/css/ui.jqgrid.css" type="text/css" />   
     371        <link rel="stylesheet" href="../prototype/plugins/jqgrid/themes/prognusone/jquery-ui-1.8.2.custom.css" type="text/css" /> 
     372        <link rel="Stylesheet" type="text/css" href="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.css" /> 
     373        <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/layout.css" /> 
     374 
     375        <script type="text/javascript" src="../prototype/plugins/datejs/date-pt-BR.js"></script> 
     376        <script type="text/javascript" src="../prototype/plugins/datejs/sugarpak.js"></script> 
     377        <script type="text/javascript" src="../prototype/plugins/datejs/parser.js"></script> 
     378        <script type="text/javascript" src="../prototype/plugins/jq-raty/js/jquery.raty.min.js"></script> 
     379        <script type="text/javascript" src="../prototype/plugins/jquery.jrating/jRating.jquery.js"></script>             
     380        <script type="text/javascript" src="../prototype/plugins/watermark/jquery.watermarkinput.js"></script> 
     381        <script type="text/javascript" src="../prototype/plugins/mask/jquery.maskedinput.js"></script> 
     382        <script type="text/javascript" src="../prototype/plugins/alphanumeric/jquery.alphanumeric.js"></script> 
     383        <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.fileupload.js"></script> 
     384        <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.iframe-transport.js"></script> 
     385        <script type="text/javascript" src="../prototype/plugins/qtip/jquery.qtip-1.0.0-rc3.min.js"></script> 
     386        <!-- <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.ui.position.js"></script> -->   
     387        <script type="text/javascript" src="../prototype/modules/calendar/js/timezone.js"></script> 
     388        <script type="text/javascript" src="../prototype/plugins/dateFormat/dateFormat.js"></script> 
     389        <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.date.js"></script> 
     390        <script type="text/javascript" src="../prototype/modules/calendar/js/desktop.notification.js"></script> 
     391        <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.codecs.js"></script> 
     392        <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.alarms.js"></script> 
     393        <script type="text/javascript" src="../prototype/modules/calendar/js/helpers.js"></script> 
     394        <link rel="stylesheet" type="text/css" href="../prototype/plugins/freeow/style/freeow/freeow.css" > 
     395        <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.min.js"></script> 
     396        <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.js"></script> 
     397        <script src="../prototype/plugins/jqgrid/js/i18n/grid.locale-pt-br.js" type="text/javascript"></script> 
     398        <script src="../prototype/plugins/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> 
     399        <script src="../prototype/plugins/countdown/jquery.countdown.min.js" type="text/javascript"></script> 
     400        <script src="../prototype/plugins/countdown/jquery.countdown-pt-BR.js" type="text/javascript"></script>        
     401        <script type="text/javascript" src="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.js"></script> 
     402        <script type="text/javascript" src="../prototype/plugins/timepicker/localization/jquery-ui-timepicker-pt-BR.js"></script> 
     403        <script type="text/javascript" src="../prototype/plugins/jquery/i18n/jquery.ui.datepicker-pt-BR.js"></script> 
     404        <script type="text/javascript">  
     405            User.moduleName = "expressoMail1_2"; 
     406                </script>        
     407'; 
    446408?> 
    447409<!-----Expresso Mail - Version Updated:<?=$update_version?>--------> 
  • trunk/expressoMail1_2/js/main.js

    r7529 r7535  
    184184                         
    185185                }*/ 
    186                 $.ajax({                         
    187                         url: "controller.php?" + $.param( {action: "$this.imap_functions.getMessagesIds", 
    188                                 folder: "INBOX",                                 
     186 
     187        //MAILARCHIVER-02 
     188        //Try to get ArchiveServices object directly 
     189        if(ArchiveServices) 
     190            expresso_mail_archive.Startup(); 
     191        //ArchiveServices not runnnig: catch the user preferences to set up message at header 
     192        else{ 
     193            if(preferences.use_local_messages=="1") 
     194                write_msg(get_lang('Sorry, but Mail Archiver does not seems to be running or installed at this workstation. By now, we are turning off local messages!')); 
     195        } 
     196                cExecute ("$this.imap_functions.get_range_msgs2&folder=INBOX&msg_range_begin=1&msg_range_end="+preferences.max_email_per_page+"&sort_box_type=SORTARRIVAL&search_box_type=ALL&sort_box_reverse=1", handler_draw_box); 
     197                //cExecute ("$this.db_functions.get_dropdown_contacts", save_contacts); //Save contacts needs preferences. 
     198                $.ajax({ 
     199            async: false, 
     200                        url: "controller.php?" + $.param( {action: "$this.imap_functions.getMessagesIds",  
     201                                folder: get_current_folder(), 
     202                                 msg_range_begin: "0", 
     203                                 msg_range_end: "0",                                     
    189204                                sort_box_type: "SORTARRIVAL",  
    190                                 search_box_type: "ALL", 
     205                                search_box_type: search_box_type, 
    191206                                sort_box_reverse: "1" 
    192207                                }), 
    193208                        success: function(data){ 
    194209                                data = connector.unserialize(data); 
    195                                 if(data){ 
     210                                if(data){                    
    196211                                        var _data = {}; 
    197212                                        $.each(data,function(index,value){ 
    198                                                 if (value){ 
    199                                                         _data[index] = value; 
     213                                                if (data[index]){ 
     214                                                        _data[data[index]] = data[index]; 
    200215                                                } 
    201216                                        }); 
     
    209224                                connector.hideProgressBar(); 
    210225                        } 
    211                 }); 
    212                 /*Carrega a lista de mensagens*/ 
    213  
    214         //MAILARCHIVER-02 
    215         //Try to get ArchiveServices object directly 
    216         if(ArchiveServices) 
    217             expresso_mail_archive.Startup(); 
    218         //ArchiveServices not runnnig: catch the user preferences to set up message at header 
    219         else{ 
    220             if(preferences.use_local_messages=="1") 
    221                 write_msg(get_lang('Sorry, but Mail Archiver does not seems to be running or installed at this workstation. By now, we are turning off local messages!')); 
    222         } 
    223  
    224                 var  handler_populateSelectedMsgs = function(data){ 
    225                         populateSelectedMsgs(data); 
    226                 } 
    227                 cExecute ("$this.imap_functions.get_msgs&folder=INBOX&sort_box_type=SORTARRIVAL&search_box_type=ALL&sort_box_reverse=1&msg_range_begin=1", handler_populateSelectedMsgs); 
    228                 //Substituido por padrão Jquery 
    229                 cExecute ("$this.imap_functions.get_range_msgs2&folder=INBOX&msg_range_begin=1&msg_range_end="+preferences.max_email_per_page+"&sort_box_type=SORTARRIVAL&search_box_type=ALL&sort_box_reverse=1", handler_draw_box); 
    230                 //cExecute ("$this.db_functions.get_dropdown_contacts", save_contacts); //Save contacts needs preferences. 
     226        }); 
    231227                if(preferences.hide_folders == "1") 
    232228                        Element('divAppboxHeader').innerHTML =  title_app_menu; 
Note: See TracChangeset for help on using the changeset viewer.