diff --git a/static/script.js b/static/script.js index 3de547e..1aa6db4 100644 --- a/static/script.js +++ b/static/script.js @@ -9,7 +9,7 @@ var addUrlParam = function (url, key, val) { }; $(function () { - $('a[href-post]').click(function (e) { + $(document).on('click', 'a[href-post]', function (e) { e.preventDefault(); var form = document.createElement('form'); diff --git a/views/footer.ejs b/views/footer.ejs index 1879604..94cc3df 100644 --- a/views/footer.ejs +++ b/views/footer.ejs @@ -7,6 +7,6 @@ - +