Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
4f72c6e6
Commit
4f72c6e6
authored
Feb 14, 2013
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #443 from kendo-labs/gh-pages
Remove edit state persistance in Kendo UI sample
parents
4dba8cf9
afa8269f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
labs/architecture-examples/kendo/index.html
labs/architecture-examples/kendo/index.html
+1
-1
labs/architecture-examples/kendo/js/app.js
labs/architecture-examples/kendo/js/app.js
+4
-1
No files found.
labs/architecture-examples/kendo/index.html
View file @
4f72c6e6
...
...
@@ -46,7 +46,7 @@
</section>
<div
id=
"info"
>
<p>
Double-click to edit a todo
</p>
<p>
Credits
<a
href=
"https://github.com/bsatrom"
>
Brandon Satrom
</a>
,
<a
href=
"https://github.com/burkeholland"
>
Burke Holland
</a>
&
nbs
p;
<a
href=
"https://github.com/akorchev"
>
Atanas Korchev
</a></p>
<p>
Credits
<a
href=
"https://github.com/bsatrom"
>
Brandon Satrom
</a>
,
<a
href=
"https://github.com/burkeholland"
>
Burke Holland
</a>
&
am
p;
<a
href=
"https://github.com/akorchev"
>
Atanas Korchev
</a></p>
<p>
Part of
<a
href=
"http://todomvc.com"
>
TodoMVC
</a></p>
</div>
<script
type=
"text/template"
id=
"item-template"
>
...
...
labs/architecture-examples/kendo/js/app.js
View file @
4f72c6e6
...
...
@@ -43,7 +43,6 @@ var app = app || {};
// Implementation in js/lib/kendo.data.localstoragedatasource.ds
app
.
todoData
=
new
kendo
.
data
.
extensions
.
LocalStorageDataSource
({
itemBase
:
'
todos-kendo
'
,
autoSync
:
true
,
schema
:
{
model
:
app
.
Todo
}
...
...
@@ -77,6 +76,7 @@ var app = app || {};
});
todos
.
add
(
todo
);
todos
.
sync
();
newTodo
.
val
(
''
);
},
toggleAll
:
function
()
{
...
...
@@ -106,14 +106,17 @@ var app = app || {};
}
editData
.
set
(
'
edit
'
,
false
);
this
.
todos
.
sync
();
},
destroy
:
function
(
e
)
{
this
.
todos
.
remove
(
e
.
data
);
this
.
todos
.
sync
();
},
destroyCompleted
:
function
()
{
$
.
each
(
this
.
completedTodos
(),
function
(
index
,
value
)
{
this
.
todos
.
remove
(
value
);
}.
bind
(
this
));
this
.
todos
.
sync
();
},
// Methods for retrieving filtered todos and count values
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment