Skip to content

Commit

Permalink
Attach href to links to make sure they are clickable, change download…
Browse files Browse the repository at this point in the history
… precision to single digit
  • Loading branch information
verma committed May 11, 2014
1 parent 18c9c62 commit 8bae172
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src-cljs/dakait/components.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
(dom/div #js {:className "row"}
(dom/div #js {:className "col-sm-10 list-item-name"}
(if (= (:type l) "dir")
(dom/a #js {:className "target-link" :onClick (push-handler (:name l))} (:name l))
(dom/a #js {:className "target-link" :href "#" :onClick (push-handler (:name l))} (:name l))
(dom/span nil (:name l))))
(dom/div #js {:className "col-sm-2 list-item-size"} item-size))
(dom/div #js {:className "row subitem"}
Expand Down Expand Up @@ -95,8 +95,8 @@
(if-let [ds (:download-status dl)] (as-kb (:rate ds)) 0))
tb (reduce #(+ %1 (dl->bw %2)) 0 (:active downloads))
tb-str (if (< tb 1000)
(str (.toFixed tb 2) "KB/s")
(str (.toFixed (/ tb 1000) 2) "MB/s"))]
(str (.toFixed tb 1) "KB/s")
(str (.toFixed (/ tb 1000) 1) "MB/s"))]

(dom/div #js {:className "download-monitor pull-right"}
(when-not (zero? (+ dls pen))
Expand Down

0 comments on commit 8bae172

Please sign in to comment.