diff --git a/web/js/Experience/admin-background.js b/web/js/Experience/admin-background.js index 3b91b501ede7b4c0eeb08c0d1818aafce7651b3d..712dda2b9be6fd6982224e27e96c888585979038 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 df5f4a7b926383d74ae4ee82c69d2bf25a665257..669ccf051fb727e019548d005586fc5a442325a0 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',