Skip to content

Commit

Permalink
#263 update nns param
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyhu committed Oct 19, 2017
1 parent 7eff187 commit d6045a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions saturn-console/src/main/resources/static/js/job_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ $(function() {
"url": "job/loadHistoryConfig",
"type": "POST",
"deferRender": true,
"data": {jobName:jobName},
"data": {jobName:jobName,ns:$("#namespace").val(), nns:regName},
"dataSrc": "data"
},
"rowCallback": function( row, data, displayIndex, displayIndexFull ) {
Expand Down Expand Up @@ -922,7 +922,7 @@ $(function() {
function bindCheckAndForecastCronButton() {
$(document).on("click", "#check-and-forecast-cron", function(event) {
var timeZone = $("#timeZone").val();
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : $("#cron").val()}, function (data) {
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : $("#cron").val(),nns:regName}, function (data) {
var msg = "检验结果:";
if(data.success == true) {
msg += "成功";
Expand Down
12 changes: 6 additions & 6 deletions saturn-console/src/main/resources/static/js/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ $(function() {
var $btn = $(this).button('loading');
var jobName = $("#migrate-jobName").html();
var newTask = $("#migrate-job-tasks-select").find("option:selected").val();
$.post("job/migrateJobNewTask", {jobName : jobName, newTask : newTask}, function(data) {
$.post("job/migrateJobNewTask", {jobName : jobName, newTask : newTask,nns:regName}, function(data) {
if(data.success == true) {
showSuccessDialogWithCallback(function() {location.reload(true);});
} else {
Expand All @@ -785,7 +785,7 @@ $(function() {
var $btn = $(this).button('loading');
var jobName = $("#batch-migrate-jobName").html();
var newTask = $("#batch-migrate-job-tasks-select").find("option:selected").val();
$.post("job/batchMigrateJobNewTask", {jobNames : jobName, newTask : newTask}, function(data) {
$.post("job/batchMigrateJobNewTask", {jobNames : jobName, newTask : newTask,nns:regName}, function(data) {
if(data.success == true) {
showSuccessDialogWithCallback(function() {location.reload(true);});
} else {
Expand All @@ -802,7 +802,7 @@ $(function() {
if($("#batch-preferList").val() != null) {
var newPreferExecutors = $("#batch-preferList").val().toString();
}
$.post("job/batchSetPreferExecutors", {jobNames : jobName, newPreferExecutors : newPreferExecutors}, function(data) {
$.post("job/batchSetPreferExecutors", {jobNames : jobName, newPreferExecutors : newPreferExecutors,nns:regName}, function(data) {
if(data.success == true) {
showSuccessDialogWithCallback(function() {location.reload(true);});
} else {
Expand Down Expand Up @@ -1333,7 +1333,7 @@ $(function() {
selectedJobName = $jobNamesSelect.val();
var st = $("#start-time").val();
var et = $("#end-time").val();
$logstashTable.ajax.url("logstash?jn="+selectedJobName+"&st="+st+"&et="+et).load();
$logstashTable.ajax.url("logstash?jn="+selectedJobName+"&st="+st+"&et="+et+"&nns="+regName+"&ns="+ns).load();
});
if ($("#jobs").is(':visible')) {
$loading.show();
Expand Down Expand Up @@ -1542,7 +1542,7 @@ $(function() {
});
$("#jobs-overview-tbl_filter label").before(jobOperation);

$.get("job/getAllJobGroups", {}, function (data) {
$.get("job/getAllJobGroups", {nns:regName}, function (data) {
if(!data){
return;
}
Expand Down Expand Up @@ -2287,7 +2287,7 @@ $(function() {
}

function checkAndForecastCron(timeZone, cron) {
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : cron}, function (data) {
$.post("job/checkAndForecastCron", {timeZone: timeZone, cron : cron,nns:regName}, function (data) {
var msg = "检验结果:";
if(data.success == true) {
msg += "成功";
Expand Down

0 comments on commit d6045a0

Please sign in to comment.