|
@@ -62,6 +62,8 @@ common.form.serializeArray=function(id){
|
|
value=editor_2.getValue()
|
|
value=editor_2.getValue()
|
|
}else if($(this).attr("id").indexOf("step3")>-1){
|
|
}else if($(this).attr("id").indexOf("step3")>-1){
|
|
value=editor_3.getValue()
|
|
value=editor_3.getValue()
|
|
|
|
+ }else if($(this).attr("id").indexOf("stepre3")>-1){
|
|
|
|
+ value=editor_re3.getValue()
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
value=$(this).prop("value");
|
|
value=$(this).prop("value");
|
|
@@ -164,6 +166,13 @@ common.spider.initMirror=function(){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ editor_re3 = CodeMirror.fromTextArea($("#stepre3_mirror")[0], {
|
|
|
|
+ theme:"solarized light",
|
|
|
|
+ lineNumbers: true,
|
|
|
|
+ indentUnit:4,
|
|
|
|
+ smartIndent:true,
|
|
|
|
+ indentWithTabs:true
|
|
|
|
+ });
|
|
editor_4 = CodeMirror.fromTextArea($("#testcontents")[0], {
|
|
editor_4 = CodeMirror.fromTextArea($("#testcontents")[0], {
|
|
theme:"abcdef",
|
|
theme:"abcdef",
|
|
lineNumbers: true,
|
|
lineNumbers: true,
|
|
@@ -179,6 +188,7 @@ common.spider.initMirror=function(){
|
|
editor_1.setSize("auto","auto");
|
|
editor_1.setSize("auto","auto");
|
|
editor_2.setSize("auto","auto");
|
|
editor_2.setSize("auto","auto");
|
|
editor_3.setSize("auto","auto");
|
|
editor_3.setSize("auto","auto");
|
|
|
|
+ editor_re3.setSize("auto","auto");
|
|
editor_4.setSize("auto","300");
|
|
editor_4.setSize("auto","300");
|
|
}
|
|
}
|
|
common.spider.setExpert=function(editor,text){
|
|
common.spider.setExpert=function(editor,text){
|
|
@@ -382,13 +392,15 @@ common.spider.save_unnew=function(){
|
|
var step1=common.form.serializeArray("step1");
|
|
var step1=common.form.serializeArray("step1");
|
|
var step2=common.form.serializeArray("step2");
|
|
var step2=common.form.serializeArray("step2");
|
|
var step3=common.form.serializeArray("step3");
|
|
var step3=common.form.serializeArray("step3");
|
|
|
|
+ var stepre3=common.form.serializeArray("stepre3");
|
|
step1["Step1.types"]=$("[href='#tab_1']").parent().attr("data-mode");
|
|
step1["Step1.types"]=$("[href='#tab_1']").parent().attr("data-mode");
|
|
step1["Step1.types"]=step1["Step1.types"]=="guide"?"0":"1"
|
|
step1["Step1.types"]=step1["Step1.types"]=="guide"?"0":"1"
|
|
step1["Step2.types"]=$("[href='#tab_2']").parent().attr("data-mode");
|
|
step1["Step2.types"]=$("[href='#tab_2']").parent().attr("data-mode");
|
|
step1["Step2.types"]=step1["Step2.types"]=="guide"?"0":"1"
|
|
step1["Step2.types"]=step1["Step2.types"]=="guide"?"0":"1"
|
|
step1["Step3.types"]=$("[href='#tab_3']").parent().attr("data-mode");
|
|
step1["Step3.types"]=$("[href='#tab_3']").parent().attr("data-mode");
|
|
step1["Step3.types"]=step1["Step3.types"]=="guide"?"0":"1"
|
|
step1["Step3.types"]=step1["Step3.types"]=="guide"?"0":"1"
|
|
- var all=$.extend({},base,step1,step2,step3);
|
|
|
|
|
|
+ stepre3["StepRe3.Checked"] = $("#copyTab").prop('checked');//是否复制三级页
|
|
|
|
+ var all=$.extend({},base,step1,step2,step3,stepre3);
|
|
$.ajax({
|
|
$.ajax({
|
|
url:"/center/save",
|
|
url:"/center/save",
|
|
method:"post",
|
|
method:"post",
|