Commit 29d14ba4 authored by Adrien Pavie's avatar Adrien Pavie
Browse files

Images shown in full size in other tab (clsoes #27)

parent 76b8cf96
No preview for this file type
......@@ -84,7 +84,7 @@ Feature.prototype.get = function() {
if(this._feature.getImages().count() > 0) {
var images = this._feature.getImages().get();
for(var i=0; i < images.length; i++) {
pictures.append($("<div class=\"side-content-feature-picture basic\"><img src=\""+images[i].img+"\" alt=\""+this.t("pictures.loading")+"\" /></div>").hide());
pictures.append($("<div class=\"side-content-feature-picture basic\"><a href=\""+images[i].img+"\" title=\""+this.t("pictures.show.fullsize")+"\" target=\"blank\"><img src=\""+images[i].img+"\" alt=\""+this.t("pictures.loading")+"\" /></a></div>").hide());
}
}
......
......@@ -61,6 +61,8 @@ en:
pictures:
loading: Loading image...
show:
fullsize: See this picture in full size
features:
name: Feature
......
......@@ -54,6 +54,8 @@ fr:
osm: Voir sur OpenStreetMap
pictures:
loading: Chargement de l'image...
show:
fullsize: Agrandir cette image
features:
name: Objet
tags: Tags
......
......@@ -8,60 +8,58 @@ var yaml = require("js-yaml");
var OLU = require("../src/OLU");
var ftDetails = {
"details": {
"major": {
"opening_hours": {
"type": "hours",
"img": "clock",
"name": "Opening hours"
},
"contact:website": {
"type": "link",
"img": "web",
"name": "Website"
},
"website": {
"type": "link",
"img": "web",
"name": "Website"
},
"contact:email": {
"type": "email",
"img": "email",
"name": "E-mail"
},
"email": {
"type": "email",
"img": "email",
"name": "E-mail"
},
"contact:phone": {
"type": "text",
"img": "phone",
"name": "Phone"
},
"phone": {
"type": "text",
"img": "phone",
"name": "Phone"
},
"wheelchair": {
"type": "text_bind",
"img": "wheelchair",
"text_bind": { "yes": "Fully accessible", "limited": "Limited access", "no": "Not accessible" }
}
"major": {
"opening_hours": {
"type": "hours",
"img": "clock",
"name": "Opening hours"
},
"minor": {
"cuisine": {
"type": "text",
"img": "cuisine",
"name": "Cuisine"
},
"description": {
"type": "text",
"img": "info",
"name": "More details"
}
"contact:website": {
"type": "link",
"img": "web",
"name": "Website"
},
"website": {
"type": "link",
"img": "web",
"name": "Website"
},
"contact:email": {
"type": "email",
"img": "email",
"name": "E-mail"
},
"email": {
"type": "email",
"img": "email",
"name": "E-mail"
},
"contact:phone": {
"type": "text",
"img": "phone",
"name": "Phone"
},
"phone": {
"type": "text",
"img": "phone",
"name": "Phone"
},
"wheelchair": {
"type": "text_bind",
"img": "wheelchair",
"text_bind": { "yes": "Fully accessible", "limited": "Limited access", "no": "Not accessible" }
}
},
"minor": {
"cuisine": {
"type": "text",
"img": "cuisine",
"name": "Cuisine"
},
"description": {
"type": "text",
"img": "info",
"name": "More details"
}
}
};
......
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