|
|
@@ -297,9 +297,9 @@ $(function() {
|
|
297
|
297
|
|
|
298
|
298
|
// GLUE模式开启
|
|
299
|
299
|
$(".glueType").change(function(){
|
|
|
300
|
+ // executorHandler
|
|
300
|
301
|
var $executorHandler = $(this).parents("form").find("input[name='executorHandler']");
|
|
301
|
302
|
var glueType = $(this).val();
|
|
302
|
|
- console.log(glueType);
|
|
303
|
303
|
if ('BEAN' != glueType) {
|
|
304
|
304
|
$executorHandler.val("");
|
|
305
|
305
|
$executorHandler.attr("readonly","readonly");
|
|
|
@@ -308,6 +308,18 @@ $(function() {
|
|
308
|
308
|
}
|
|
309
|
309
|
});
|
|
310
|
310
|
|
|
|
311
|
+ $("#addModal .glueType").change(function(){
|
|
|
312
|
+ // glueSource
|
|
|
313
|
+ var glueType = $(this).val();
|
|
|
314
|
+ if ('GLUE_GROOVY'==glueType){
|
|
|
315
|
+ $("#addModal .form textarea[name='glueSource']").val( $("#addModal .form .glueSource_java").val() );
|
|
|
316
|
+ } else if ('GLUE_SHELL'==glueType){
|
|
|
317
|
+ $("#addModal .form textarea[name='glueSource']").val( $("#addModal .form .glueSource_shell").val() );
|
|
|
318
|
+ } else if ('GLUE_PYTHON'==glueType){
|
|
|
319
|
+ $("#addModal .form textarea[name='glueSource']").val( $("#addModal .form .glueSource_python").val() );
|
|
|
320
|
+ }
|
|
|
321
|
+ });
|
|
|
322
|
+
|
|
311
|
323
|
// 更新
|
|
312
|
324
|
$("#job_list").on('click', '.update',function() {
|
|
313
|
325
|
|