diff --git a/src/jdbc.properties b/src/jdbc.properties index a2bb72ec91697819fe3891f07a700674c3b450a3..9314c2dd98fa7e820fb3e7de66119d5edfa76064 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 0f1829a2aca79c529bbca2c9bc388f127f35bfe8..7fd8796c91ce7be789bad7f21cd77f0c731a0c57 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 27d624b0c63719a46fcbe45f3768a3498e545b6c..20853905069db04bd96b389e74e76e261079ef40 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");