提交 8e0f6864 authored 作者: xuxueli's avatar xuxueli

JS注释中移除中文注释

上级 84f093ab
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*/ */
$(function () { $(function () {
// 过滤时间 // filter Time
var _startDate = moment().subtract(1, 'months'); // 默认,最近一月 var _startDate = moment().subtract(1, 'months'); // 默认,最近一月
var _endDate = moment(); var _endDate = moment();
$('#filterTime').daterangepicker({ $('#filterTime').daterangepicker({
...@@ -43,7 +43,7 @@ $(function () { ...@@ -43,7 +43,7 @@ $(function () {
freshChartDate(_startDate, _endDate); freshChartDate(_startDate, _endDate);
/** /**
* 刷新报表 * fresh Chart Date
* *
* @param startDate * @param startDate
* @param endDate * @param endDate
...@@ -73,7 +73,7 @@ $(function () { ...@@ -73,7 +73,7 @@ $(function () {
} }
/** /**
* 折线图 * line Chart Init
*/ */
function lineChartInit(data) { function lineChartInit(data) {
var option = { var option = {
...@@ -145,7 +145,7 @@ $(function () { ...@@ -145,7 +145,7 @@ $(function () {
} }
/** /**
* 饼图 * pie Chart Init
*/ */
function pieChartInit(data) { function pieChartInit(data) {
var option = { var option = {
......
$(function() { $(function() {
// init code editor // init code editor
/*var codeEditor = CodeMirror.fromTextArea(document.getElementById("glueSource"), {
mode : "text/x-java",
lineNumbers : true,
matchBrackets : true
});*/
var codeEditor; var codeEditor;
function initIde(glueSource) { function initIde(glueSource) {
if (codeEditor == null) { if (codeEditor == null) {
......
...@@ -35,12 +35,12 @@ $(function() { ...@@ -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) { jQuery.validator.addMethod("myValid01", function(value, element) {
var length = value.length; var length = value.length;
var valid = /^[a-z][a-zA-Z0-9-]*$/; var valid = /^[a-z][a-zA-Z0-9-]*$/;
return this.optional(element) || valid.test(value); return this.optional(element) || valid.test(value);
}, "限制以小写字母开头,由小写字母、数字和划线组成"); }, "限制以小写字母开头,由小写字母、数字和划线组成");
$('.add').on('click', function(){ $('.add').on('click', function(){
$('#addModal').modal({backdrop: false, keyboard: false}).modal('show'); $('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
...@@ -119,7 +119,7 @@ $(function() { ...@@ -119,7 +119,7 @@ $(function() {
$("#addModal .form .form-group").removeClass("has-error"); $("#addModal .form .form-group").removeClass("has-error");
}); });
// 注册方式,切换 // addressType change
$("#addModal input[name=addressType], #updateModal input[name=addressType]").click(function(){ $("#addModal input[name=addressType], #updateModal input[name=addressType]").click(function(){
var addressType = $(this).val(); var addressType = $(this).val();
var $addressList = $(this).parents("form").find("textarea[name=addressList]"); var $addressList = $(this).parents("form").find("textarea[name=addressList]");
......
$(function() { $(function() {
// init date tables // init date tables
var jobTable = $("#job_list").dataTable({ var jobTable = $("#job_list").dataTable({
"deferRender": true, "deferRender": true,
...@@ -19,7 +20,7 @@ $(function() { ...@@ -19,7 +20,7 @@ $(function() {
}, },
"searching": false, "searching": false,
"ordering": false, "ordering": false,
//"scrollX": true, // X轴滚动条,取消自适应 //"scrollX": true, // scroll x,close self-adaption
"columns": [ "columns": [
{ {
"data": 'id', "data": 'id',
...@@ -170,7 +171,7 @@ $(function() { ...@@ -170,7 +171,7 @@ $(function() {
// table data // table data
var tableData = {}; var tableData = {};
// 搜索按钮 // search btn
$('#searchBtn').on('click', function(){ $('#searchBtn').on('click', function(){
jobTable.fnDraw(); jobTable.fnDraw();
}); });
...@@ -246,14 +247,7 @@ $(function() { ...@@ -246,14 +247,7 @@ $(function() {
}); });
}); });
// jquery.validate 自定义校验 “英文字母开头,只含有英文字母、数字和下划线” // add
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").click(function(){ $(".add").click(function(){
$('#addModal').modal({backdrop: false, keyboard: false}).modal('show'); $('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
}); });
...@@ -327,7 +321,7 @@ $(function() { ...@@ -327,7 +321,7 @@ $(function() {
}); });
// 运行模式 // glueType change
$(".glueType").change(function(){ $(".glueType").change(function(){
// executorHandler // executorHandler
var $executorHandler = $(this).parents("form").find("input[name='executorHandler']"); var $executorHandler = $(this).parents("form").find("input[name='executorHandler']");
...@@ -354,7 +348,7 @@ $(function() { ...@@ -354,7 +348,7 @@ $(function() {
} }
}); });
// 更新 // update
$("#job_list").on('click', '.update',function() { $("#job_list").on('click', '.update',function() {
var id = $(this).parent('p').attr("id"); var id = $(this).parent('p').attr("id");
......
$(function() { $(function() {
// 任务组列表选中, 任务列表初始化和选中 // jobGroup change, job list init and select
$("#jobGroup").on("change", function () { $("#jobGroup").on("change", function () {
var jobGroup = $(this).children('option:selected').val(); var jobGroup = $(this).children('option:selected').val();
$.ajax({ $.ajax({
...@@ -33,7 +33,7 @@ $(function() { ...@@ -33,7 +33,7 @@ $(function() {
$("#jobGroup").change(); $("#jobGroup").change();
} }
// 过滤时间 // filter Time
$('#filterTime').daterangepicker({ $('#filterTime').daterangepicker({
autoApply:false, autoApply:false,
singleDatePicker:false, singleDatePicker:false,
...@@ -221,18 +221,18 @@ $(function() { ...@@ -221,18 +221,18 @@ $(function() {
} }
}); });
// 日志弹框提示 // logTips alert
$('#joblog_list').on('click', '.logTips', function(){ $('#joblog_list').on('click', '.logTips', function(){
var msg = $(this).find('span').html(); var msg = $(this).find('span').html();
ComAlertTec.show(msg); ComAlertTec.show(msg);
}); });
// 搜索按钮 // search Btn
$('#searchBtn').on('click', function(){ $('#searchBtn').on('click', function(){
logTable.fnDraw(); logTable.fnDraw();
}); });
// 查看执行器详细执行日志 // logDetail look
$('#joblog_list').on('click', '.logDetail', function(){ $('#joblog_list').on('click', '.logDetail', function(){
var _id = $(this).attr('_id'); var _id = $(this).attr('_id');
...@@ -241,7 +241,7 @@ $(function() { ...@@ -241,7 +241,7 @@ $(function() {
}); });
/** /**
* 终止任务 * log Kill
*/ */
$('#joblog_list').on('click', '.logKill', function(){ $('#joblog_list').on('click', '.logKill', function(){
var _id = $(this).attr('_id'); var _id = $(this).attr('_id');
...@@ -278,7 +278,7 @@ $(function() { ...@@ -278,7 +278,7 @@ $(function() {
}); });
/** /**
* 清理任务Log * clear Log
*/ */
$('#clearLog').on('click', function(){ $('#clearLog').on('click', function(){
...@@ -325,7 +325,7 @@ $(function() { ...@@ -325,7 +325,7 @@ $(function() {
}); });
// 提示-科技主题 // Com Alert by Tec theme
var ComAlertTec = { var ComAlertTec = {
html:function(){ html:function(){
var html = var html =
...@@ -349,7 +349,7 @@ var ComAlertTec = { ...@@ -349,7 +349,7 @@ var ComAlertTec = {
$('body').append(ComAlertTec.html()); $('body').append(ComAlertTec.html());
} }
// 弹框初始 // init com alert
$('#ComAlertTec .alert').html(msg); $('#ComAlertTec .alert').html(msg);
$('#ComAlertTec').modal('show'); $('#ComAlertTec').modal('show');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论