? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
16 Jan 2017

Calendar formfield currently don't have an ID attribute set.

Summary of Changes

Adds the ID attribute to the calendar formfield

Testing Instructions

Check any calendar formfield (eg article "Start Publishing"). In the HTML sourcecode you should see the ID attribute on the input element.
Also, clicking on the label should now activate the calendar popup.

Documentation Changes Required

None

avatar Bakual Bakual - open - 16 Jan 2017
avatar Bakual Bakual - change - 16 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jan 2017
Category Layout
avatar dgt41
dgt41 - comment - 16 Jan 2017

@Bakual that was removed in order to make the calendar compatible with repeatable forms, so I have no clue if that will strike back somehow. but why do you need an id for?

avatar Bakual
Bakual - comment - 16 Jan 2017

Each formfield in JForm has an ID, calendar shouldn't be an exception here. It breaks the label assignment (for="jform_calendarfield_id) and obviously breaks any JavaScript that interacts with it. The latter is why I discovered it in my extension.
Repeatable forms need a different way to deal with such things. Removing the ID from formfields isn't an option.

avatar marrouchi
marrouchi - comment - 24 Jan 2017

I have tested this item successfully on 6279521


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13610.

avatar marrouchi marrouchi - test_item - 24 Jan 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Jan 2017

I have tested this item successfully on 6279521

### Without PR
<div class="input-append"> <input type="text" name="jform[publish_up]" value="2017-01-22 19:41:00"size="22"

With PR

<div class="input-append"> <input type="text" id="jform_publish_up" name="jform[publish_up]" value="2017-01-22 19:41:00"size="22"


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13610.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 24 Jan 2017 - Tested successfully
avatar jeckodevelopment jeckodevelopment - change - 26 Jan 2017
Title
Add "id" attribute to calendar <input> element
Add "id" attribute to calendar element
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 26 Jan 2017

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13610.

avatar rdeutz rdeutz - change - 27 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-27 18:23:58
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 27 Jan 2017
avatar rdeutz rdeutz - merge - 27 Jan 2017

Add a Comment

Login with GitHub to post a comment