个人主页的课程和项目展开出现重复数据

This commit is contained in:
cxt 2016-08-22 10:49:46 +08:00
parent 96ce09ede3
commit 572ad5a162
4 changed files with 0 additions and 5 deletions

View File

@ -82,7 +82,6 @@
<% end %> <% end %>
<% if all_count > (page.to_i+1) * 10%> <% if all_count > (page.to_i+1) * 10%>
<input type="hidden" value="<%= page%>" id="course_page_num">
<a class="user_navmorebox" href="javascript:void(0);" id="user_show_more_course" onclick="show_more_course('<%= user_courses4show_user_path(user.id,:page => page)%>');"> <a class="user_navmorebox" href="javascript:void(0);" id="user_show_more_course" onclick="show_more_course('<%= user_courses4show_user_path(user.id,:page => page)%>');">
<span class="user_icons_moreclass"></span> <span class="user_icons_moreclass"></span>
</a> </a>

View File

@ -59,7 +59,6 @@
<% end %> <% end %>
<% if all_count > (page.to_i+1) * 10%> <% if all_count > (page.to_i+1) * 10%>
<input type="hidden" value="<%= page%>" id="project_page_num">
<a class="user_navmorebox" href="javascript:void(0);" id="user_show_more_project" onclick="show_more_project('<%= user_projects4show_user_path(user.id,:page => page)%>');"> <a class="user_navmorebox" href="javascript:void(0);" id="user_show_more_project" onclick="show_more_project('<%= user_projects4show_user_path(user.id,:page => page)%>');">
<span class="user_icons_moreclass"></span> <span class="user_icons_moreclass"></span>
</a> </a>

View File

@ -38,7 +38,6 @@ function edit_user_introduction(url){
function show_more_course(url){ function show_more_course(url){
$.get( $.get(
url, url,
{ page: $("#course_page_num").val() },
function (data) { function (data) {
} }
); );
@ -48,7 +47,6 @@ function show_more_course(url){
function show_more_project(url){ function show_more_project(url){
$.get( $.get(
url, url,
{ page: $("#project_page_num").val() },
function (data) { function (data) {
} }

View File

@ -2,7 +2,6 @@
function show_more_course(url){ function show_more_course(url){
$.get( $.get(
url, url,
{ page: $("#course_page_num").val() },
function (data) { function (data) {
} }
); );