Changeset 170


Ignore:
Timestamp:
09/18/2006 01:22:41 PM (6 years ago)
Author:
cirrus
Message:

Add: Line of sight link on gmap node description(thanks to socrates for the idea)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/basic/includes/pages/gmap/gmap_js.tpl

    r169 r170  
    294294                                "{/literal}{$lang.links}{literal}: " + (parseInt(node_p2p) + parseInt(node_client_on_ap)) + " (+" + node_aps + " {/literal}{$lang.aps}{literal})" + "<br />" + 
    295295                                "{/literal}{$lang.clients}{literal}: " + node_clients + "<br /><br />" + 
    296                                 "<a href=\"" + node_url + "\">{/literal}{$lang.node_page}{literal}</a></div>"; 
     296                                "<a href=\"" + node_url + "\">{/literal}{$lang.node_page}{literal}</a>"; 
     297                        var this_node = selected[0].getAttribute("id"); 
     298                        if(this_node != node_id) { 
     299                                html = html + "<br /><a href=\"\" onclick=\"javascript: t = window.open('?page=nodes&subpage=plot_link&a_node="+ selected[0].getAttribute("id") +"&b_node="+ node_id +"', 'popup_plot_link', 'width=600,height=450,toolbar=0,resizable=1,scrollbars=1'); t.focus(); return false;\">{/literal}{$lang.plot}{literal}</a></div>"; 
     300                        } else { 
     301                                html = html + "</div>"; 
     302                        } 
    297303                        var marker = createMarker(point, html, icon); 
    298304                        markers_t.push(marker); 
Note: See TracChangeset for help on using the changeset viewer.