Commit 97c7374b authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed hardcoded paths

parent 61b1083a
...@@ -275,7 +275,7 @@ function parse_list(res){ ...@@ -275,7 +275,7 @@ function parse_list(res){
function popup_message(marker){ function popup_message(marker){
var msg = "<div><img class='pimg' alt='n/a' src='models/"+marker[0].name+"/thumb.jpeg' index='"+marker[0].index+"' ></img></div>"; var msg = "<div><img class='pimg' alt='n/a' src='"+SETTINGS.basepath+"/"+marker[0].name+"/thumb.jpeg' index='"+marker[0].index+"' ></img></div>";
markers.forEach(function(c,i){ markers.forEach(function(c,i){
if (marker[0].lat==c[0].lat){ if (marker[0].lat==c[0].lat){
...@@ -367,7 +367,7 @@ function register_row_events(elem){ ...@@ -367,7 +367,7 @@ function register_row_events(elem){
}); });
var j = $(this).attr("index"); var j = $(this).attr("index");
$(".pimg").attr("src","models/"+markers[j][0].name+"/thumb.jpeg"); $(".pimg").attr("src",SETTINGS.basepath+"/"+markers[j][0].name+"/thumb.jpeg");
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment