Merge pull request #202 from RishabhJain96/master

Fixed Hash Override in Modal
This commit is contained in:
Connor Sears 2013-09-22 17:28:37 -07:00
Родитель c5d9dc464c f74025e294
Коммит c435111f15
2 изменённых файлов: 8 добавлений и 2 удалений

5
dist/ratchet.js поставляемый
Просмотреть файл

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

Просмотреть файл

@ -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)
}
});
}();