diff --git a/templates/repo/debugjob/index.tmpl b/templates/repo/debugjob/index.tmpl index 7aa4bfa25..7fd655a9c 100755 --- a/templates/repo/debugjob/index.tmpl +++ b/templates/repo/debugjob/index.tmpl @@ -203,10 +203,10 @@ - +
{{template "repo/header" .}} - + {{template "base/alert" .}} @@ -516,6 +516,7 @@ onApprove: function() { document.getElementById(delId).submit() flag = true + $('.alert').html('删除成功').removeClass('alert-success').addClass('alert-danger').show().delay(1500).fadeOut(); }, onHidden: function() { if (flag == false) { @@ -704,10 +705,13 @@ $("iframe[name=iframeContent]").on("load", function() {   var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML;  + console.log("responseText",responseText) var json1 = JSON.parse(responseText) $('#mask').css('display', 'none') - parent.location.href - + // parent.location.href + console.log(json1) + console.log(json1.result_code) + console.log(json1.result_code === "0") if (json1.result_code === "0") { $('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); } else {