Browse Source

Fix post event binding

pull/6/head
Menci 8 years ago
parent
commit
73c401e5a1
  1. 2
      static/script.js
  2. 2
      views/footer.ejs

2
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');

2
views/footer.ejs

@ -7,6 +7,6 @@
<script src="/libs/semantic-ui/semantic.min.js"></script>
<script src="/libs/Chart.js/Chart.bundle.min.js"></script>
<script src="/script.js?20170708"></script>
<script src="/script.js?20170710"></script>
</body>
</html>

Loading…
Cancel
Save