Display project analytics in modal box

This commit is contained in:
Frederic Guillot
2017-01-08 14:00:51 -05:00
parent ea2cbb76d5
commit b3a450bace
23 changed files with 124 additions and 108 deletions

View File

@@ -26,4 +26,14 @@
KB.onClick('.js-modal-close', function () {
KB.modal.close();
});
KB.onClick('.js-modal-replace', function (e) {
var link = getLink(e);
if (KB.modal.isOpen()) {
KB.modal.replace(link);
} else {
window.location.href = link;
}
});
}());