Browse Source

fix issue

tags/v1.21.12.2^2
zhoupzh 3 years ago
parent
commit
f73020e4be
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      templates/repo/debugjob/index.tmpl

+ 0
- 5
templates/repo/debugjob/index.tmpl View File

@@ -705,13 +705,8 @@


$("iframe[name=iframeContent]").on("load", function() {   $("iframe[name=iframeContent]").on("load", function() {  
var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML;  var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML; 
console.log("responseText",responseText)
var json1 = JSON.parse(responseText) var json1 = JSON.parse(responseText)
$('#mask').css('display', 'none') $('#mask').css('display', 'none')
// parent.location.href
console.log(json1)
console.log(json1.result_code)
console.log(json1.result_code === "0")
if (json1.result_code === "0") { if (json1.result_code === "0") {
$('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); $('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut();
} else { } else {


Loading…
Cancel
Save