![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/resources/assets/js/users/ |
'use strict' $(document).on('click','#changePassword', function() { $('#changePasswordForm')[0].reset(); $('.pass-check-meter div.flex-grow-1').removeClass('active'); $('#changePasswordModal').modal('show').appendTo('body'); }); $(document).on('click','#passwordChangeBtn', function() { $.ajax({ url: changePasswordUrl, type: 'PUT', data: $('#changePasswordForm').serialize(), success: function (result) { $('#changePasswordModal').modal('hide'); $('#changePasswordForm')[0].reset(); displaySuccessMessage(result.message); setTimeout(function () { location.reload(); }, 1000); }, error: function error(result) { displayErrorMessage(result.responseJSON.message); }, }); }); window.printErrorMessage = function (selector, errorResult) { $(selector).show().html(''); $(selector).text(errorResult.message); }; $(document).on('click', '#emailNotification', function () { $('#emailNotificationModal').modal('show').appendTo('body'); $('#emailNotificationForm')[0].reset(); }); $(document).on('click','#emailNotificationChange',function (){ $.ajax({ url: route('emailNotification'), type: 'PUT', data: $('#emailNotificationForm').serialize(), success: function (result) { $('#emailNotificationModal').modal('hide'); displaySuccessMessage(result.message); }, error: function error(result) { displayErrorMessage(result.responseJSON.message); }, }); });