瀏覽代碼

GLUE源码编辑器优化

xueli.xue 8 年之前
父節點
當前提交
e0ed8daaa1

+ 6 - 6
xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/jobcode.index.ftl 查看文件

@@ -29,9 +29,9 @@
29 29
 		
30 30
 		<div class="content-wrapper">
31 31
 			<!-- Content Header (Page header) -->
32
-			<section class="content-header">
32
+			<#--<section class="content-header">
33 33
 				<h1>任务调度中心<small>任务GLUE管理</small></h1>
34
-			</section>
34
+			</section>-->
35 35
 			<!-- Main content -->
36 36
 		    <section class="content">
37 37
 		    	<div class="row">
@@ -75,17 +75,17 @@
75 75
 		            </div>
76 76
 	          	</div>
77 77
 		    	
78
-				<div class="row">
79
-					<div class="col-xs-12">
78
+				<div class="row" id="glueSource" >
79
+					<#--<div class="col-xs-12">
80 80
 						<div class="box callout callout-info">
81 81
 							<textarea id="glueSource" ></textarea>
82 82
 						</div>
83
-					</div>
83
+					</div>-->
84 84
 				</div>
85 85
 		    </section>
86 86
 		</div>
87 87
 		<!-- footer -->
88
-		<@netCommon.commonFooter />
88
+		<#--<@netCommon.commonFooter />-->
89 89
 	</div>
90 90
 	
91 91
 <@netCommon.commonScript />

+ 6 - 1
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js 查看文件

@@ -1,7 +1,12 @@
1 1
 $(function() {
2 2
 
3 3
 	// init code editor
4
-	var codeEditor = CodeMirror.fromTextArea(document.getElementById("glueSource"), {
4
+	/*var codeEditor = CodeMirror.fromTextArea(document.getElementById("glueSource"), {
5
+		mode : "text/x-java",
6
+		lineNumbers : true,
7
+		matchBrackets : true
8
+	});*/
9
+	var codeEditor = CodeMirror(document.getElementById("glueSource"), {
5 10
 		mode : "text/x-java",
6 11
 		lineNumbers : true,
7 12
 		matchBrackets : true