Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit 7a69e9b

Browse files
author
Joshua Smith
committed
Fix a few small bugs with gestures
1 parent a175485 commit 7a69e9b

3 files changed

Lines changed: 27 additions & 17 deletions

File tree

index.html

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,29 +107,15 @@ <h2>Other</h2>
107107
</section>
108108

109109
<section role="region" id="welcome"
110-
data-swipe-right="sidebar" data-swipe-right-id="welcome" data-swipe-right-state="open"
111-
data-swipe-left="sidebar" data-swipe-left-id="welcome" data-swipe-left-state="close">
110+
data-swipe-right="sidebar" data-swipe-right-id="welcome" data-swipe-right-state="open" data-swipe-right-only="current"
111+
data-swipe-left="sidebar" data-swipe-left-id="welcome" data-swipe-left-state="close" data-swipe-left-only="current">
112112
<header>
113113
<button data-click="sidebar" data-click-id="welcome" class="drawerEnabled"><span class="icon icon-menu"></span></button>
114114
<menu type="toolbar">
115115
<button data-click="nav" data-click-location="add"><span class="icon icon-create"></span></button>
116116
</menu>
117117
<h1 class="firetext icon-">firetext</h1>
118118
</header>
119-
<div role="edit" data-type="edit" id="welcome-edit-mode">
120-
<section>
121-
<header>
122-
<menu type="toolbar">
123-
<button data-click="editDocs">Done</button>
124-
</menu>
125-
<h1>Edit docs</h1>
126-
</header>
127-
</section>
128-
<menu id="selectButtons">
129-
<button data-click="selectAll">Select all</button>
130-
<button data-click="delete" class="danger">Delete selected</button>
131-
</menu>
132-
</div>
133119
<div role="main" class="header-only">
134120
<article data-type="list" class="docsList" id="welcome-docs-list">
135121
<div id="welcome-recents-area">
@@ -148,6 +134,21 @@ <h2>Documents on Dropbox</h2>
148134
</div>
149135
</section>
150136

137+
<div role="edit" data-type="edit" id="welcome-edit-mode">
138+
<section>
139+
<header>
140+
<menu type="toolbar">
141+
<button data-click="editDocs">Done</button>
142+
</menu>
143+
<h1>Edit docs</h1>
144+
</header>
145+
</section>
146+
<menu id="selectButtons">
147+
<button data-click="selectAll">Select all</button>
148+
<button data-click="delete" class="danger">Delete selected</button>
149+
</menu>
150+
</div>
151+
151152
<section role="dialog" id="add">
152153
<header>
153154
<button data-click="navBack"><span class="icon icon-back"></span></button>

scripts/firetext.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,14 @@ function processActions(eventAttribute, target) {
929929
}
930930
}
931931
}
932+
933+
// Check to see if it has the right class
934+
if (target.getAttribute(eventAttribute+'-only')) {
935+
if (!target.classList.contains(target.getAttribute(eventAttribute+'-only'))) {
936+
return;
937+
}
938+
}
939+
932940
var calledFunction = target.getAttribute(eventAttribute);
933941
if (calledFunction == 'loadToEditor') {
934942
loadToEditor(target.getAttribute(eventAttribute + '-directory'), target.getAttribute(eventAttribute + '-filename'), target.getAttribute(eventAttribute + '-filetype'), target.getAttribute(eventAttribute + '-location'));

style/night.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@
7171

7272
/* Input areas */
7373
.night fieldset {
74-
background: #2c2c2c;
74+
background-color: #2c2c2c;
7575
color: #dfdfdf;
7676
border-color: transparent;
7777
}
7878

7979
.night fieldset input,
8080
.night fieldset select {
8181
color: #dfdfdf;
82+
background-color: #2c2c2c;
8283
}
8384

8485
.night fieldset legend.action:after {

0 commit comments

Comments
 (0)