From dd3a8c2e99918af57d1bd11a396802a786736295 Mon Sep 17 00:00:00 2001 From: DatDamnZotz Date: Mon, 21 Dec 2020 11:19:11 -0700 Subject: [PATCH] Code cleanup --- src/cljs/orcpub/dnd/e5/views.cljs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/cljs/orcpub/dnd/e5/views.cljs b/src/cljs/orcpub/dnd/e5/views.cljs index 1cb18844..3c33eb30 100644 --- a/src/cljs/orcpub/dnd/e5/views.cljs +++ b/src/cljs/orcpub/dnd/e5/views.cljs @@ -3575,7 +3575,6 @@ (defn character-page [] (let [expanded? (r/atom false)] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. (fn [{:keys [id] :as arg}] (let [id (js/parseInt id) frame? (= "true" (get-in arg [:query "frame"])) @@ -4960,7 +4959,6 @@ (defn feat-builder [] (let [feat @(subscribe [::feats/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.m-b-20.flex.flex-wrap [feat-input-field @@ -5344,7 +5342,6 @@ classes @(subscribe [::classes/classes]) class-map @(subscribe [::classes/class-map]) mobile? @(subscribe [:mobile?])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.flex-wrap [:div.m-b-20.flex-grow-1 @@ -5648,7 +5645,6 @@ class-key (get subclass :class) classes @(subscribe [::classes/classes]) mobile? @(subscribe [:mobile?])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.flex-wrap [:div.m-b-20 @@ -5792,7 +5788,6 @@ race @(subscribe [::races/race race-key]) races @(subscribe [::races/races]) mobile? @(subscribe [:mobile?])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.flex-wrap [:div.m-b-20 @@ -5918,7 +5913,6 @@ (defn race-builder [] (let [race @(subscribe [::races/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.m-b-20.flex.flex-wrap [race-input-field @@ -6068,7 +6062,6 @@ (defn background-builder [] (let [background @(subscribe [::bg/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.m-b-20.flex.flex-wrap [background-input-field @@ -6101,7 +6094,6 @@ (defn selection-builder [] (let [selection @(subscribe [::selections/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [selection-input-field @@ -6148,7 +6140,6 @@ (defn language-builder [] (let [language @(subscribe [::langs/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [language-input-field @@ -6170,7 +6161,6 @@ (defn boon-builder [] (let [boon @(subscribe [::classes/boon-builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [boon-input-field @@ -6192,7 +6182,6 @@ (defn invocation-builder [] (let [invocation @(subscribe [::classes/invocation-builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [invocation-input-field @@ -6237,7 +6226,6 @@ actions legendary-actions] :as monster} @(subscribe [::monsters/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [monster-input-field @@ -6930,7 +6918,6 @@ (defn encounter-builder [] (let [{:keys [creatures] :as encounter} @(subscribe [::encounters/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [encounter-input-field @@ -6957,7 +6944,6 @@ (defn spell-builder [] (let [{:keys [:level :school] :as spell} @(subscribe [::spells/builder-item])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [spell-input-field @@ -7044,7 +7030,6 @@ @(subscribe [::mi/builder-item]) item-types @(subscribe [::mi/item-types]) item-rarities @(subscribe [::mi/rarities])] - ;(js/window.scrollTo 0,0) ;//Force a scroll to top of page. [:div.p-20.main-text-color [:div.flex.w-100-p.flex-wrap [:div.flex-grow-1.m-b-20