Permalink
Browse files

Added missing selector

  • Loading branch information...
1 parent 60bd3e9 commit a1af5f53b4d879a0398470cb3ab126837cc33c76 @den-plugins den-plugins committed Dec 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/tasks/index.html.erb
@@ -23,15 +23,15 @@ $(function(){
getData();
}
else
- $("loading").remove();
+ $("#loading").remove();
}
})
function getData(){
//console.log("Started " + count);
alert("Start Ajax " + count + " call.");
$.get('/increment?task=' + count, function(data){
- $("<tr></tr>").html(data.task).appendTo("table");
+ $("<tr></tr>").html(data.task).insertBefore("#loading");
//console.log("Finished " + data.task);
});
// Hi Stef :p

0 comments on commit a1af5f5

Please sign in to comment.