Pārlūkot izejas kodu

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 pirms 6 gadiem
committed by Matthew Petroff
vecāks
revīzija
ba35ea8ffe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js Parādīt failu

@@ -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';


Notiek ielāde…
Atcelt
Saglabāt