Changeset 3793


Ignore:
Timestamp:
02/18/11 15:49:13 (13 years ago)
Author:
niltonneto
Message:

Ticket #1515 - Removido trecho de código comentado não utilizado.

File:
1 edited

Legend:

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

    r3780 r3793  
    23582358        var coord = new Array(); 
    23592359 
    2360         //Element('cc_card_space').innerHTML = ''; 
    2361         //return; 
    2362  
    23632360        card_space_width = parseInt(Element('cc_main').offsetWidth) - parseInt(Element('cc_left').offsetWidth) - parseInt(CC_card_extra); 
    2364         //card_space_width = parseInt(is_ie ? document.body.offsetWidth : window.innerWidth) - parseInt(Element('cc_left').offsetWidth) - parseInt(CC_card_extra) - 40; 
    23652361        card_space_height = parseInt(Element('cc_card_space').offsetHeight) - parseInt(CC_card_extra); 
    23662362 
     
    23722368 
    23732369        coord[0] = ncols; 
    2374         //coord[1] = nlines; 
    23752370        coord[1] = 10; 
    2376  
    2377         //alert( 'WIDTH: ' + card_space_width + ' / ' + card_width + ' = ' + card_space_width / card_width + "\n" + 
    2378         //      'HEIGHT: ' + card_space_height + ' / ' + card_height + ' = ' + card_space_height / card_height ); 
    23792371 
    23802372        return coord; 
     
    24212413                                        '<input id="' + id + ':cc_id" type="hidden">' + 
    24222414                                '</div>' + '</td>'; 
    2423  
    2424                 /*} else { 
    2425                         html_card = '<td id="' + id + '" style="width: ' + CC_card_image_width + 'px; height: ' + CC_card_image_height + '">' + 
    2426             '<div style="border: 0px solid #999; position: relative;">' + 
    2427                                 '<img src="templates/default/images/card.png" border="0" width="' + CC_card_image_width +'" height="' + CC_card_image_height + '"i ondblclick="editContact(Element(\'' + id + ':cc_id\').value);">' + 
    2428                                 '<img title="'+Element('cc_msg_group_edit').value+'" id="' + id + ':cc_card_edit" style="position: absolute; top: 35px; left: 222px; width: 18px; height: 18px; cursor: pointer; cursor: hand; z-index: 1" onclick="editGroup(Element(\'' + id + ':cc_id\').value);" onmouseover="resizeIcon(\''+id+':cc_card_edit\',0)" onmouseout="resizeIcon(\''+id+':cc_card_edit\',1)" src="templates/default/images/cc_card_edit.png">' + 
    2429                                 '<img title="'+Element('cc_msg_group_remove').value+'" id="' + id + ':cc_card_remove" style="position: absolute; top: 78px; left: 223px; width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value,\'groups\');" onmouseover="resizeIcon(\''+id+':cc_card_remove\',0)" onmouseout="resizeIcon(\''+id+':cc_card_remove\',1)" src="templates/default/images/cc_x.png">' + 
    2430                                 '<span id="' + id + ':cc_title" style="position: absolute; top: 30px; left: 75px; width: 135px; border: 0px solid #999; font-weight: bold; font-size: 10px; text-align: center; height: 10px;" onmouseover="//Element(\''+id+':cc_name_full\').style.visibility=\'visible\'" onmouseout="//Element(\''+id+':cc_name_full\').style.visibility=\'hidden\'"></span>' + 
    2431                                 '<span id="' + id + ':cc_participantes" style="cursor: pointer; cursor: hand; z-index: 1;position: absolute; top: 15px; left: 15px"></span>' + 
    2432                                 '<span onMouseOver="this.title = \''+Element('cc_send_mail').value+'\'" id="' + id + ':cc_short_name" style="position: absolute; top: 105px; left: 75px; width: 135px; border: 0px solid #999; font-weight: normal; font-size: 10px; text-align: center; height: 10px;"></span>' + 
    2433                                 '<input id="' + id + ':cc_id" type="hidden">' + 
    2434                         '</div>' + '</td>';*/ 
    24352415                } 
    24362416 
     
    24562436                                        '<input id="' + id + ':cc_id" type="hidden">'+ 
    24572437                                        '</td></tr>'; 
    2458  
    2459         //              if(type != 'groups'||type=='shared_groups') { 
    24602438            } 
    24612439            else { 
     
    24852463                                        '</td></tr>'; 
    24862464                        } 
    2487                         /*else { 
    2488                                 html_card = '<tr width="40%" id="' + id + '" onmouseout="'+bg+'" onmouseover="this.style.background=\'LIGHTYELLOW\'" bgcolor="EEEEEE"><td width="auto" style="font-weight: normal; font-size: 10px; text-align: left; height: 10px;">' + 
    2489                                         '<span id="' + id + ':cc_participantes" style="cursor: pointer; cursor: hand; z-index: 1"></span>' + 
    2490                                         '<span id="' + id + ':cc_title"></span></td>' + 
    2491                                         '<td width="40%" style="solid #999; font-weight: normal; font-size: 10px; text-align: left; height: 10px"><span onMouseOver="this.title = \''+Element('cc_send_mail').value+' => '+'\'+document.getElementById(\''+id + ':cc_title\').innerHTML"  id="' + id + ':cc_short_name"></span></td>' + 
    2492                                         '<td align="left" width="55px">'+ 
    2493                                         '<img  title="'+Element('cc_msg_group_edit').value+'" id="' + id + ':cc_card_edit" style=" cursor: pointer; cursor: hand; z-index: 1;width: 18px; height: 18px;"  onclick="editGroup(Element(\'' + id + ':cc_id\').value);" src="templates/default/images/cc_card_edit.png">' + 
    2494                                         '&nbsp;&nbsp;|&nbsp;&nbsp;'+ 
    2495                                         '<img  title="'+Element('cc_msg_group_remove').value+'" id="' + id + ':cc_card_remove" style="width: 15px; height: 14px; cursor: pointer; cursor: hand; z-index: 1" onclick="removeEntry(Element(\'' + id + ':cc_id\').value,\'groups\');" src="templates/default/images/cc_x.png">'  + 
    2496                                         '<input id="' + id + ':cc_id" type="hidden">'+ 
    2497                                         '</td></tr>'; 
    2498                         }*/ 
    24992465 
    25002466        return html_card; 
     
    27132679} 
    27142680 
    2715 /*function ccSearchUpdate(ids) 
     2681function ccSearchUpdate() 
    27162682{ 
    27172683        Element('cc_panel_letters').style.display = 'none'; 
     
    27232689                drawTable(0); 
    27242690 
    2725         if (!ids) 
    2726         { 
    2727                 //ccSearchHide(); 
    2728                 return; 
    2729         } 
    2730  
    2731         var sIds = serialize(ids); 
    2732  
    27332691        if (CC_actual_letter != 'search') 
    27342692        { 
    27352693                CC_last_letter = CC_actual_letter; 
    27362694        } 
    2737         showCards('search', '1', sIds); 
    2738 } 
    2739 */ 
    2740  
    2741 function ccSearchUpdate() 
    2742 { 
    2743         Element('cc_panel_letters').style.display = 'none'; 
    2744         Element('cc_panel_search').style.display  = 'inline'; 
    2745  
    2746         if(CC_visual == 'cards') 
    2747                 drawCards(0); 
    2748         else if(CC_visual == 'table') 
    2749                 drawTable(0); 
    2750  
    2751         if (CC_actual_letter != 'search') 
    2752         { 
    2753                 CC_last_letter = CC_actual_letter; 
    2754         } 
    2755         //showCards('search', '1', sIds); 
    27562695} 
    27572696 
     
    27712710        Element('cc_panel_letters').style.display = 'inline'; 
    27722711        clearCards(); 
    2773         //showCards(CC_last_letter, '1'); 
    27742712} 
    27752713 
Note: See TracChangeset for help on using the changeset viewer.