Changeset 3077


Ignore:
Timestamp:
07/21/10 18:12:06 (10 years ago)
Author:
amuller
Message:

Ticket #1145 - Arruma problema ao carregar script sob demanda

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/base/common_functions.js

    r3073 r3077  
    495495 
    496496function search_emails(value){ 
    497         expresso.connector.loadScript("TreeS"); 
     497        expresso.connector.loadScript("jscode/TreeS"); 
    498498        expresso.connector.loadScript("jscode/search"); 
    499499        if (typeof(EsearchE) == 'undefined' || typeof(ttree) == 'undefined'){  
  • trunk/expressoMail1_2/js/base/main.js

    r3073 r3077  
    936936 
    937937function new_message(type, border_ID){ 
    938         if ( RichTextEditor == null ) 
    939                 RichTextEditor = new cRichTextEditor( ); 
    940938 
    941939        if (Element('show_img_link_'+border_ID)) 
     
    944942        } 
    945943        var new_border_ID = draw_new_message(parseInt(border_ID)); 
    946         if (new_border_ID == false) 
    947                 return false;    
     944        if (new_border_ID == false){ 
     945                setTimeout('new_message(\''+type+'\',\''+border_ID+'\');',500); 
     946                return false; 
     947        } 
     948        if ( RichTextEditor == null ) 
     949                RichTextEditor = new cRichTextEditor( ); 
    948950        openTab.type[new_border_ID] = tabTypes[type]; 
    949951 
  • trunk/expressoMail1_2/js/jscode/draw_api_messages.js

    r3073 r3077  
    207207function draw_new_message(border_ID) 
    208208{ 
     209        expresso.connector.loadScript("jscode/rich_text_editor"); 
     210        expresso.connector.loadScript("jscode/color_palette"); 
     211        if(typeof(RichTextEditor) == 'undefined' || typeof(ColorPalette) == 'undefined') 
     212                return false; 
     213 
    209214        Tooltip.init(); 
    210215 
     
    611616        table_message.appendChild(tbody_message);        
    612617        form.appendChild(table_message); 
    613         expresso.connector.loadScript("jscode/rich_text_editor"); 
     618        if ( RichTextEditor == null ) 
     619                RichTextEditor = new cRichTextEditor( ); 
    614620        RichTextEditor.loadEditor(ID);   
    615621        resizeWindow(); 
  • trunk/expressoMail1_2/js/jscode/draw_messages.js

    r3037 r3077  
    191191                        //link_attachment.setAttribute("href", "javascript:download_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"',"+i+",'"+info_msg.attachments[i].pid+"','"+info_msg.attachments[i].encoding+"')"); 
    192192                        link_attachment.innerHTML = url_decode(info_msg.attachments[i].name); 
    193                         link_attachment.innerHTML += " "+borkb(info_msg.attachments[i].fsize); 
     193                        link_attachment.innerHTML += " ("+borkb(info_msg.attachments[i].fsize)+")"; 
    194194 
    195195                        if((url_decode(info_msg.attachments[i].name).indexOf(".ics")!=-1) || (url_decode(info_msg.attachments[i].name).indexOf(".vcard")!=-1)){ 
Note: See TracChangeset for help on using the changeset viewer.