2016-03-05 03:14:57 +08:00
|
|
|
<% if params[:project_id] %>
|
2016-03-18 15:17:49 +08:00
|
|
|
$('#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}) %>');
|
2016-03-05 03:14:57 +08:00
|
|
|
<% elsif params[:course_id] %>
|
2016-03-18 15:17:49 +08:00
|
|
|
$('#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}) %>');
|
2016-03-05 03:14:57 +08:00
|
|
|
<% elsif params[:subfield_file_id] %>
|
2016-03-18 15:17:49 +08:00
|
|
|
$('#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}) %>');
|
2016-03-05 03:14:57 +08:00
|
|
|
<% 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");
|
|
|
|
|
2016-10-15 15:34:33 +08:00
|
|
|
//与更新版本弹窗js冲突新增样式代码
|
|
|
|
$('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"});
|
|
|
|
$('#ajax-modal').css("padding","");
|
2016-10-15 15:47:48 +08:00
|
|
|
$('#ajax-modal').parent().removeClass(" popbox resourceUploadPopup shareDP");
|
2016-10-15 15:34:33 +08:00
|
|
|
|
2016-03-05 03:14:57 +08:00
|
|
|
|