? Success

User tests: Successful: Unsuccessful:

avatar Minei3oat
Minei3oat
6 Sep 2016

Pull Request for Issue # .

Summary of Changes

Now accordion-toggle of slides which where collapsed by opening an other slide in an accordion with the option parent set to the id of the accordion gets the class collapsed.

Testing Instructions

For making the testing simple I've created a component :).
Download and install https://github.com/Minei3oat/com_test .
The component contains a single view with five slides. The style of the component will show accordion-toggles with class collapsed green and without red. This makes it easy to see the difference.
Now open a slide which is not open. The open slide will close, but its accordion-toggle don't gets the class collapsed as it gets when you close the slide yourself.
After applying this patch the class collapsed will get asseigned.

Documentation Changes Required

none

avatar Minei3oat Minei3oat - open - 6 Sep 2016
avatar Minei3oat Minei3oat - change - 6 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Sep 2016
Category JavaScript
avatar joomla-cms-bot joomla-cms-bot - change - 6 Sep 2016
Labels Added: ?
avatar brianteeman
brianteeman - comment - 6 Sep 2016

Changing the bootstrap supplied js files is not an option

avatar Minei3oat
Minei3oat - comment - 6 Sep 2016

Then I don't see a posibility to fix this issue.
Bootstrap fixed this issue with the code in this PR in version 3 but updating isn't good because it is not backward compatible.

avatar brianteeman
brianteeman - comment - 6 Sep 2016

If there is no other way then it will have to be closed as a known issue

avatar Minei3oat Minei3oat - change - 6 Sep 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-09-06 13:40:00
Closed_By Minei3oat
avatar Minei3oat Minei3oat - close - 6 Sep 2016
avatar Minei3oat
Minei3oat - comment - 10 Sep 2016

I've did some research. It is possible to add the code with the declaration of the needed variables

  • in an other js file loaded after bootstrap (I found no suitable: There is no suitable general js file loaded and in the template.js all templates must apply this fix)
  • or in the script part in the head. There it could be added once by JHtmlBootstrap if it is needed.

Is the second one an option?

avatar Bakual
Bakual - comment - 10 Sep 2016

Using JHtmlBootstrap should be fine.

Add a Comment

Login with GitHub to post a comment