? Success

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
22 Oct 2016

Summary of Changes

The pull fix Showon feature for a fields in the subform field, #11548 .
Also here is the perfomance optimisation.

Perfomance of showon feature in global configuration:
before 134ms
screen 2016-10-22 17 17 50 574x306

after 59ms
screen 2016-10-22 17 18 20 668x288

Testing Instructions

Create subform field (example in module Custom):

<field name="items" type="subform" formsource="modules/mod_custom/test.xml"
  multiple="true"  label="Subform Field" />

Create a form (modules/mod_custom/test.xml) for the subform field, that contain showon feature:

<?xml version="1.0" encoding="UTF-8"?>
<form>
<field name="type" type="list" default="0" label="Type" >
        <option value="0">Small</option>
        <option value="1">Medium</option>
        <option value="2">Large</option>
    </field>

        <field name="something"  type="text"
            label="Show when Type=Large" showon="type:2" />
</form>

or even use XML from #8524 (that even better for test, but without the radio button with "btn-group-yesno" as it still broken).

And make sure that showone feature works.

Documentation Changes Required

none

avatar Fedik Fedik - open - 22 Oct 2016
avatar Fedik Fedik - change - 22 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2016
Category JavaScript
avatar andrepereiradasilva
andrepereiradasilva - comment - 22 Oct 2016

@Fedik i think this needs to go to 3.7.x branch.
Also, since 3.7.x already accepts js polyfills, can't we drop jQuery here and use vannila js ?
i mean IIRC jQuery is only used in cms.js for this showon.

But also i think that can be another PR, since this intend to fix an issue too.

avatar Fedik
Fedik - comment - 22 Oct 2016

can't we drop jQuery here and use vannila js?

it can be complicated here, for now I would leave it as it is

i think this needs to go to 3.7.x branch

it is bugfix from some point of view ?
I leave it for maintainers to decide

avatar webchun
webchun - comment - 22 Oct 2016

Hi @Fedik I have tested it and it's working good Thanksss!!!!!
But there's a little thing, if you choose to use radio button with "btn-group-yesno" class as the sub-parent field instead of dropdonw list, it wont be clickable. So no showon item will be displayed
1bjzj

avatar Fedik
Fedik - comment - 23 Oct 2016

styling of the radio button with "btn-group-yesno" it another issue, not related to showon
ignore it here

avatar Fedik Fedik - change - 23 Oct 2016
The description was changed
avatar Fedik Fedik - edited - 23 Oct 2016
avatar webchun
webchun - comment - 23 Oct 2016

Ah I see. Hopefully this fix will be incorporated in the next 3.6.4

avatar zero-24
zero-24 - comment - 23 Oct 2016

@webchun can you report your test via the tracker than?

avatar webchun webchun - test_item - 23 Oct 2016 - Tested successfully
avatar webchun
webchun - comment - 23 Oct 2016

I have tested this item successfully on fa779c5


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

avatar webchun
webchun - comment - 23 Oct 2016

@zero-24 Done! Thanks


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

avatar andrepereiradasilva andrepereiradasilva - test_item - 23 Oct 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 23 Oct 2016

I have tested this item successfully on fa779c5

works as described


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

avatar dgt41 dgt41 - test_item - 23 Oct 2016 - Tested successfully
avatar dgt41
dgt41 - comment - 23 Oct 2016

I have tested this item successfully on fa779c5


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

avatar dgt41 dgt41 - change - 23 Oct 2016
Status Pending Ready to Commit
avatar dgt41
dgt41 - comment - 23 Oct 2016

RTC
Thanks @Fedik

avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2016
Labels Added: ?
avatar zero-24 zero-24 - close - 23 Oct 2016
avatar zero-24 zero-24 - merge - 23 Oct 2016
avatar joomla-cms-bot joomla-cms-bot - close - 23 Oct 2016
avatar zero-24 zero-24 - change - 23 Oct 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-23 15:33:22
Closed_By zero-24
avatar zero-24
zero-24 - comment - 23 Oct 2016

Thanks merged ?

avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment