From 0c17767c294246c2303a25ed7be40a5432ea0e08 Mon Sep 17 00:00:00 2001
From: Alex Xin <Xin_boyan@126.com>
Date: Mon, 1 Jun 2020 23:13:17 +0800
Subject: [PATCH] minor display bug fixed
---
web/js/Experience/admin-background.js | 23 +++++++++++--------
.../Project/load-project-to-project-show.js | 2 +-
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/web/js/Experience/admin-background.js b/web/js/Experience/admin-background.js
index 3b91b50..712dda2 100644
--- a/web/js/Experience/admin-background.js
+++ b/web/js/Experience/admin-background.js
@@ -210,11 +210,12 @@ function addNewEdu(){
},
dataType: 'text',
success: function(response){
- alert("Add New Education Experience Success !");
- window.location.href="admin.html";
- },
- error : function(msg) {
- alert("Add New Education Experience Failed");
+ if (response == "success"){
+ alert("Add New Education Experience Success !");
+ window.location.href="admin.html";
+ } else{
+ alert("Add New Education Experience Failed");
+ }
}
});
@@ -242,11 +243,13 @@ function addNewWork(){
},
dataType: 'text',
success: function(response){
- alert("Add New Work Experience Success !");
- window.location.href="admin.html";
- },
- error : function(msg) {
- alert("Add New Work Experience Failed");
+ if (response == "success"){
+ alert("Add New Work Experience Success !");
+ window.location.href="admin.html";
+ } else{
+ alert("Add New Work Experience Success !");
+ }
+
}
});
}
diff --git a/web/js/Project/load-project-to-project-show.js b/web/js/Project/load-project-to-project-show.js
index df5f4a7..669ccf0 100644
--- a/web/js/Project/load-project-to-project-show.js
+++ b/web/js/Project/load-project-to-project-show.js
@@ -547,7 +547,7 @@ function clickEvent(){
var index = v.id;
$.confirm({
- title: 'Image Delete Confirm',
+ title: 'File Delete Confirm',
content: 'Are You Sure You Want to Delete this File?\n' +
'File Cannot be Recovered',
icon: 'fa fa-warning',
--
GitLab