Permalink
Browse files

Updated to pass gjslint

  • Loading branch information...
1 parent b612300 commit 160549016ca3bbc36a78e2a9b0a4a28d14697b25 @blackjk3 blackjk3 committed Apr 12, 2012
Showing with 10 additions and 12 deletions.
  1. +3 −3 apps/tasks/index.html
  2. +6 −8 apps/tasks/js/tasks.js
  3. +1 −1 apps/tasks/style/tasks.css
View
@@ -28,16 +28,16 @@ <h1 id="task-title" class="label" data-l10n-id="task">Task</h1>
</header>
<ul class="tableView">
<li class="singleline">
- <span class="lbl" data-l10n-id="name">Name</span>
+ <span class="view-task-lbl" data-l10n-id="name">Name</span>
<input type="text" name="task.name" placeholder="New task" />
<p></p>
</li>
<li class="multiline">
- <span class="lbl" data-l10n-id="description">Description</span>
+ <span class="view-task-lbl" data-l10n-id="description">Description</span>
<textarea name="task.desc"></textarea>
</li>
<li>
- <span class="lbl" data-l10n-id="done">Done</span>
+ <span class="view-task-lbl" data-l10n-id="done">Done</span>
<label>
<input type="checkbox" name="task.done"/>
<span></span>
View
@@ -36,7 +36,7 @@ var TaskList = {
},
init: function() {
-
+
var self = this;
taskDataList.forEach(function(task) {
@@ -127,7 +127,6 @@ var EditTask = {
switch (input.id) {
case 'task-save':
-
if (this.updateCurrent()) {
TaskList.refresh();
} else {
@@ -166,14 +165,13 @@ var EditTask = {
this.descInput.value = task.desc;
this.doneInput.checked = task.done;
- if(task.id) {
- this.taskTitle.innerHTML = "Edit Task";
- this.deleteElement.style.display = "block";
+ if (task.id) {
+ this.taskTitle.innerHTML = 'Edit Task';
+ this.deleteElement.style.display = 'block';
} else {
- this.taskTitle.innerHTML = "New Task";
- this.deleteElement.style.display = "none";
+ this.taskTitle.innerHTML = 'New Task';
+ this.deleteElement.style.display = 'none';
}
-
},
updateCurrent: function() {
@@ -119,7 +119,7 @@ li.delete > a {
box-shadow: 0 1px 0px rgba(0,0,0,0.75);
}
-.lbl {
+.view-task-lbl {
padding: 0.3em 0 0 0.5em;
}

0 comments on commit 1605490

Please sign in to comment.