Ignore:
Timestamp:
01/03/24 00:00:07 (6 months ago)
Author:
gjoko kostadinov <gjokokostadinov@…>
Branches:
master
Children:
53765dd
Parents:
77205be
Message:

Add all bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/static/js/customer_admin.js

    r77205be r1413ee2  
    1616        customerForSave['phoneNumber'] = $('#phoneNumber').val();
    1717        customerForSave['username'] = $('#username').val();
    18 
    19         console.log(JSON.stringify(customerForSave));
    2018
    2119        $.ajax({
     
    5553        const recipientId = button.getAttribute('data-bs-id');
    5654
    57         console.log(recipientName + ' ' + recipientId);
    58         // If necessary, you could initiate an Ajax request here
    59         // and then do the updating in a callback.
    60 
    6155        // Update the modal's content.
    6256        const modalTitle = reviewModal.querySelector('.modal-title');
     
    9791        url: "http://localhost:8080/api/appointment/future/me"
    9892    }).then(function (data) {
    99         console.log(data);
    10093        var $el = $("#appointments-table-body");
    10194        $el.empty();
     
    194187        url: "http://localhost:8080/api/review/me"
    195188    }).then(function (data) {
    196         console.log(data);
    197189        var $el = $("#my-reviews");
    198190        $el.empty();
     
    233225            $('#reviewModal').modal('toggle');
    234226            getPastAppointments();
     227            getReviewsForCustomer();
    235228        },
    236229        error: function(error) {
     
    248241        }).success(function (data) {
    249242            alert("Appointment successfully canceled.")
    250             getAppointments();
     243            getFutureAppointments();
    251244        }).error(function (error) {
    252245            alert("Something went wrong.");
Note: See TracChangeset for help on using the changeset viewer.