Projet

Général

Profil

Révision 72ecbd21

Ajouté par Marc Souviron il y a plus de 10 ans

amélioration mineure

Voir les différences:

js/pano.js
1 1
if (img_prefix == undefined) var img_prefix = 'http://pano.tetaneutral.net/data/tsf2/vpongnian/tiles/ttn_mediatheque/mediatheque_70';
2
if (title == undefined) var title = 'point non défini';
2 3
if (to_cap == undefined) var to_cap = 0;
3 4
if (to_ele == undefined) var to_ele = 0;
4 5
if (to_zoom == undefined) var to_zoom = 0;
......
729 730
    do_delete.onclick = function() {delete_ref_point(insrt)};
730 731
    do_insert.onclick = function() {insert_ref_point(insrt, e.pageX-canvas_pos.x, e.pageY-canvas_pos.y)};
731 732
    var res = zm.get_cap_ele(pos_x, zm.im.height/2 - pos_y);
732
    show_cap.onclick = function() {window.open("show_capline.php?cap="+res.cap+'&org_lat='+pt_lat+'&org_lon='+pt_lon)};
733
    show_cap.onclick = function() {window.open('show_capline.php?title='+encodeURIComponent(title)+'&cap='+res.cap+'&org_lat='+pt_lat+'&org_lon='+pt_lon)};
733 734
    return false;
734 735
}
735 736

  

Formats disponibles : Unified diff