diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 6db472cda..0010f0b4f 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -274,6 +274,19 @@ $this.bind('keyup click mousemove', reset); }); } + function check_des(event){ + if($(".sectionContent").find('input[type="radio"]:checked').length <= 0){ + event.preventDefault(); + $(".orgDirection").text('目标地址组织不能为空') + return false; + }else if($(".columnContent").find('input[type="radio"]:checked').length <= 0){ + event.preventDefault(); + $(".orgDirection").text('目标地址栏目不能为空') + return false; + }else{ + return true; + } + } <% if User.current.logged? %> var sendType = '1'; @@ -290,7 +303,10 @@ url: '<%= search_user_course_user_path(User.current)%>' + '?send_id=' + id }); }else if( lastSendType == '3'){//组织 - + $.ajax({ + type: 'get', + url: '<%= search_user_org_user_path(User.current)%>' + '?send_id=' + id + }); }else{ $.ajax({ type: 'get', diff --git a/app/views/users/_resource_share_for_orgs.html.erb b/app/views/users/_resource_share_for_orgs.html.erb index e7ddbd6f5..08405a347 100644 --- a/app/views/users/_resource_share_for_orgs.html.erb +++ b/app/views/users/_resource_share_for_orgs.html.erb @@ -49,7 +49,7 @@