Commit 09b9f9b6 authored by Baptiste Jonglez's avatar Baptiste Jonglez

Add default values for image_cap_{min,max}

parent f6a77377
......@@ -28,8 +28,8 @@
var image_cap_min = 0;
var image_cap_max = 360;
} else {
var image_cap_min = {{ panorama.cap_min }};
var image_cap_max = {{ panorama.cap_max }};
var image_cap_min = {{ panorama.cap_min|default:0 }};
var image_cap_max = {{ panorama.cap_max|default:360 }};
};
var panorama_lat = {{ panorama.latitude }};
var panorama_lng = {{ panorama.longitude }};
......
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