组织二级域名弹框
This commit is contained in:
parent
14335d5da3
commit
517db8f105
|
@ -97,7 +97,8 @@
|
||||||
<span class="fr">|</span>
|
<span class="fr">|</span>
|
||||||
<a href="javascript:void(0);" class="linkGrey fr ml5 mr5" onclick="edit('#subfield_show_<%= field.id %>','#subfield_edit_<%= field.id %>');">编辑</a>
|
<a href="javascript:void(0);" class="linkGrey fr ml5 mr5" onclick="edit('#subfield_show_<%= field.id %>','#subfield_edit_<%= field.id %>');">编辑</a>
|
||||||
<span class="fr">|</span>
|
<span class="fr">|</span>
|
||||||
<a href="javascript:void(0);" class="linkGrey fr mr5">添加二级目录</a>
|
|
||||||
|
<a href="javascript:void(0);" class="linkGrey fr mr5" onclick="org_submain_new('<%= escape_javascript(render :partial => 'sub_domains/new', :locals => {:organization => @organization, :field => field}) %>');">添加二级目录</a>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -219,6 +220,15 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
function org_submain_new(html) {
|
||||||
|
$('#ajax-modal').html(html);
|
||||||
|
showModal('ajax-modal', '513px');
|
||||||
|
$('#ajax-modal').siblings().remove();
|
||||||
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal()' style='margin-left: 480px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
||||||
|
$('#ajax-modal').parent().css("top","40%").css("left","50%").css("border","3px solid #269ac9");
|
||||||
|
$('#ajax-modal').parent().addClass("popbox_polls");
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$(".pic_edit2").click(function(){
|
$(".pic_edit2").click(function(){
|
||||||
$(this).parent().hide();
|
$(this).parent().hide();
|
||||||
|
|
|
@ -131,7 +131,7 @@
|
||||||
<!--新增二级栏目-->
|
<!--新增二级栏目-->
|
||||||
<div>
|
<div>
|
||||||
<%= form_tag url_for(:controller => 'org_subfields', :action => 'create', :organization_id => @organization.id), :id=> 'add_subfield_form',:remote => true do %>
|
<%= form_tag url_for(:controller => 'org_subfields', :action => 'create', :organization_id => @organization.id), :id=> 'add_subfield_form',:remote => true do %>
|
||||||
<span class="fontGrey3 fb mb5 mr10">新增一级栏目</span>
|
<span class="fontGrey3 fb mb5 mr10" >新增一级栏目</span>
|
||||||
<input type="text" id="subfield_name" name="name" placeholder="栏目名称" class="orgAddSearch mb10" />
|
<input type="text" id="subfield_name" name="name" placeholder="栏目名称" class="orgAddSearch mb10" />
|
||||||
<div class="mb10">
|
<div class="mb10">
|
||||||
<span class="fontGrey3 fb mr10 ml24">域名目录</span>
|
<span class="fontGrey3 fb mr10 ml24">域名目录</span>
|
||||||
|
|
Loading…
Reference in New Issue