<% 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(""); <% 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"); //与更新版本弹窗js冲突新增样式代码 $('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"}); $('#ajax-modal').css("padding",""); $('#ajax-modal').parent().removeClass(" popbox resourceUploadPopup shareDP");