diff --git a/hourglass/client/main/main.css b/hourglass/client/main/main.css index bd45f8f..f7a0c28 100644 --- a/hourglass/client/main/main.css +++ b/hourglass/client/main/main.css @@ -383,6 +383,10 @@ input { pointer-events: none; } +.sideFilter span { + pointer-events: none; +} + .sideClassName { width: 50%; padding-left: 5%; diff --git a/hourglass/client/menus/menus.js b/hourglass/client/menus/menus.js index 084f831..12de451 100644 --- a/hourglass/client/menus/menus.js +++ b/hourglass/client/menus/menus.js @@ -101,10 +101,7 @@ Template.sidebarMenuPlate.events({ Session.set("classDisp", array); }, 'click .sideFilter' (event) { - var div = event.target; - while (div.getAttribute("type") === null) div = div.parentNode; - var type = div.getAttribute("type"); - + var type = event.target.getAttribute("type"); var array = Session.get("typeFilter"); if (array.indexOf(type) !== -1) { array.splice(array.indexOf(type), 1); diff --git a/hourglass/client/mobile/mobile.css b/hourglass/client/mobile/mobile.css index f1b4e06..a1f913b 100644 --- a/hourglass/client/mobile/mobile.css +++ b/hourglass/client/mobile/mobile.css @@ -51,6 +51,7 @@ } .mClassContainer { + opacity: 0; border-bottom: 1px solid #AAA; position: relative; } @@ -298,6 +299,20 @@ display: none; } +#mDisableFilter { + font-weight: 200; + font-size: 90%; + margin-left: 30%; + padding: 3%; + + background-color: rgba(255,255,255,0.2); + + display: none; + line-height: normal; + pointer-events: all; + z-index: 2; +} + #mTypeFilterWrapper { margin-top: 0; } @@ -348,4 +363,10 @@ #mSettings h3 { padding: 0; +} + +.mNoneText { + font-weight: 300; + font-style: italic; + padding: 5%; } \ No newline at end of file diff --git a/hourglass/client/mobile/mobile.html b/hourglass/client/mobile/mobile.html index 665622e..44bc978 100644 --- a/hourglass/client/mobile/mobile.html +++ b/hourglass/client/mobile/mobile.html @@ -12,12 +12,14 @@ {{#each myWork}} {{> mobileClass}} {{/each}} +