Procházet zdrojové kódy

JS注释中移除中文注释

xuxueli před 7 roky
rodič
revize
8e0f686431

+ 4 - 4
xxl-job-admin/src/main/webapp/static/js/index.js

@@ -3,7 +3,7 @@
  */
 $(function () {
 
-    // 过滤时间
+    // filter Time
     var _startDate = moment().subtract(1, 'months');    // 默认,最近一月
     var _endDate = moment();
     $('#filterTime').daterangepicker({
@@ -43,7 +43,7 @@ $(function () {
     freshChartDate(_startDate, _endDate);
 
     /**
-     * 刷新报表
+     * fresh Chart Date
      *
      * @param startDate
      * @param endDate
@@ -73,7 +73,7 @@ $(function () {
     }
 
     /**
-     * 折线图
+     * line Chart Init
      */
     function lineChartInit(data) {
         var option = {
@@ -145,7 +145,7 @@ $(function () {
     }
 
     /**
-     * 饼图
+     * pie Chart Init
      */
     function pieChartInit(data) {
         var option = {

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

@@ -1,12 +1,6 @@
 $(function() {
 
 	// init code editor
-	/*var codeEditor = CodeMirror.fromTextArea(document.getElementById("glueSource"), {
-		mode : "text/x-java",
-		lineNumbers : true,
-		matchBrackets : true
-	});*/
-
 	var codeEditor;
 	function initIde(glueSource) {
 		if (codeEditor == null) {

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

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

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

@@ -1,4 +1,5 @@
 $(function() {
+
 	// init date tables
 	var jobTable = $("#job_list").dataTable({
 		"deferRender": true,
@@ -19,7 +20,7 @@ $(function() {
 	    },
 	    "searching": false,
 	    "ordering": false,
-	    //"scrollX": true,	// X轴滚动条,取消自适应
+	    //"scrollX": true,	// scroll x,close self-adaption
 	    "columns": [
 	                {
 	                	"data": 'id',
@@ -170,7 +171,7 @@ $(function() {
     // table data
     var tableData = {};
 
-	// 搜索按钮
+	// search btn
 	$('#searchBtn').on('click', function(){
 		jobTable.fnDraw();
 	});
@@ -245,15 +246,8 @@ $(function() {
 			});
 		});
 	});
-	
-	// jquery.validate 自定义校验 “英文字母开头,只含有英文字母、数字和下划线”
-	jQuery.validator.addMethod("myValid01", function(value, element) {
-		var length = value.length;
-		var valid = /^[a-zA-Z][a-zA-Z0-9_]*$/;
-		return this.optional(element) || valid.test(value);
-	}, "只支持英文字母开头,只含有英文字母、数字和下划线");
-	
-	// 新增
+
+	// add
 	$(".add").click(function(){
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
 	});
@@ -327,7 +321,7 @@ $(function() {
 	});
 
 
-    // 运行模式
+    // glueType change
     $(".glueType").change(function(){
 		// executorHandler
         var $executorHandler = $(this).parents("form").find("input[name='executorHandler']");
@@ -354,7 +348,7 @@ $(function() {
 		}
 	});
 
-	// 更新
+	// update
 	$("#job_list").on('click', '.update',function() {
 
         var id = $(this).parent('p').attr("id");

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

@@ -1,6 +1,6 @@
 $(function() {
 
-	// 任务组列表选中, 任务列表初始化和选中
+	// jobGroup change, job list init and select
 	$("#jobGroup").on("change", function () {
 		var jobGroup = $(this).children('option:selected').val();
 		$.ajax({
@@ -33,7 +33,7 @@ $(function() {
         $("#jobGroup").change();
 	}
 
-	// 过滤时间
+	// filter Time
 	$('#filterTime').daterangepicker({
         autoApply:false,
         singleDatePicker:false,
@@ -221,18 +221,18 @@ $(function() {
 		}
 	});
 	
-	// 日志弹框提示
+	// logTips alert
 	$('#joblog_list').on('click', '.logTips', function(){
 		var msg = $(this).find('span').html();
 		ComAlertTec.show(msg);
 	});
 	
-	// 搜索按钮
+	// search Btn
 	$('#searchBtn').on('click', function(){
 		logTable.fnDraw();
 	});
 	
-	// 查看执行器详细执行日志
+	// logDetail look
 	$('#joblog_list').on('click', '.logDetail', function(){
 		var _id = $(this).attr('_id');
 		
@@ -241,7 +241,7 @@ $(function() {
 	});
 
 	/**
-	 * 终止任务
+	 * log Kill
 	 */
 	$('#joblog_list').on('click', '.logKill', function(){
 		var _id = $(this).attr('_id');
@@ -278,7 +278,7 @@ $(function() {
 	});
 
 	/**
-	 * 清理任务Log
+	 * clear Log
 	 */
 	$('#clearLog').on('click', function(){
 
@@ -325,7 +325,7 @@ $(function() {
 });
 
 
-// 提示-科技主题
+// Com Alert by Tec theme
 var ComAlertTec = {
 	html:function(){
 		var html =
@@ -349,7 +349,7 @@ var ComAlertTec = {
 			$('body').append(ComAlertTec.html());
 		}
 
-		// 弹框初始
+		// init com alert
 		$('#ComAlertTec .alert').html(msg);
 		$('#ComAlertTec').modal('show');