Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
updated to jump to top of the page when switching posts
Browse files Browse the repository at this point in the history
  • Loading branch information
yogthos committed Aug 28, 2014
1 parent 706c8b9 commit f4eada3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project.clj
Expand Up @@ -74,5 +74,5 @@
[lein-environ "1.0.0"]
[lein-cljsbuild "1.0.3"]
[lein-ancient "0.5.0"]
[lein-asset-minifier "0.1.6"]]
[lein-asset-minifier "0.2.0"]]
:min-lein-version "2.0.0")
1 change: 1 addition & 0 deletions src-cljs/yuggoth/util.cljs
Expand Up @@ -73,6 +73,7 @@
(defn set-current-post! [post]
(session/put! :post post)
(set-recent!)
(js/scroll 0 0)
(GET "/tags" {:handler #(session/put! :tags %)}))

(defn fetch-post [id handler]
Expand Down

0 comments on commit f4eada3

Please sign in to comment.