Ignore:
Timestamp:
11/17/09 15:57:19 (15 years ago)
Author:
amuller
Message:

Ticket #490 - Criação dos códigos de unificação ajax

Location:
sandbox/expresso2.2/calendar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expresso2.2/calendar/inc/class.uicalendar.inc.php

    r1645 r1662  
    50815081                                                                                        '<script type="text/javascript" src="phpgwapi/js/dJSWin/dJSWin.js"></script>'.           
    50825082                                                                                        "<script src='calendar/js/edit_exmail.js' type='text/javascript'></script>" . 
    5083                                                                                         $load_lang_vars.                                                                                                                                                         
    5084                                                                                         "<script src='".$module_name."/js/connector.js' type='text/javascript'></script>". 
     5083                                                                                        $load_lang_vars.                                 
    50855084                                                                                        "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ".                                                                                         
    50865085                                                                                        "<script type='text/javascript'>" . 
  • sandbox/expresso2.2/calendar/js/edit_exmail.js

    r1643 r1662  
    217217function loadScript(scriptPath){ 
    218218 
    219         if(!connector) 
     219        if(!expresso.connector) 
    220220                throw new Error("Error : Connector is not loaded."); 
    221221                 
     
    224224        } 
    225225         
    226         connector.oxmlhttp.open("GET", scriptPath, false); 
    227     connector.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 
    228         connector.oxmlhttp.send(null); 
    229         if(connector.oxmlhttp.status != 0 && connector.oxmlhttp.status != 200 ||        connector.oxmlhttp.status == 0 && connector.oxmlhttp.responseText.length == 0) 
    230                 throw new Error("Error " + connector.oxmlhttp.status + "("+connector.oxmlhttp.statusText+") when loading script file '"+scriptPath+"'"); 
     226        expresso.connector.oxmlhttp.open("GET", scriptPath, false); 
     227    expresso.connector.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 
     228        expresso.connector.oxmlhttp.send(null); 
     229        if(expresso.connector.oxmlhttp.status != 0 && expresso.connector.oxmlhttp.status != 200 ||      expresso.connector.oxmlhttp.status == 0 && expresso.connector.oxmlhttp.responseText.length == 0) 
     230                throw new Error("Error " + expresso.connector.oxmlhttp.status + "("+expresso.connector.oxmlhttp.statusText+") when loading script file '"+scriptPath+"'"); 
    231231         
    232232        var head = document.getElementsByTagName("head")[0]; 
     
    234234        script.id = 'uploadscript_'+scriptPath; 
    235235        script.type = 'text/javascript';                 
    236         script.text = connector.oxmlhttp.responseText; 
     236        script.text = expresso.connector.oxmlhttp.responseText; 
    237237        head.appendChild(script); 
    238238        return;  
  • sandbox/expresso2.2/calendar/templates/default/delegate.tpl

    r1646 r1662  
    33<script src='{url_template}/../../js/edit_exmail.js' type='text/javascript'></script> 
    44<script src='{module_name}/inc/load_lang.php' type='text/javascript'></script> 
    5 <script src='{module_name}/js/connector.js' type='text/javascript'></script> 
    65<script type='text/javascript'>var DEFAULT_URL = '{module_name}/controller.php?action=';</script>  
    76<font color="#FF0000">{error_msg}</font> 
Note: See TracChangeset for help on using the changeset viewer.