Skip to content

Commit

Permalink
Allow locking to min and / or max year to current year
Browse files Browse the repository at this point in the history
  • Loading branch information
ggppdk committed Mar 5, 2018
1 parent 19225c0 commit e216889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/joomla/form/field/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
data-show-others="<?php echo $filltable; ?>"
data-time-24="<?php echo $timeformat; ?>"
data-only-months-nav="<?php echo $singleheader; ?>"
<?php echo !empty($minYear) ? 'data-min-year="' . $minYear . '"' : ''; ?>
<?php echo !empty($maxYear) ? 'data-max-year="' . $maxYear . '"' : ''; ?>
<?php echo strlen($minYear) ? 'data-min-year="' . $minYear . '"' : ''; ?>
<?php echo strlen($maxYear) ? 'data-max-year="' . $maxYear . '"' : ''; ?>
title="<?php echo JText::_('JLIB_HTML_BEHAVIOR_OPEN_CALENDAR'); ?>"
><span class="icon-calendar" aria-hidden="true"></span></button>
<?php if (!$readonly && !$disabled) : ?>
Expand Down

0 comments on commit e216889

Please sign in to comment.