Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a grammar error. #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/ng-todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 ng-bind="title"></h1>
</ul>
</section>
<footer id="footer">
<span id="todo-count"><strong ng-bind="remaining"></strong> <span ng-bind-template="{{remaining < 1 ? 'item' : 'items'}} left"></span></span>
<span id="todo-count"><strong ng-bind="remaining"></strong> <span ng-bind-template="{{remaining < 2 ? 'item' : 'items'}} left"></span></span>
<ul id="filters">
<li>
<a ng-class="{selected: selected('')}" href="#/" ng-click="filter('')">All</a>
Expand Down
36 changes: 18 additions & 18 deletions app/todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1>todos</h1>
<input class="edit" value="<%- title %>">
</script>
<script type="text/template" id="stats-template">
<span id="todo-count"><strong><%= remaining %></strong> <%= remaining === 1 ? 'item' : 'items' %> left</span>
<span id="todo-count"><strong><%= remaining %></strong> <%= remaining <= 1 ? 'item' : 'items' %> left</span>
<ul id="filters">
<li>
<a class="selected" href="#/">All</a>
Expand All @@ -54,24 +54,24 @@ <h1>todos</h1>
<script src="../sea-modules/seajs/seajs/2.2.0/sea.js"></script>
<script>

// Set configuration
seajs.config({
base: "../sea-modules/",
alias: {
"$": "jquery/jquery/1.10.1/jquery.js",
"underscore": "gallery/underscore/1.4.4/underscore.js",
"backbone": "gallery/backbone/1.0.0/backbone.js"
}
});
// Set configuration
seajs.config({
base: "../sea-modules/",
alias: {
"$": "jquery/jquery/1.10.1/jquery.js",
"underscore": "gallery/underscore/1.4.4/underscore.js",
"backbone": "gallery/backbone/1.0.0/backbone.js"
}
});

// For development
if (location.href.indexOf("?dev") > 0) {
seajs.use("../static/todo/src/main");
}
// For production
else {
seajs.use("examples/todo/1.0.0/main");
}
// For development
if (location.href.indexOf("?dev") > 0) {
seajs.use("../static/todo/src/main");
}
// For production
else {
seajs.use("examples/todo/1.0.0/main");
}
</script>

</body>
Expand Down