imthenachoman / nSPTiles

Windows style tiles for SharePoint
http://nsptiles.js.org
MIT License
11 stars 5 forks source link

IE 11 doesn’t like mailto in window.location.href #2

Closed imthenachoman closed 8 years ago

imthenachoman commented 8 years ago

It works in Chrome but not IE. Changing to window.location makes it work for both.

// opens a tile link
var openLink = tiles.openLink = function(tile, type, url)
{
    if(type === "none") return;
    var holderID = tile.parentNode.parentNode.id;
    if(/^mailto:.*?@.*$/.test(url))
    {
           window.location.href = d; // RIGHT HERE
    }
imthenachoman commented 8 years ago

fixed in version 1.4