Commit 8a792011 authored by Brandon Satrom's avatar Brandon Satrom Committed by Pascal Hartig

updated Kendo UI to latest release (Q1 2013)

Close #503
parent 6832b054
......@@ -52,7 +52,7 @@
<script type="text/template" id="item-template">
<li data-bind="attr: { class: todoItemClass }">
<div class="view">
<input class="toggle" type="checkbox" data-bind="checked: completed">
<input class="toggle" type="checkbox" data-bind="checked: completed, events: { change: sync }">
<label data-bind="text: title, events: { dblclick: startEdit } "></label>
<button class="destroy" data-bind="click: destroy">
</button>
......@@ -62,7 +62,7 @@
</script>
<script src="../../../assets/base.js"></script>
<script src="../../../assets/jquery.min.js"></script>
<script src="js/lib/kendo.all.min.js"></script>
<script src="js/lib/kendo.web.js"></script>
<script src="js/lib/kendo.bindings.custom.js"></script>
<script src="js/lib/kendo.data.localstoragedatasource.js"></script>
<script src="js/app.js"></script>
......
......@@ -109,6 +109,9 @@ var app = app || {};
editData.set('edit', false);
this.todos.sync();
},
sync: function () {
this.todos.sync();
},
destroy: function (e) {
this.todos.remove(e.data);
this.todos.sync();
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment