? ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
31 Dec 2018

Pull Request for Issue # .

Summary of Changes

  • Removes a jQuery('something').nextAll().toggle('else');

FWIW https://plainjs.com got all the answers you need.
Eg for this one:
https://plainjs.com/javascript/traversing/get-siblings-of-an-element-40/

Testing Instructions

Workflow in the articles still works fine

Expected result

Actual result

Documentation Changes Required

avatar dgrammatiko dgrammatiko - open - 31 Dec 2018
avatar dgrammatiko dgrammatiko - change - 31 Dec 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Dec 2018
Category JavaScript Repository Layout
avatar bembelimen
bembelimen - comment - 31 Dec 2018

I got the following error:
grafik

avatar dgrammatiko
dgrammatiko - comment - 31 Dec 2018

@bembelimen that's because I'm an idiot, https://github.com/joomla/joomla-cms/pull/23417/files#diff-4bf6113582ca75b8b0e2f8e2dd64d87aR49
this needs to be "Joomla.toggleAllNextElements(this, 'd-none')"

avatar dgrammatiko dgrammatiko - change - 31 Dec 2018
Labels Added: ?
avatar bembelimen
bembelimen - comment - 31 Dec 2018

grafik

I sent you a PR to fix this error.

avatar dgrammatiko
dgrammatiko - comment - 1 Jan 2019

@bembelimen should be fine now

BTW as these buttons are part of the JGrid (or whatever is the name of the class that builds the table rows) I would suggest to make the layout more generic (in the root/layouts) and also move the js file to somewhere like media/system/layouts/whatever-name-of-the-layout/name-of-the-script.

e426810 1 Jan 2019 avatar dgrammatiko CS
avatar bembelimen
bembelimen - comment - 1 Jan 2019

I have tested this item successfully on e426810


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

avatar bembelimen bembelimen - test_item - 1 Jan 2019 - Tested successfully
avatar fancyFranci
fancyFranci - comment - 3 Jan 2019

I have tested this item successfully on e426810

No error messages and workflow is working correctly.


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

avatar fancyFranci fancyFranci - test_item - 3 Jan 2019 - Tested successfully
avatar Quy Quy - change - 3 Jan 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 3 Jan 2019

RTC


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

avatar dgrammatiko
dgrammatiko - comment - 4 Jan 2019
avatar wilsonge wilsonge - change - 5 Jan 2019
Labels Added: ?
avatar wilsonge wilsonge - change - 5 Jan 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-01-05 18:50:11
Closed_By wilsonge
avatar wilsonge wilsonge - close - 5 Jan 2019
avatar wilsonge wilsonge - merge - 5 Jan 2019
avatar wilsonge
wilsonge - comment - 5 Jan 2019

Thanks!

Add a Comment

Login with GitHub to post a comment