浏览代码

JS注释中移除中文注释

xuxueli 7 年前
父节点
当前提交
8e0f686431

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

3
  */
3
  */
4
 $(function () {
4
 $(function () {
5
 
5
 
6
-    // 过滤时间
6
+    // filter Time
7
     var _startDate = moment().subtract(1, 'months');    // 默认,最近一月
7
     var _startDate = moment().subtract(1, 'months');    // 默认,最近一月
8
     var _endDate = moment();
8
     var _endDate = moment();
9
     $('#filterTime').daterangepicker({
9
     $('#filterTime').daterangepicker({
43
     freshChartDate(_startDate, _endDate);
43
     freshChartDate(_startDate, _endDate);
44
 
44
 
45
     /**
45
     /**
46
-     * 刷新报表
46
+     * fresh Chart Date
47
      *
47
      *
48
      * @param startDate
48
      * @param startDate
49
      * @param endDate
49
      * @param endDate
73
     }
73
     }
74
 
74
 
75
     /**
75
     /**
76
-     * 折线图
76
+     * line Chart Init
77
      */
77
      */
78
     function lineChartInit(data) {
78
     function lineChartInit(data) {
79
         var option = {
79
         var option = {
145
     }
145
     }
146
 
146
 
147
     /**
147
     /**
148
-     * 饼图
148
+     * pie Chart Init
149
      */
149
      */
150
     function pieChartInit(data) {
150
     function pieChartInit(data) {
151
         var option = {
151
         var option = {

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

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

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

35
 
35
 
36
 	});
36
 	});
37
 
37
 
38
-	// jquery.validate 自定义校验 “英文字母开头,只含有英文字母、数字和下划线
38
+	// jquery.validate “low letters start, limit contants、 letters、numbers and line-through.
39
 	jQuery.validator.addMethod("myValid01", function(value, element) {
39
 	jQuery.validator.addMethod("myValid01", function(value, element) {
40
 		var length = value.length;
40
 		var length = value.length;
41
 		var valid = /^[a-z][a-zA-Z0-9-]*$/;
41
 		var valid = /^[a-z][a-zA-Z0-9-]*$/;
42
 		return this.optional(element) || valid.test(value);
42
 		return this.optional(element) || valid.test(value);
43
-	}, "限制以小写字母开头,由小写字母、数字和划线组成");
43
+	}, "限制以小写字母开头,由小写字母、数字和划线组成");
44
 
44
 
45
 	$('.add').on('click', function(){
45
 	$('.add').on('click', function(){
46
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
46
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
119
 		$("#addModal .form .form-group").removeClass("has-error");
119
 		$("#addModal .form .form-group").removeClass("has-error");
120
 	});
120
 	});
121
 
121
 
122
-	// 注册方式,切换
122
+	// addressType change
123
 	$("#addModal input[name=addressType], #updateModal input[name=addressType]").click(function(){
123
 	$("#addModal input[name=addressType], #updateModal input[name=addressType]").click(function(){
124
 		var addressType = $(this).val();
124
 		var addressType = $(this).val();
125
 		var $addressList = $(this).parents("form").find("textarea[name=addressList]");
125
 		var $addressList = $(this).parents("form").find("textarea[name=addressList]");

+ 7 - 13
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js 查看文件

1
 $(function() {
1
 $(function() {
2
+
2
 	// init date tables
3
 	// init date tables
3
 	var jobTable = $("#job_list").dataTable({
4
 	var jobTable = $("#job_list").dataTable({
4
 		"deferRender": true,
5
 		"deferRender": true,
19
 	    },
20
 	    },
20
 	    "searching": false,
21
 	    "searching": false,
21
 	    "ordering": false,
22
 	    "ordering": false,
22
-	    //"scrollX": true,	// X轴滚动条,取消自适应
23
+	    //"scrollX": true,	// scroll x,close self-adaption
23
 	    "columns": [
24
 	    "columns": [
24
 	                {
25
 	                {
25
 	                	"data": 'id',
26
 	                	"data": 'id',
170
     // table data
171
     // table data
171
     var tableData = {};
172
     var tableData = {};
172
 
173
 
173
-	// 搜索按钮
174
+	// search btn
174
 	$('#searchBtn').on('click', function(){
175
 	$('#searchBtn').on('click', function(){
175
 		jobTable.fnDraw();
176
 		jobTable.fnDraw();
176
 	});
177
 	});
245
 			});
246
 			});
246
 		});
247
 		});
247
 	});
248
 	});
248
-	
249
-	// jquery.validate 自定义校验 “英文字母开头,只含有英文字母、数字和下划线”
250
-	jQuery.validator.addMethod("myValid01", function(value, element) {
251
-		var length = value.length;
252
-		var valid = /^[a-zA-Z][a-zA-Z0-9_]*$/;
253
-		return this.optional(element) || valid.test(value);
254
-	}, "只支持英文字母开头,只含有英文字母、数字和下划线");
255
-	
256
-	// 新增
249
+
250
+	// add
257
 	$(".add").click(function(){
251
 	$(".add").click(function(){
258
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
252
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
259
 	});
253
 	});
327
 	});
321
 	});
328
 
322
 
329
 
323
 
330
-    // 运行模式
324
+    // glueType change
331
     $(".glueType").change(function(){
325
     $(".glueType").change(function(){
332
 		// executorHandler
326
 		// executorHandler
333
         var $executorHandler = $(this).parents("form").find("input[name='executorHandler']");
327
         var $executorHandler = $(this).parents("form").find("input[name='executorHandler']");
354
 		}
348
 		}
355
 	});
349
 	});
356
 
350
 
357
-	// 更新
351
+	// update
358
 	$("#job_list").on('click', '.update',function() {
352
 	$("#job_list").on('click', '.update',function() {
359
 
353
 
360
         var id = $(this).parent('p').attr("id");
354
         var id = $(this).parent('p').attr("id");

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

1
 $(function() {
1
 $(function() {
2
 
2
 
3
-	// 任务组列表选中, 任务列表初始化和选中
3
+	// jobGroup change, job list init and select
4
 	$("#jobGroup").on("change", function () {
4
 	$("#jobGroup").on("change", function () {
5
 		var jobGroup = $(this).children('option:selected').val();
5
 		var jobGroup = $(this).children('option:selected').val();
6
 		$.ajax({
6
 		$.ajax({
33
         $("#jobGroup").change();
33
         $("#jobGroup").change();
34
 	}
34
 	}
35
 
35
 
36
-	// 过滤时间
36
+	// filter Time
37
 	$('#filterTime').daterangepicker({
37
 	$('#filterTime').daterangepicker({
38
         autoApply:false,
38
         autoApply:false,
39
         singleDatePicker:false,
39
         singleDatePicker:false,
221
 		}
221
 		}
222
 	});
222
 	});
223
 	
223
 	
224
-	// 日志弹框提示
224
+	// logTips alert
225
 	$('#joblog_list').on('click', '.logTips', function(){
225
 	$('#joblog_list').on('click', '.logTips', function(){
226
 		var msg = $(this).find('span').html();
226
 		var msg = $(this).find('span').html();
227
 		ComAlertTec.show(msg);
227
 		ComAlertTec.show(msg);
228
 	});
228
 	});
229
 	
229
 	
230
-	// 搜索按钮
230
+	// search Btn
231
 	$('#searchBtn').on('click', function(){
231
 	$('#searchBtn').on('click', function(){
232
 		logTable.fnDraw();
232
 		logTable.fnDraw();
233
 	});
233
 	});
234
 	
234
 	
235
-	// 查看执行器详细执行日志
235
+	// logDetail look
236
 	$('#joblog_list').on('click', '.logDetail', function(){
236
 	$('#joblog_list').on('click', '.logDetail', function(){
237
 		var _id = $(this).attr('_id');
237
 		var _id = $(this).attr('_id');
238
 		
238
 		
241
 	});
241
 	});
242
 
242
 
243
 	/**
243
 	/**
244
-	 * 终止任务
244
+	 * log Kill
245
 	 */
245
 	 */
246
 	$('#joblog_list').on('click', '.logKill', function(){
246
 	$('#joblog_list').on('click', '.logKill', function(){
247
 		var _id = $(this).attr('_id');
247
 		var _id = $(this).attr('_id');
278
 	});
278
 	});
279
 
279
 
280
 	/**
280
 	/**
281
-	 * 清理任务Log
281
+	 * clear Log
282
 	 */
282
 	 */
283
 	$('#clearLog').on('click', function(){
283
 	$('#clearLog').on('click', function(){
284
 
284
 
325
 });
325
 });
326
 
326
 
327
 
327
 
328
-// 提示-科技主题
328
+// Com Alert by Tec theme
329
 var ComAlertTec = {
329
 var ComAlertTec = {
330
 	html:function(){
330
 	html:function(){
331
 		var html =
331
 		var html =
349
 			$('body').append(ComAlertTec.html());
349
 			$('body').append(ComAlertTec.html());
350
 		}
350
 		}
351
 
351
 
352
-		// 弹框初始
352
+		// init com alert
353
 		$('#ComAlertTec .alert').html(msg);
353
 		$('#ComAlertTec .alert').html(msg);
354
 		$('#ComAlertTec').modal('show');
354
 		$('#ComAlertTec').modal('show');
355
 
355