Browse Source

Merge pull request #202 from RishabhJain96/master

Fixed Hash Override in Modal
pull/189/merge
Connor Sears 11 years ago
parent
commit
c435111f15
  1. 5
      dist/ratchet.js
  2. 5
      lib/js/modals.js

5
dist/ratchet.js vendored

@ -28,7 +28,10 @@
window.addEventListener('touchend', function (event) {
var modal = getModal(event);
if (modal) modal.classList.toggle('active');
if (modal) {
modal.classList.toggle('active');
event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
}
});
}();/* ----------------------------------
* POPOVER v1.0.0

5
lib/js/modals.js

@ -20,6 +20,9 @@
window.addEventListener('touchend', function (event) {
var modal = getModal(event);
if (modal) modal.classList.toggle('active');
if (modal) {
modal.classList.toggle('active');
event.preventDefault(); // prevents rewriting url (apps can still use hash values in url)
}
});
}();
Loading…
Cancel
Save