From fa725b7e604fc15180d4e9cf356491c83cb8bcd2 Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 28 Dec 2020 21:43:25 +0800 Subject: [PATCH] complete add message box. --- templates/repo/cloudbrain/index.tmpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/repo/cloudbrain/index.tmpl b/templates/repo/cloudbrain/index.tmpl index 26827ce74..3dc4fb5ca 100755 --- a/templates/repo/cloudbrain/index.tmpl +++ b/templates/repo/cloudbrain/index.tmpl @@ -179,13 +179,14 @@ $('#mask').css('display', 'block') $("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;  + alert(responseText)  var json1 = JSON.parse(responseText) $('#mask').css('display', 'none') parent.location.href if (json1.result_code === "0") { - $('.alert').html('操作成功!').addClass('alert-success').show().delay(1500).fadeOut(); + $('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); } else { $('.alert').html(json1.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut(); } @@ -194,6 +195,8 @@