socialforge/app/views/organizations/join_projects.js.erb

6 lines
407 B
Plaintext
Raw Normal View History

$("#homepageLeftMenuProjects").html("");
$("#homepageLeftMenuProjects").append("<ul>");
$("#homepageLeftMenuProjects").append("<%= escape_javascript(render :partial => 'layouts/org_projects',
:locals=>{:projects=>@organization.projects.reorder('created_at').uniq.limit(5),:org_id=>@organization.id,:page=> 1}) %>");
2015-12-05 14:34:16 +08:00
$("#homepageLeftMenuProjects").append("</ul>");
$("#homepageLeftMenuProjects").show();