Changeset 5020


Ignore:
Timestamp:
09/01/11 15:18:24 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #2082 - Correção para que não seja alterado o foco do menu ao criar grupos

Location:
branches/2.3/contactcenter
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/contactcenter/js/cc.js

    r4293 r5020  
    27782778        Connector.newRequest('voip', "../../expressoMail1_2/controller.php?action=expressoMail1_2.functions.callVoipconnect&to="+phoneUser+"&typePhone="+typePhone, 'POST', handler_voip); 
    27792779        } 
     2780 
     2781function closeWindowCreateGroup(){ 
     2782    if ((document.getElementById('ccAddGroup DOM').style.visibility == 'visible')){ 
     2783        ccAddGroup.clear(); ccAddGroup.returnToOriginalCatalog(); ccAddGroup.window.close(); 
     2784    } 
     2785} 
  • branches/2.3/contactcenter/js/ccAddGroup.js

    r4631 r5020  
    408408 
    409409            } 
    410             ccTree.select(catalogLevel); 
    411  
    412             if (catalogLevel == '0.0') 
    413             { 
    414                 ccAddGroup.loadPersonalContacts(); 
    415             } 
    416             else 
    417                 { 
    418                    ccAddGroup.clearSourceList(); 
    419                 } 
    420  
    421             //eval(refresh); 
    422  
     410 
     411            var handler = function(data){ 
     412         
     413                if (data){ 
     414                    if (catalogLevel == '0.0') 
     415                    { 
     416                        ccAddGroup.loadPersonalContacts(); 
     417                    } 
     418                    else 
     419                        { 
     420                           ccAddGroup.clearSourceList(); 
     421                        } 
     422                } 
     423 
     424            } 
     425 
     426            Connector.newRequest('ccAGSearchSetCatalog', CC_url+'set_catalog&catalog='+catalogLevel, 'GET', handler); 
     427        } 
     428 
     429        cAddGroup.prototype.returnToOriginalCatalog = function(){ 
     430            var handler = function(){ 
     431                return; 
     432            } 
     433 
     434            Connector.newRequest('ccAGSearchSetCatalog', CC_url+'set_catalog&catalog='+ccTree.actualLevel, 'GET', handler); 
    423435        } 
    424436         
  • branches/2.3/contactcenter/templates/default/addGroup.tpl

    r3970 r5020  
    7373                        <td align="center" colspan="3"> 
    7474                                        <br>                                             
    75                                         <input title="{ccAGSave}" type="button" onclick="ccAddGroup.send();" value="{ccAGSave}" /> 
     75                                        <input title="{ccAGSave}" type="button" onclick="ccAddGroup.send(); ccAddGroup.returnToOriginalCatalog();" value="{ccAGSave}" /> 
    7676                                        <input title="{ccAGClear}" type="button" onclick="ccAddGroup.clear();" value="{ccAGClear}" /> 
    77                                         <input title="{ccAGCancel}" type="button" onclick="ccAddGroup.clear(); ccAddGroup.window.close();" value="{ccAGCancel}"/>                                                
     77                                        <input title="{ccAGCancel}" type="button" onclick="ccAddGroup.clear(); ccAddGroup.returnToOriginalCatalog(); ccAddGroup.window.close();" value="{ccAGCancel}"/> 
    7878                        </td> 
    7979                </tr> 
  • branches/2.3/contactcenter/templates/default/index.tpl

    r3311 r5020  
    120120                                <tr> 
    121121                                        <td class="image-menu" width="150px" height="100%" align="left" valign="top">  
    122                                                 <div class="menu-degrade" id="cc_tree" style="overflow:auto;position:relative; width: 150px;border: 0px solid #999;"></div> 
     122                                                <div onclick=closeWindowCreateGroup(); class="menu-degrade" id="cc_tree" style="overflow:auto;position:relative; width: 150px;border: 0px solid #999;"></div> 
    123123                                        </td> 
    124124                                </tr> 
     
    143143                                        <td align="left">                                                                                                                        
    144144                                        <input id="cc_button_new" onMouseOver="if(!menuStarted) menu();menu.onmouseover()" onMouseOut="menu.onmouseout()"  value="{cc_btn_new}" type="button">                                   
    145                                         <div id="cc_panel_search_call" style="display: inline"></div> 
     145                                        <div onclick=closeWindowCreateGroup(); id="cc_panel_search_call" style="display: inline"></div> 
    146146                                        <div id="cc_panel_table" style="display: none; text-align: right"> 
    147147                                        <input type="button" value="{cc_panel_table}" class="tab_box" style="cursor: pointer; cursor: hand;" onclick="javascript: ccChangeVisualization('table')" /> 
     
    264264<script type="text/javascript" src="js/ccMain.js"></script> 
    265265<script type="text/javascript" src="js/cc_full_search.js"></script> 
     266<script type="text/javascript" src="../expressoMail1_2/js/modal/modal.js"></script> 
    266267<!-- END BOTTOM DETAILS-->                                               
Note: See TracChangeset for help on using the changeset viewer.