Skip to content

Commit

Permalink
finish ajax assignment loading
Browse files Browse the repository at this point in the history
  • Loading branch information
symbyte committed May 21, 2015
1 parent 43a389c commit 4770bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UCOHomeworkTool/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ActionResult Assignment(int id)
database.Entry(prob).Collection("Givens").Load();
database.Entry(prob).Collection("Responses").Load();
}
return View(problemsModel.ToList());
return PartialView(problemsModel.ToList());
}
}
public ActionResult _Sidebar()
Expand Down
1 change: 1 addition & 0 deletions UCOHomeworkTool/Views/Home/_Sidebar.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
}).done(function (result)
{
$("#pageContent").html(result);
$(".nav-sidebar .active").removeClass("active");
$(self).addClass("active");
})
});
Expand Down

0 comments on commit 4770bed

Please sign in to comment.