From d4aed97b8a5e993d209a037f2834c6fb0affb8ea Mon Sep 17 00:00:00 2001
From: Ye Tian <yetian@student.unimelb.edu.au>
Date: Mon, 1 Jun 2020 15:41:40 +0800
Subject: [PATCH] changes on admin submit

---
 src/jdbc.properties                   | 2 +-
 web/js/Award/awards_admin.js          | 2 +-
 web/js/Experience/admin-background.js | 6 ++++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/jdbc.properties b/src/jdbc.properties
index a2bb72e..9314c2d 100644
--- a/src/jdbc.properties
+++ b/src/jdbc.properties
@@ -1,4 +1,4 @@
 url=jdbc:mysql://localhost:3306/eportfolio_database?useUnicode=true&characterEncoding=utf-8&useSSL=false
 user=root
-password=1234
+password=root
 driver=com.mysql.jdbc.Driver
\ No newline at end of file
diff --git a/web/js/Award/awards_admin.js b/web/js/Award/awards_admin.js
index 0f1829a..7fd8796 100644
--- a/web/js/Award/awards_admin.js
+++ b/web/js/Award/awards_admin.js
@@ -152,7 +152,7 @@ function addAward(){
         dataType: 'text',
         success: function(data){
             if(data == "success"){
-                //alert("insert success");
+                alert("Add Award Success !");
                 window.location.href="admin.html";
             } else{
                 alert("insert failed");
diff --git a/web/js/Experience/admin-background.js b/web/js/Experience/admin-background.js
index 27d624b..2085390 100644
--- a/web/js/Experience/admin-background.js
+++ b/web/js/Experience/admin-background.js
@@ -210,7 +210,8 @@ function addNewEdu(){
         },
         dataType: 'text',
         success: function(response){
-            alert("Add New Education Experience Success !")
+            alert("Add New Education Experience Success !");
+            window.location.href="admin.html";
         },
         error : function(msg) {
             alert("Add New Education Experience Failed");
@@ -241,7 +242,8 @@ function addNewWork(){
         },
         dataType: 'text',
         success: function(response){
-            alert("Add New Work Experience Success !")
+            alert("Add New Work Experience Success !");
+            window.location.href="admin.html";
         },
         error : function(msg) {
             alert("Add New Work Experience Failed");
-- 
GitLab