Merge branch 'develop' of https://git.trustie.net/jacknudt/trustieforge into develop
This commit is contained in:
commit
3358f4233c
|
@ -18,5 +18,6 @@ $('#ajax-modal').parent().addClass("popbox_polls");
|
||||||
//与更新版本弹窗js冲突新增样式代码
|
//与更新版本弹窗js冲突新增样式代码
|
||||||
$('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"});
|
$('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"});
|
||||||
$('#ajax-modal').css("padding","");
|
$('#ajax-modal').css("padding","");
|
||||||
|
$('#ajax-modal').parent().removeClass(" popbox resourceUploadPopup shareDP");
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
$('#ajax-modal').parent().css("top","50%").css("left","50%");
|
$('#ajax-modal').parent().css("top","50%").css("left","50%");
|
||||||
$('#ajax-modal').parent().addClass("popbox").addClass("resourceUploadPopup");
|
$('#ajax-modal').parent().addClass("popbox").addClass("resourceUploadPopup");
|
||||||
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
||||||
|
//与更新版本弹窗js冲突新增样式代码
|
||||||
|
$('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"});
|
||||||
var val = $("#search_course_input").val();
|
var val = $("#search_course_input").val();
|
||||||
$("#search_course_input").val("").focus().val(val);
|
$("#search_course_input").val("").focus().val(val);
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
|
@ -1,25 +1,27 @@
|
||||||
<% if params[:is_observe].nil? %>
|
<% if params[:is_observe].nil? %>
|
||||||
<% if params[:send_type].present? && params[:send_type] == 'news' %>
|
<% if params[:send_type].present? && params[:send_type] == 'news' %>
|
||||||
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_news_to_org' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_news_to_org' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
||||||
<% elsif params[:send_type] == 'file' %>
|
<% elsif params[:send_type] == 'file' %>
|
||||||
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/resource_share_for_orgs' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids,:type => @type})%>');
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/resource_share_for_orgs' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids,:type => @type})%>');
|
||||||
<% elsif params[:send_type] == 'message' %>
|
<% elsif params[:send_type] == 'message' %>
|
||||||
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_message_to_org' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_message_to_org' ,:locals => {:orgs=>@orgs,:user=>@user,:send_id=>@send_id,:send_ids=>@send_ids})%>');
|
||||||
<% end %>
|
<% end %>
|
||||||
showModal('ajax-modal', '452px');
|
showModal('ajax-modal', '452px');
|
||||||
$('#ajax-modal').siblings().remove();
|
$('#ajax-modal').siblings().remove();
|
||||||
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal();' style='margin-left: 435px;' class='resourceClose'></a>");
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal();' style='margin-left: 435px;' class='resourceClose'></a>");
|
||||||
$('#ajax-modal').parent().css("top","50%").css("left","50%");
|
$('#ajax-modal').parent().css("top","50%").css("left","50%");
|
||||||
$('#ajax-modal').parent().addClass("popbox").addClass("shareDP");
|
$('#ajax-modal').parent().addClass("popbox").addClass("shareDP");
|
||||||
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
||||||
var val = $("#search_org_input").val();
|
//与更新版本弹窗js冲突新增样式代码
|
||||||
$("#search_org_input").val("").focus().val(val);
|
$('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"});
|
||||||
<% else %>
|
var val = $("#search_org_input").val();
|
||||||
<% if params[:send_type] == 'news' %>
|
$("#search_org_input").val("").focus().val(val);
|
||||||
$("#org_news_form").html("<%= escape_javascript(render :partial => 'users/org_news_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
<% else %>
|
||||||
<% elsif params[:send_type] == 'file' %>
|
<% if params[:send_type] == 'news' %>
|
||||||
$("#org_file_form").html("<%= escape_javascript(render :partial => 'users/org_file_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
$("#org_news_form").html("<%= escape_javascript(render :partial => 'users/org_news_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
||||||
<% elsif params[:send_type] == 'message' %>
|
<% elsif params[:send_type] == 'file' %>
|
||||||
$("#org_message_form").html("<%= escape_javascript(render :partial => 'users/org_message_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
$("#org_file_form").html("<%= escape_javascript(render :partial => 'users/org_file_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
||||||
<% end %>
|
<% elsif params[:send_type] == 'message' %>
|
||||||
|
$("#org_message_form").html("<%= escape_javascript(render :partial => 'users/org_message_form', :locals => {:orgs => @orgs,:user=> @user,:send_id => @send_id, :send_ids => @send_ids}) %>");
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
|
@ -1,26 +1,28 @@
|
||||||
<% if params[:is_observe].nil? %>
|
<% if params[:is_observe].nil? %>
|
||||||
<% if params[:send_type].present? && params[:send_type] == 'news' %>
|
<% if params[:send_type].present? && params[:send_type] == 'news' %>
|
||||||
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_news_to_project', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>');
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_news_to_project', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>');
|
||||||
<% elsif params[:send_type] == 'file' %>
|
<% elsif params[:send_type] == 'file' %>
|
||||||
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/resource_share_for_project_popup', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids,:type => @type}) %>');
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/resource_share_for_project_popup', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids,:type => @type}) %>');
|
||||||
<% elsif params[:send_type] == 'message' %>
|
<% elsif params[:send_type] == 'message' %>
|
||||||
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_message_to_project', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>');
|
$("#ajax-modal").html('<%= escape_javascript( render :partial => 'users/share_message_to_project', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>');
|
||||||
<% end %>
|
<% end %>
|
||||||
showModal('ajax-modal', '452px');
|
showModal('ajax-modal', '452px');
|
||||||
$('#ajax-modal').siblings().remove();
|
$('#ajax-modal').siblings().remove();
|
||||||
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal();' style='margin-left: 435px;' class='resourceClose'></a>");
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal();' style='margin-left: 435px;' class='resourceClose'></a>");
|
||||||
$('#ajax-modal').parent().css("top","50%").css("left","50%");
|
$('#ajax-modal').parent().css("top","50%").css("left","50%");
|
||||||
$('#ajax-modal').parent().addClass("resourceUploadPopup").addClass("popbox")
|
$('#ajax-modal').parent().addClass("resourceUploadPopup").addClass("popbox")
|
||||||
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
$('#ajax-modal').css("padding-left","16px").css("padding-bottom","16px");
|
||||||
//$("#search_project_input").focus();
|
//与更新版本弹窗js冲突新增样式代码
|
||||||
var val = $("#search_project_input").val();
|
$('#ajax-modal').parent().css({"border":"3px solid #269ac9", "padding":"4px"});
|
||||||
$("#search_project_input").val("").focus().val(val);
|
//$("#search_project_input").focus();
|
||||||
<% else %>
|
var val = $("#search_project_input").val();
|
||||||
<% if params[:send_type] == 'news' %>
|
$("#search_project_input").val("").focus().val(val);
|
||||||
$("#project_news_form").html("<%= escape_javascript(render :partial => 'users/project_news_form', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>");
|
<% else %>
|
||||||
<% elsif params[:send_type] == 'file' %>
|
<% if params[:send_type] == 'news' %>
|
||||||
$("#project_file_form").html("<%= escape_javascript(render :partial => 'users/project_file_form', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>");
|
$("#project_news_form").html("<%= escape_javascript(render :partial => 'users/project_news_form', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>");
|
||||||
<% elsif params[:send_type] == 'message' %>
|
<% elsif params[:send_type] == 'file' %>
|
||||||
$("#project_message_form").html("<%= escape_javascript(render :partial => 'users/project_message_form', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>");
|
$("#project_file_form").html("<%= escape_javascript(render :partial => 'users/project_file_form', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>");
|
||||||
<% end %>
|
<% elsif params[:send_type] == 'message' %>
|
||||||
<% end %>
|
$("#project_message_form").html("<%= escape_javascript(render :partial => 'users/project_message_form', :locals => {:projects => @projects, :user => @user, :send_id => @send_id, :send_ids => @send_ids}) %>");
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue