Commit a98c924d by David Ormsbee

Merge pull request #1371 from MITx/victor/cohorts-tweaks

make links look like links
parents 0a1f5bc1 39a9c475
...@@ -83,10 +83,11 @@ var CohortManager = (function ($) { ...@@ -83,10 +83,11 @@ var CohortManager = (function ($) {
cohort_id = el.data('id'); cohort_id = el.data('id');
state = state_detail; state = state_detail;
render(); render();
return false;
} }
function add_to_cohorts_list(item) { function add_to_cohorts_list(item) {
var li = $('<li><a></a></li>'); var li = $('<li><a href="#"></a></li>');
$("a", li).text(item.name) $("a", li).text(item.name)
.data('href', url + '/' + item.id) .data('href', url + '/' + item.id)
.addClass('link') .addClass('link')
......
...@@ -61,7 +61,7 @@ def get_threads(request, course_id, discussion_id=None, per_page=THREADS_PER_PAG ...@@ -61,7 +61,7 @@ def get_threads(request, course_id, discussion_id=None, per_page=THREADS_PER_PAG
#if the course-user is cohorted, then add the group id #if the course-user is cohorted, then add the group id
group_id = get_cohort_id(user,course_id) group_id = get_cohort_id(user, course_id)
if group_id: if group_id:
default_query_params["group_id"] = group_id default_query_params["group_id"] = group_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment