Skip to content
Permalink
Browse files

Tutorial part 9

  • Loading branch information...
Alex Young
Alex Young committed Jan 24, 2013
1 parent 8d88095 commit 0491ad6e7de28ccfe0cab59138a93c469a3f2a7e
@@ -1,2 +1,27 @@
#main { padding-left: 0; height: 100% }
#sign-in-container, #signed-in-container { display: none }
li.active { font-weight: bold }
h1 { margin: 0 0 10px 0; padding: 0; text-align: center }

.main-left-col { height: 100%; position: fixed; padding-top: 10px; box-shadow: inset -1px 0 3px #000; overflow: auto; background-color: #999}

.left-nav { list-style-type: none; margin: 0; padding: 0 }
.left-nav li a { display: block; text-shadow: 1px 1px #000; color: #fff; padding: 10px; width: 100% }
.left-nav li.active a { background-color: #fff; color: #333; text-shadow: none; font-weight: bold }
.left-nav li a:hover { text-decoration: none; background-color: #fff; color: #333; text-shadow: none; font-weight: bold }

.main-right-col { margin-left: 16.5%; margin-top: 10px }

#top-nav { margin-bottom: 10px; padding-bottom: 10px }
#list-editor { display: none; }

#add-task form, .task { padding: 5px; margin: 0 0 5px 0 }
#add-task input[name="title"] { width: 80% }

#task-list { margin: 0; padding: 0; list-style-type: none }
.task { vertical-align: middle }
.task { padding: 8px; margin: 0 0 5px 0; }
.task.active { border: 1px solid #049cdb }
.task .notes { color: #888 }
.task input { margin-right: 3px }

.completed { text-decoration: line-through; }

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
@@ -4,6 +4,7 @@
<title>bTask</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="js/lib/require.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
@@ -4,9 +4,10 @@ define([
, 'views/auth'
, 'views/lists/menu'
, 'collections/tasklists'
, 'collections/tasks'
],

function(ApiManager, AppView, AuthView, ListMenuView, TaskLists) {
function(ApiManager, AppView, AuthView, ListMenuView, TaskLists, Tasks) {
var App = function() {
this.views.app = new AppView();
this.views.app.render();
@@ -25,7 +26,7 @@ function(ApiManager, AppView, AuthView, ListMenuView, TaskLists) {
var self = this;
this.apiManager = new ApiManager(this);
this.apiManager.on('ready', function() {
self.collections.lists.fetch({ data: { userId: '@me' }, success: function(res) {
self.collections.lists.fetch({ data: { userId: '@me' }, success: function(collection, res, req) {
self.views.listMenu.render();
}});
});
@@ -0,0 +1,8 @@
define(['models/task'], function(Task) {
var Tasks = Backbone.Collection.extend({
model: Task,
url: 'tasks'
});

return Tasks;
});
@@ -125,7 +125,7 @@ define(['config'], function(config) {
} else {
result = res;
}
options.success(result, true, request);

This comment has been minimized.

Copy link
@thompsonson

thompsonson Sep 30, 2013

I have had to revert this to get an output...

options.success(model, result, request);
}
});
};
Oops, something went wrong.

0 comments on commit 0491ad6

Please sign in to comment.
You can’t perform that action at this time.