19 lines
1.2 KiB
Plaintext
19 lines
1.2 KiB
Plaintext
<% if params[:project_id] %>
|
|
$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/import_resource_info', :locals => {:user => User.current, :type => 1, :project_id => params[:project_id]} ) %>');
|
|
<% elsif params[:course_id] %>
|
|
$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/import_resource_info', :locals => {:user => User.current, :type => 1, :course_id => params[:course_id]} ) %>');
|
|
<% elsif params[:subfield_file_id] %>
|
|
$('#ajax-modal').html('<%= escape_javascript( render :partial => 'users/import_resource_info', :locals => {:user => User.current, :type => 1, :subfield_file_id => params[:subfield_file_id]} ) %>');
|
|
<% 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");
|
|
|
|
|