added internal links on click on maps
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user