Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename add screen to edit screen

  • Loading branch information...
commit d73cf42b981630ac5a300448f3d553ebafa31913 1 parent 91939f4
@barnardb authored
View
6 index.html
@@ -29,12 +29,12 @@
<div class="deck screen">
<h2>Manage Deck: <span class="deck name"></span></h2>
<a class="flash">Back to flash screen…</a>
- <a class="add">Add new words…</a>
+ <a class="edit">Add new words…</a>
<a class="import">Bulk import cards…</a>
<h3>Words (<span class="word count"></span>)</h3>
<ul class="word list"></ul>
</div>
- <div class="add screen">
+ <div class="edit screen">
<a class="flash">Back to flash screen…</a>
<a class="deck">Back to deck management…</a>
<h2>Create Card</h2>
@@ -84,7 +84,7 @@
<script type="application/javascript" src="src/js/screens/top.js"></script>
<script type="application/javascript" src="src/js/screens/flash.js"></script>
<script type="application/javascript" src="src/js/screens/deckScreen.js"></script>
- <script type="application/javascript" src="src/js/screens/add.js"></script>
+ <script type="application/javascript" src="src/js/screens/editScreen.js"></script>
<script type="application/javascript" src="src/js/screens/importScreen.js"></script>
<script type="application/javascript" src="src/js/app.js"></script>
<script type="application/javascript">
View
6 src/css/style.css
@@ -70,7 +70,7 @@ input {
}
-.add.screen .side:after {
+.edit.screen .side:after {
content: '.';
display: block;
clear: both;
@@ -78,10 +78,10 @@ input {
visibility: hidden;
}
-.add.screen .side > div {
+.edit.screen .side > div {
float: left;
}
-.add.screen .side > div + div {
+.edit.screen .side > div + div {
margin-left: 2em;
}
View
2  src/js/app.js
@@ -1,5 +1,5 @@
function createApp() {
- var screenNames = ['top', 'flash', 'deck', 'add', 'import'],
+ var screenNames = ['top', 'flash', 'deck', 'edit', 'import'],
screens,
activeUser,
activeDeck,
View
2  src/js/screens/add.js → src/js/screens/editScreen.js
@@ -1,4 +1,4 @@
-function addScreen($screen) {
+function editScreen($screen) {
log.trace(arguments)
var $form = $screen.find('form'),
View
2  src/js/screens/flash.js
@@ -43,7 +43,7 @@ function flashScreen ($screen) {
app.activeDeck.getNextCard(function (card) {
activeCard = card
if(!card) {
- app.displayScreen('add');
+ app.displayScreen('edit');
return;
}
$card.html(card.front)
Please sign in to comment.
Something went wrong with that request. Please try again.