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

Issue #3944: update CSS class for DF simple text input fields on Ajax… #4030

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Changes from all commits
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
9 changes: 8 additions & 1 deletion var/httpd/htdocs/js/Core.AJAX.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// OTOBO is a web-based ticketing system for service organisations.
// --
// Copyright (C) 2001-2020 OTRS AG, https://otrs.com/
// Copyright (C) 2019-2024 Rother OSS GmbH, https://otobo.io/
// Copyright (C) 2019-2025 Rother OSS GmbH, https://otobo.io/
// --
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
Expand Down Expand Up @@ -482,6 +482,13 @@ Core.AJAX = (function (TargetNS) {
if ($Element.hasClass('Modernize')) {
$Element.trigger('redraw.InputField');
}

// relevant for customer.pl - trigger a blur after
// update to prevent label being displayed in front
// of value - see issue #3944
if ( $Element.is('input[type=text]') ) {
$Element.trigger('blur');
}
});
}

Expand Down
Loading