Skip to content

Commit cf9c977

Browse files
authored
Merge pull request #10 from dmison/add-listener-wrong-spot
on click listener added in submit handler
2 parents 02bb88d + ff34782 commit cf9c977

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

public/script.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ function ready () {
2121
var formData = new FormData(form);
2222

2323
postBlogposts(formActionUrl, formData);
24-
25-
$('nav a').on('click', setActiveLink);
24+
2625
});
26+
27+
$('nav a').on('click', setActiveLink);
28+
2729
}
2830

2931
/****

0 commit comments

Comments
 (0)