added internal links on click on maps

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-04 17:57:58 +01:00
parent dd6e1563c0
commit 3ca82e14cb
4 changed files with 140 additions and 121 deletions
+8
View File
@@ -242,6 +242,7 @@ $(document).ready(function() {
.addClass("map")
.attr('overlay', map.over)
.attr('debug', _SETTINGS.debug ? map.debug : _SETTINGS.debug)
.attr('link', typeof map.link !== "undefined" ? map.link : null)
.css({
"left":map.x+"mm",
"top":map.y+"mm",
@@ -260,6 +261,13 @@ $(document).ready(function() {
.parents('.page').find('.overlay')
.css({'background-image':'none'});
})
.bind("click", function(e){
var link = $(this).attr('link');
if (link) {
_current_dp_key = parseInt(link);
changePages();
}
})
);
if(typeof map.repere !== "undefined"){
$p.append(