解决组织模块的一些bug
This commit is contained in:
parent
ef46191c80
commit
85bc9ce43d
|
@ -9,7 +9,7 @@
|
||||||
<%= form_tag(org_subfield_files_path(org_subfield, :in_org => params[:in_org]), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>
|
<%= form_tag(org_subfield_files_path(org_subfield, :in_org => params[:in_org]), :multipart => true,:remote => !ie8?,:name=>"upload_form") do %>
|
||||||
<% if params[:in_org] %>
|
<% if params[:in_org] %>
|
||||||
<div class="c_dark">
|
<div class="c_dark">
|
||||||
<input name="org_subfield_attachment_type[]" type="checkbox" value="2" class="c_dblue">软件</input> <span class="c_grey">|</span>
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="2" checked class="c_dblue">软件</input> <span class="c_grey">|</span>
|
||||||
<input name="org_subfield_attachment_type[]" type="checkbox" value="3" class="c_dblue">媒体</input> <span class="c_grey">|</span>
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="3" class="c_dblue">媒体</input> <span class="c_grey">|</span>
|
||||||
<input name="org_subfield_attachment_type[]" type="checkbox" value="4" class="c_dblue">代码</input> <span class="c_grey">|</span>
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="4" class="c_dblue">代码</input> <span class="c_grey">|</span>
|
||||||
<input name="org_subfield_attachment_type[]" type="checkbox" value="5" class="c_dblue">其他</input></a>
|
<input name="org_subfield_attachment_type[]" type="checkbox" value="5" class="c_dblue">其他</input></a>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<div class="homepageRightBanner mb5">
|
<div class="homepageRightBanner mb5" style="margin-bottom:5px;">
|
||||||
<div class="NewsBannerName">编辑文章</div>
|
<div class="NewsBannerName">编辑文章</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
|
@ -87,10 +87,10 @@
|
||||||
url: "/organizations/"+orgId + "/join_courses?" + $("#join_courses_form").serialize(),
|
url: "/organizations/"+orgId + "/join_courses?" + $("#join_courses_form").serialize(),
|
||||||
type: "post",
|
type: "post",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$.ajax({
|
// $.ajax({
|
||||||
url: "/organizations/" + orgId + "/search_courses?name=" + $("input[name='courses']").val().trim(),
|
// url: "/organizations/" + orgId + "/search_courses?name=" + $("input[name='courses']").val().trim(),
|
||||||
type: "get"
|
// type: "get"
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,10 +83,10 @@
|
||||||
url: "/organizations/"+orgId + "/join_projects?" + $("#join_projects_form").serialize(),
|
url: "/organizations/"+orgId + "/join_projects?" + $("#join_projects_form").serialize(),
|
||||||
type: "post",
|
type: "post",
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
$.ajax({
|
// $.ajax({
|
||||||
url: "/organizations/" + orgId + "/search_projects?name=" + $("input[name='projects']").val().trim(),
|
// url: "/organizations/" + orgId + "/search_projects?name=" + $("input[name='projects']").val().trim(),
|
||||||
type: "get"
|
// type: "get"
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<%= stylesheet_link_tag 'courses' %>
|
<%= stylesheet_link_tag 'courses' %>
|
||||||
<div class="resources mt10">
|
<div class="resources">
|
||||||
<div class="project_r_h" style="width: 720px;">
|
<div class="project_r_h" style="width: 720px;">
|
||||||
<h2 class="project_h2"> 组织成员</h2>
|
<h2 class="project_h2"> 组织成员</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@ $('#ajax-modal').html('<%= escape_javascript(render :partial => 'join_course_men
|
||||||
showModal('ajax-modal', '320px');
|
showModal('ajax-modal', '320px');
|
||||||
$('#ajax-modal').siblings().hide();
|
$('#ajax-modal').siblings().hide();
|
||||||
$('#ajax-modal').before(
|
$('#ajax-modal').before(
|
||||||
"<a href='javascript:' onclick='hideModal();location.reload();' class='resourceClose' style='margin-left: 300px;'></a>");
|
"<a href='javascript:' onclick='hideModal();' class='resourceClose' style='margin-left: 300px;'></a>");
|
||||||
//$('#ajax-modal').css('position','absolute')
|
//$('#ajax-modal').css('position','absolute')
|
||||||
$('#ajax-modal').css("top","").css("left","");
|
$('#ajax-modal').css("top","").css("left","");
|
||||||
$('#ajax-modal').parent().addClass("resourceSharePopup");
|
$('#ajax-modal').parent().addClass("resourceSharePopup");
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
$("#homepageLeftMenuCourses").html("");
|
//$("#homepageLeftMenuCourses").html("");
|
||||||
$("#homepageLeftMenuCourses").append("<ul>");
|
//$("#homepageLeftMenuCourses").append("<ul>");
|
||||||
$("#homepageLeftMenuCourses").append("<%= escape_javascript(render :partial => 'layouts/org_courses',
|
//$("#homepageLeftMenuCourses").append("<%#= escape_javascript(render :partial => 'layouts/org_courses',
|
||||||
:locals=>{:courses=>@organization.courses.reorder('created_at').uniq.limit(5),:org_id=>@organization.id,:page=> 1}) %>");
|
:locals=>{:courses=>@organization.courses.reorder('created_at').uniq.limit(5),:org_id=>@organization.id,:page=> 1}) %>");
|
||||||
$("#homepageLeftMenuCourses").append("</ul>");
|
//$("#homepageLeftMenuCourses").append("</ul>");
|
||||||
$("#homepageLeftMenuCourses").show();
|
//$("#homepageLeftMenuCourses").show();
|
||||||
|
location.reload();
|
|
@ -4,7 +4,7 @@ $('#ajax-modal').html('<%= escape_javascript(render :partial => 'join_project_me
|
||||||
showModal('ajax-modal', '320px');
|
showModal('ajax-modal', '320px');
|
||||||
$('#ajax-modal').siblings().hide();
|
$('#ajax-modal').siblings().hide();
|
||||||
$('#ajax-modal').before(
|
$('#ajax-modal').before(
|
||||||
"<a href='javascript:' onclick='hideModal();location.reload();' class='resourceClose' style='margin-left: 300px;'></a>");
|
"<a href='javascript:' onclick='hideModal();' class='resourceClose' style='margin-left: 300px;'></a>");
|
||||||
//$('#ajax-modal').css('position','absolute');
|
//$('#ajax-modal').css('position','absolute');
|
||||||
$('#ajax-modal').css("top","").css("left","");
|
$('#ajax-modal').css("top","").css("left","");
|
||||||
$('#ajax-modal').parent().addClass("resourceSharePopup");
|
$('#ajax-modal').parent().addClass("resourceSharePopup");
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
$("#homepageLeftMenuProjects").html("");
|
//$("#homepageLeftMenuProjects").html("");
|
||||||
$("#homepageLeftMenuProjects").append("<ul>");
|
//$("#homepageLeftMenuProjects").append("<ul>");
|
||||||
$("#homepageLeftMenuProjects").append("<%= escape_javascript(render :partial => 'layouts/org_projects',
|
//$("#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}) %>");
|
:locals=>{:projects=>@organization.projects.reorder('created_at').uniq.limit(5),:org_id=>@organization.id,:page=> 1}) %>");
|
||||||
$("#homepageLeftMenuProjects").append("</ul>");
|
//$("#homepageLeftMenuProjects").append("</ul>");
|
||||||
$("#homepageLeftMenuProjects").show();
|
//$("#homepageLeftMenuProjects").show();
|
||||||
|
location.reload();
|
Loading…
Reference in New Issue