Changeset 3793
- Timestamp:
- 02/18/11 15:49:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/contactcenter/js/cc.js
r3780 r3793 2358 2358 var coord = new Array(); 2359 2359 2360 //Element('cc_card_space').innerHTML = '';2361 //return;2362 2363 2360 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;2365 2361 card_space_height = parseInt(Element('cc_card_space').offsetHeight) - parseInt(CC_card_extra); 2366 2362 … … 2372 2368 2373 2369 coord[0] = ncols; 2374 //coord[1] = nlines;2375 2370 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 );2379 2371 2380 2372 return coord; … … 2421 2413 '<input id="' + id + ':cc_id" type="hidden">' + 2422 2414 '</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>';*/2435 2415 } 2436 2416 … … 2456 2436 '<input id="' + id + ':cc_id" type="hidden">'+ 2457 2437 '</td></tr>'; 2458 2459 // if(type != 'groups'||type=='shared_groups') {2460 2438 } 2461 2439 else { … … 2485 2463 '</td></tr>'; 2486 2464 } 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 ' | '+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 }*/2499 2465 2500 2466 return html_card; … … 2713 2679 } 2714 2680 2715 /*function ccSearchUpdate(ids)2681 function ccSearchUpdate() 2716 2682 { 2717 2683 Element('cc_panel_letters').style.display = 'none'; … … 2723 2689 drawTable(0); 2724 2690 2725 if (!ids)2726 {2727 //ccSearchHide();2728 return;2729 }2730 2731 var sIds = serialize(ids);2732 2733 2691 if (CC_actual_letter != 'search') 2734 2692 { 2735 2693 CC_last_letter = CC_actual_letter; 2736 2694 } 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);2756 2695 } 2757 2696 … … 2771 2710 Element('cc_panel_letters').style.display = 'inline'; 2772 2711 clearCards(); 2773 //showCards(CC_last_letter, '1');2774 2712 } 2775 2713
Note: See TracChangeset
for help on using the changeset viewer.