Jelszó módosítása

This commit is contained in:
2025-04-14 12:31:50 +02:00
parent 44e6719c3d
commit 29200ae418
18 changed files with 676 additions and 9 deletions
+8 -1
View File
@@ -77,7 +77,8 @@ function showMessageModal(options) {
var defaults = {
title: 'Üzenet',
message: 'Ez egy információs üzenet.',
okText: 'OK'
okText: 'OK',
redirectUrl: null
};
var settings = $.extend({}, defaults, options);
@@ -87,6 +88,12 @@ function showMessageModal(options) {
$('#messageModalBody').html(settings.message);
$('#messageModalOkBtn').text(settings.okText);
$('#messageModalOkBtn').off('click').on('click', function () {
if (settings.redirectUrl) {
window.location.href = settings.redirectUrl;
}
});
// Modal megnyitása
var modal = new bootstrap.Modal(document.getElementById('messageModal'), {
backdrop: 'static',