Browse Source

popover update to work better with backbone

pull/253/head
connors 11 years ago
parent
commit
8bc2ba94b7
  1. 2
      dist/ratchet.js
  2. 2
      lib/js/popovers.js

2
dist/ratchet.js vendored

@ -74,7 +74,7 @@
var getPopover = function (e) { var getPopover = function (e) {
var anchor = findPopovers(e.target); var anchor = findPopovers(e.target);
if (!anchor || !anchor.hash) return; if (!anchor || !anchor.hash || (anchor.hash.indexOf("/") > 0)) return;
try { try {
popover = document.querySelector(anchor.hash); popover = document.querySelector(anchor.hash);

2
lib/js/popovers.js

@ -37,7 +37,7 @@
var getPopover = function (e) { var getPopover = function (e) {
var anchor = findPopovers(e.target); var anchor = findPopovers(e.target);
if (!anchor || !anchor.hash) return; if (!anchor || !anchor.hash || (anchor.hash.indexOf("/") > 0)) return;
try { try {
popover = document.querySelector(anchor.hash); popover = document.querySelector(anchor.hash);

Loading…
Cancel
Save