浏览代码

Let customize target attribute for URL HotSpots

Sometimes it is needed to open HotSpot link right in the same frame ("_self") or in a named one.
pull/640/merge
Hrumpa 6 年前
committed by Matthew Petroff
父节点
当前提交
ba35ea8ffe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js 查看文件

@@ -1707,7 +1707,7 @@ function createHotSpot(hs) {
} else if (hs.URL) {
a = document.createElement('a');
a.href = sanitizeURL(hs.URL);
a.target = '_blank';
a.target = hs.target ? hs.target : '_blank';
renderContainer.appendChild(a);
div.className += ' pnlm-pointer';
span.className += ' pnlm-pointer';


正在加载...
取消
保存