?
avatar jbrailas
jbrailas
15 Nov 2017

Steps to reproduce the issue

Execute the following and pick current date.

<div id="pickdate" class="disabledbutton">
<?php echo JHTML::_( 'calendar','01/01/2015','mydate','mydate','%d/%m/%Y', array('class'=>"inputbox validate-date", 'style'=>"float:left")); ?>
</div>

Expected result

<input type="text" id="mydate" name="mydate" value="15/11/2017" class="inputbox validate-date" style="float:left" data-alt-value="01/01/2017" autocomplete="off">

Actual result

<input type="text" id="imerom_liksis" name="imerom_liksis" value="01/01/2015" class="inputbox validate-date" data-alt-value="15/11/2017" autocomplete="off">

System information (as much as possible)

Joomla 3.8.1
Apache/2.4.27 (Fedora) mod_auth_kerb/5.4 PHP/7.1.9

Additional comments

avatar jbrailas jbrailas - open - 15 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Nov 2017
avatar jbrailas jbrailas - change - 15 Nov 2017
The description was changed
avatar jbrailas jbrailas - edited - 15 Nov 2017
avatar jbrailas jbrailas - change - 15 Nov 2017
The description was changed
avatar jbrailas jbrailas - edited - 15 Nov 2017
avatar jbrailas jbrailas - change - 15 Nov 2017
The description was changed
avatar jbrailas jbrailas - edited - 15 Nov 2017
avatar jbrailas jbrailas - change - 15 Nov 2017
The description was changed
avatar jbrailas jbrailas - edited - 15 Nov 2017
avatar jbrailas jbrailas - change - 15 Nov 2017
The description was changed
avatar jbrailas jbrailas - edited - 15 Nov 2017
avatar jbrailas jbrailas - change - 15 Nov 2017
The description was changed
avatar jbrailas jbrailas - edited - 15 Nov 2017
avatar jbrailas jbrailas - change - 15 Nov 2017
The description was changed
avatar jbrailas jbrailas - edited - 15 Nov 2017
avatar rajeshstarlite
rajeshstarlite - comment - 18 Nov 2017

Hello @jbrailas
Are you using JHTML::_( 'calendar') multiple times in a page?

also style tag isn't supported https://github.com/joomla/joomla-cms/blob/staging/libraries/src/HTML/HTMLHelper.php#LC995

avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Nov 2017
Status New Information Required
avatar jbrailas
jbrailas - comment - 20 Nov 2017

I am using JHTML::_( 'calendar') two times in the same page.

avatar rajeshstarlite
rajeshstarlite - comment - 20 Nov 2017

Okay, please use unique id, name for each of the calendar and try. I think, everything should be working normally.

avatar jbrailas
jbrailas - comment - 21 Nov 2017

ok

avatar jbrailas jbrailas - change - 21 Nov 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-11-21 20:30:37
Closed_By jbrailas
avatar jbrailas jbrailas - close - 21 Nov 2017

Add a Comment

Login with GitHub to post a comment