This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.table-hover tbody tr:hover td, | |
tbody tr:hover th { | |
background-color: #FFFFAD; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML --> | |
<div> | |
<div> | |
<h3>Tehtävälista:</h3> | |
<ul data-bind="foreach: todos, visible: todos().length > 0"> | |
<li> | |
<label data-bind="value: title" /> | |
<a href="#" data-bind="click: $parent.removeTodo">Poista</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PUT api/Todo/5 | |
public HttpResponseMessage PutTodo(int id, Todo todo) | |
{ | |
if (ModelState.IsValid && id == todo.TodoId) | |
{ | |
db.Entry(todo).State = EntityState.Modified; | |
try | |
{ | |
db.SaveChanges(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){if(typeof%20VisualEvent!='undefined'){if(document.getElementById('Event_display')){VisualEvent.fnClose();}else{VisualEvent.fnInit();}}else{var%20n=document.createElement('script');n.setAttribute('language','JavaScript');n.setAttribute('src','http://www.sprymedia.co.uk/design/event/media/js/event-loader.js');document.body.appendChild(n);}})();; |