Skip to content

Commit

Permalink
Issue #2251: Unifying div classes for Date and DateTime fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Apr 24, 2023
1 parent 07b50b0 commit addff78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# --

<div class="DynamicFieldDateTime">
<div class="DynamicFieldDate">
[% Data.DateSelectionHTML %]
[% IF Data.Mandatory %]
<div id="[% Data.DivIDMandatory %]" class="TooltipErrorMessage">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# --

<div class="DynamicFieldDate">
[% Data.DateSelectionHTML %]
[% IF Data.Mandatory %]
<div id="[% Data.DivIDMandatory %]" class="TooltipErrorMessage">
Expand All @@ -29,3 +30,4 @@
</p>
</div>
[% END %]
</div>
2 changes: 1 addition & 1 deletion var/httpd/htdocs/js/Core.UI.InputFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,7 @@ Core.UI.InputFields = (function (TargetNS) {
});

//DateTimeDynamicField
$('.DynamicFieldDateTime', $Cell).each(function () {
$('.DynamicFieldDate', $Cell).each(function () {
var Prefix = $('[name$="Year"]', $(this)).attr('name').replace('Year', '');
Core.UI.Datepicker.Init({
Day: $('[name="' + Core.App.EscapeSelector(Prefix) + 'Day"]', $(this)),
Expand Down

0 comments on commit addff78

Please sign in to comment.