26 lines
1.6 KiB
Plaintext
26 lines
1.6 KiB
Plaintext
//$("#resources_list").html('<%#= escape_javascript( render :partial => 'users/import_resource_info' ,:locals=>{ :attachments => @attachments, :type => @type})%>');
|
|
//$("#pages").html('<%#= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>');
|
|
//$("#res_all_count").html(<%#= @atta_count%>);
|
|
//$("#res_count").html(0);
|
|
//$("#checkboxAll").attr('checked',false);
|
|
|
|
|
|
<% 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");
|
|
|
|
|