Skip to content

Commit

Permalink
fix task update problem in task list
Browse files Browse the repository at this point in the history
Conflicts:

	app/assets/javascripts/task.js
  • Loading branch information
liufengyun authored and ari committed Apr 1, 2012
1 parent e510cad commit 5889426
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/assets/javascripts/task.js
Expand Up @@ -6,9 +6,12 @@
function loadTask(id) {
if (window.taskTimer) window.taskTimer.destroy();

jQuery.get("/tasks/edit/" + id + "?format=js", {}, function(data) {
jQuery.getJSON("/tasks/edit/" + id, function(data) {
var response = jQuery(data.html);
jQuery("#task").fadeOut();
jQuery("#task").html(data);
jQuery("#task").html(response.children("form"));
jQuery.each(response.filter("script"), function(idx, val) { eval(val.text); } );
document.title = "Task " + data.task_num + ":" + data.task_name + " - <%= $CONFIG[:productName] %>";
jQuery("#task").fadeIn('slow');
init_task_form();
}, "html");
Expand Down

0 comments on commit 5889426

Please sign in to comment.