17 lines
1.3 KiB
Plaintext
17 lines
1.3 KiB
Plaintext
<% if params[:send_type].present? && params[:send_type] == 'news' %>
|
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_news_to_project', :locals => {:projects => @projects, :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_project_popup', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>');
|
|
<% elsif params[:send_type] == 'message' %>
|
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_message_to_project', :locals => {:projects => @projects, :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("resourceUploadPopup").addClass("popbox")
|
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
|
//$("#search_project_input").focus();
|
|
var val = $("#search_project_input").val();
|
|
$("#search_project_input").val("").focus().val(val);
|