19 lines
1.4 KiB
Plaintext
19 lines
1.4 KiB
Plaintext
<% if params[:project_id] %>
|
|
$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/import_resource_info', :locals => {:user => User.current, :type => @type, :project_id => params[:project_id], :mul_id => @resource_id, :mul_type => @resource_type}) %>');
|
|
<% elsif params[:course_id] %>
|
|
$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/import_resource_info', :locals => {:user => User.current, :type => @type, :course_id => params[:course_id], :mul_id => @resource_id, :mul_type => @resource_type}) %>');
|
|
<% elsif params[:subfield_file_id] %>
|
|
$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/import_resource_info', :locals => {:user => User.current, :type => @type, :subfield_file_id => params[:subfield_file_id], :mul_id => @resource_id, :mul_type => @resource_type}) %>');
|
|
<% end %>
|
|
showModal('ajax-modal', '615px');
|
|
$('#ajax-modal').siblings().remove();
|
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal()' style='margin-left: 580px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
|
<% if params[:project_id] %>
|
|
$('#ajax-modal').parent().css("top","10%").css("left","34%").css("border","3px solid #269ac9");
|
|
<% else %>
|
|
$('#ajax-modal').parent().css("top","20%").css("left","42%").css("border","3px solid #269ac9");
|
|
<% end %>
|
|
$('#ajax-modal').parent().addClass("popbox_polls");
|
|
|
|
|