Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added missing selector

  • Loading branch information...
commit a1af5f53b4d879a0398470cb3ab126837cc33c76 1 parent 60bd3e9
@den-plugins den-plugins authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/tasks/index.html.erb
View
4 app/views/tasks/index.html.erb
@@ -23,7 +23,7 @@ $(function(){
getData();
}
else
- $("loading").remove();
+ $("#loading").remove();
}
})
@@ -31,7 +31,7 @@ $(function(){
//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
Please sign in to comment.
Something went wrong with that request. Please try again.