1.项目和课程中,添加翻页提醒;

2.项目和课程中,删除组织关联时,给出弹窗,确认是否删除。
This commit is contained in:
ouyangxuhua 2015-11-18 11:12:40 +08:00
parent fc7e41ebf9
commit b231b44e81
3 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
if($("#join_orgs_for_course input:checked").size() > 0)
{
alert("翻页或搜索后将丢失当前选择的用户数据");
}
$("#search_orgs_result_list").html("");
$("#search_orgs_result_list").append('<ul class="ml20">');
<% @orgs_not_in_course.each do |org|%>

View File

@ -1289,6 +1289,7 @@ function course_outline(id){
//取消课程组织关联
function cancel_org_course_relation(id, courseId){
if(confirm("确定取消关联吗?") == false) return;
$.ajax({
url:"/org_courses/" + id + "?course_id=" + courseId,
type: "delete",

View File

@ -530,6 +530,7 @@ function zip(){
//取消关联
function cancel_relation(orgId,projectId){
if(confirm("确定取消关联吗?") == false) return;
$.ajax({
url:'/org_projects/'+orgId+"?project_id="+projectId,
type:'DELETE',