Changeset 171


Ignore:
Timestamp:
09/18/2006 08:20:21 PM (6 years ago)
Author:
cirrus
Message:

Fix: Added a check in the line of sight link in node description.

File:
1 edited

Legend:

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

    r170 r171  
    295295                                "{/literal}{$lang.clients}{literal}: " + node_clients + "<br /><br />" + 
    296296                                "<a href=\"" + node_url + "\">{/literal}{$lang.node_page}{literal}</a>"; 
     297                        if(selected[0]) { 
    297298                        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>"; 
     299                                if(this_node != node_id) { 
     300                                        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>"; 
     301                                } 
    300302                        } else { 
    301303                                html = html + "</div>"; 
Note: See TracChangeset for help on using the changeset viewer.