Commit 6a184422 authored by Sven Rhinow's avatar Sven Rhinow

open layer with rel or class attributes (openlayer) in <a>-element

parent 6b5a46d3
......@@ -87,11 +87,13 @@
}.bind(this));
}
//add event of all links with rel="openlayer"
//add event of all links with rel="openlayer" or class="openlayer"
if(this.mkLinkEvents)
{
var links = $$("a").filter(function(el) {
return el.rel && el.rel.test(/^openlayer/i);
if( el.rel && el.rel.test(/^openlayer/i) ) return true;
else if ( el.hasClass('openlayer') ) return true;
else false;
});
links.each(function(item,index)
......
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