27 lines
2.1 KiB
Plaintext
27 lines
2.1 KiB
Plaintext
<% if params[:is_observe].nil? %>
|
|
<% if params[:send_type].present? && params[:send_type] == 'news' %>
|
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_news_to_org' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
|
<% elsif params[:send_type] == 'file' %>
|
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/resource_share_for_orgs' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids,:type => @type})%>');
|
|
<% elsif params[:send_type] == 'message' %>
|
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_message_to_org' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
|
<% end %>
|
|
showModal('ajax-modal', '452px');
|
|
$('#ajax-modal').siblings().remove();
|
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal();' style='margin-left: 435px;' class='resourceClose'></a>");
|
|
$('#ajax-modal').parent().css("top","50%").css("left","50%");
|
|
$('#ajax-modal').parent().addClass("popbox").addClass("shareDP");
|
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
|
//与更新版本弹窗js冲突新增样式代码
|
|
$('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"});
|
|
var val = $("#search_org_input").val();
|
|
$("#search_org_input").val("").focus().val(val);
|
|
<% else %>
|
|
<% if params[:send_type] == 'news' %>
|
|
$("#org_news_form").html("<%= escape_javascript(render :partial => 'users/org_news_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
|
<% elsif params[:send_type] == 'file' %>
|
|
$("#org_file_form").html("<%= escape_javascript(render :partial => 'users/org_file_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
|
<% elsif params[:send_type] == 'message' %>
|
|
$("#org_message_form").html("<%= escape_javascript(render :partial => 'users/org_message_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
|
<% end %>
|
|
<% end %> |