Browse Source

modalToggle.hash add check contains slash

pull/597/head
huang.xinghui 11 years ago
parent
commit
69dbd39127
  1. 2
      js/modals.js

2
js/modals.js

@ -24,7 +24,7 @@
var getModal = function (event) { var getModal = function (event) {
var modalToggle = findModals(event.target); var modalToggle = findModals(event.target);
if (modalToggle && modalToggle.hash) { if (modalToggle && modalToggle.hash && modalToggle.hash.indexOf('/') < 0) {
return document.querySelector(modalToggle.hash); return document.querySelector(modalToggle.hash);
} }
}; };

Loading…
Cancel
Save