配置页面新建二级域名样式
This commit is contained in:
parent
a691fb7eb7
commit
8dfe95dfd1
|
@ -5,6 +5,7 @@ class SubDomainsController < ApplicationController
|
||||||
def new
|
def new
|
||||||
@subdomain = SubDomain.new
|
@subdomain = SubDomain.new
|
||||||
@org_subfield = OrgSubfield.find(params[:org_subfield_id])
|
@org_subfield = OrgSubfield.find(params[:org_subfield_id])
|
||||||
|
@organization = @org_subfield.organization
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
module SubDomainsHelper
|
module SubDomainsHelper
|
||||||
|
include OrganizationsHelper
|
||||||
end
|
end
|
||||||
|
|
|
@ -172,11 +172,10 @@
|
||||||
if ($("#subfield_name").val().trim() != "")
|
if ($("#subfield_name").val().trim() != "")
|
||||||
$("#add_subfield_form").submit();
|
$("#add_subfield_form").submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_org_subfield_subdomain(){
|
function add_org_subfield_subdomain(){
|
||||||
if ($("#subfield_name_subdomain").val().trim() != "")
|
if ($("#subfield_name_subdomain").val().trim() != "")
|
||||||
alert("Test");
|
$("#add_subfield_form_subdomain").submit();
|
||||||
$("#add_subfield_form_subdomain").submit();
|
$("#org_subfield_list").html('<%= escape_javascript(render(:partial => 'organizations/subfield_list', :locals => {:subfields => @organization.org_subfields.order("priority")} )) %>');
|
||||||
}
|
}
|
||||||
var $is_exist = false;
|
var $is_exist = false;
|
||||||
function apply_subdomain(id, domain){
|
function apply_subdomain(id, domain){
|
||||||
|
|
|
@ -23,8 +23,5 @@
|
||||||
|
|
||||||
|
|
||||||
<script type="javascript">
|
<script type="javascript">
|
||||||
function add_org_subfield_subdomain(){
|
|
||||||
if ($("#subfield_name_subdomain").val().trim() != "")
|
|
||||||
$("#add_subfield_form_subdomain").submit();
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue