Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh the table after every CRUD operation #61

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix : refresh the table after every CRUD operation
  • Loading branch information
Vinayaga Sundar committed Apr 27, 2017
commit 6137f6e50165ebc31a0a9edafcd9c29c851ca789
3 changes: 3 additions & 0 deletions debug-db/src/main/assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ function updateTableData(updatedData, callback) {
if(response.isSuccessful){
console.log("Data updated successfully");
callback(true);
getData(requestParameters.tableName);
showSuccessInfo("Data Updated Successfully");
} else {
console.log("Data updated failed");
Expand Down Expand Up @@ -317,6 +318,7 @@ function deleteTableData(deleteData, callback) {
if(response.isSuccessful){
console.log("Data deleted successfully");
callback(true);
getData(requestParameters.tableName);
showSuccessInfo("Data Deleted Successfully");
} else {
console.log("Data delete failed");
Expand Down Expand Up @@ -358,6 +360,7 @@ function addTableData(deleteData, callback) {
if(response.isSuccessful){
console.log("Data Added successfully");
callback(true);
getData(requestParameters.tableName);
showSuccessInfo("Data Added Successfully");
} else {
console.log("Data Adding failed");
Expand Down