Changeset 1413ee2 for src/main/resources/static/js/customer_admin.js
- Timestamp:
- 01/03/24 00:00:07 (6 months ago)
- Branches:
- master
- Children:
- 53765dd
- Parents:
- 77205be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/js/customer_admin.js
r77205be r1413ee2 16 16 customerForSave['phoneNumber'] = $('#phoneNumber').val(); 17 17 customerForSave['username'] = $('#username').val(); 18 19 console.log(JSON.stringify(customerForSave));20 18 21 19 $.ajax({ … … 55 53 const recipientId = button.getAttribute('data-bs-id'); 56 54 57 console.log(recipientName + ' ' + recipientId);58 // If necessary, you could initiate an Ajax request here59 // and then do the updating in a callback.60 61 55 // Update the modal's content. 62 56 const modalTitle = reviewModal.querySelector('.modal-title'); … … 97 91 url: "http://localhost:8080/api/appointment/future/me" 98 92 }).then(function (data) { 99 console.log(data);100 93 var $el = $("#appointments-table-body"); 101 94 $el.empty(); … … 194 187 url: "http://localhost:8080/api/review/me" 195 188 }).then(function (data) { 196 console.log(data);197 189 var $el = $("#my-reviews"); 198 190 $el.empty(); … … 233 225 $('#reviewModal').modal('toggle'); 234 226 getPastAppointments(); 227 getReviewsForCustomer(); 235 228 }, 236 229 error: function(error) { … … 248 241 }).success(function (data) { 249 242 alert("Appointment successfully canceled.") 250 get Appointments();243 getFutureAppointments(); 251 244 }).error(function (error) { 252 245 alert("Something went wrong.");
Note:
See TracChangeset
for help on using the changeset viewer.