瀏覽代碼

按钮type属性冲入fix

xueli.xue 8 年之前
父節點
當前提交
901f665831
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js

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

@@ -103,9 +103,9 @@ $(function() {
103 103
 	                			// status
104 104
 	                			var pause_resume = "";
105 105
 	                			if ('NORMAL' == row.jobStatus) {
106
-	                				pause_resume = '<button class="btn btn-primary btn-xs job_operate" type="job_pause" type="button">暂停</button>  ';
106
+	                				pause_resume = '<button class="btn btn-primary btn-xs job_operate" _type="job_pause" type="button">暂停</button>  ';
107 107
 								} else if ('PAUSED' == row.jobStatus){
108
-									pause_resume = '<button class="btn btn-primary btn-xs job_operate" type="job_resume" type="button">恢复</button>  ';
108
+									pause_resume = '<button class="btn btn-primary btn-xs job_operate" _type="job_resume" type="button">恢复</button>  ';
109 109
 								}
110 110
 	                			// log url
111 111
 	                			var logUrl = base_url +'/joblog?jobId='+ row.id;
@@ -130,12 +130,12 @@ $(function() {
130 130
 									' glueType="'+ row.glueType +'" '+
131 131
                                     ' childJobKey="'+ row.childJobKey +'" '+
132 132
 									'>'+
133
-									'<button class="btn btn-primary btn-xs job_operate" type="job_trigger" type="button">执行</button>  '+
133
+									'<button class="btn btn-primary btn-xs job_operate" _type="job_trigger" type="button">执行</button>  '+
134 134
 									pause_resume +
135 135
 									'<button class="btn btn-primary btn-xs" type="job_del" type="button" onclick="javascript:window.open(\'' + logUrl + '\')" >日志</button><br>  '+
136 136
 									'<button class="btn btn-warning btn-xs update" type="button">编辑</button>  '+
137 137
 									codeBtn +
138
-									'<button class="btn btn-danger btn-xs job_operate" type="job_del" type="button">删除</button>  '+
138
+									'<button class="btn btn-danger btn-xs job_operate" _type="job_del" type="button">删除</button>  '+
139 139
 									'</p>';
140 140
 
141 141
 	                			return html;
@@ -180,7 +180,7 @@ $(function() {
180 180
 		var url;
181 181
 		var needFresh = false;
182 182
 
183
-		var type = $(this).attr("type");
183
+		var type = $(this).attr("_type");
184 184
 		if ("job_pause" == type) {
185 185
 			typeName = "暂停";
186 186
 			url = base_url + "/jobinfo/pause";