? Pending

User tests: Successful: Unsuccessful:

avatar Anu1601CS
Anu1601CS
19 Jul 2018

Pull Request for Issue #21142

Summary of Changes

Change coding style.

Testing Instructions

Steps to reproduce the issue

I created the test with new uitab function.
So, if you test this on other place, this will not work. Because, we have work to convert bootstrap.startTabSet to uitab.startTabSet.

So, use

  1. article visit administrator/index.php?option=com_content&view=article&layout=edit
    and

  2. template visit administrator/index.phpoption=com_templates&view=template&id=510&file=aG9tZQ==

And change tab and refresh page.

Expected result

You still on same tab.

Actual result

Tab changed.

Documentation Changes Required

No

@dgrammatiko @laoneo @astridx

bf7d332 19 Jul 2018 avatar Anu1601CS tab
0c577de 19 Jul 2018 avatar Anu1601CS test
avatar Anu1601CS Anu1601CS - open - 19 Jul 2018
avatar Anu1601CS Anu1601CS - change - 19 Jul 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jul 2018
Category Administration com_templates JavaScript Repository
avatar Anu1601CS Anu1601CS - change - 19 Jul 2018
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 19 Jul 2018 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2018

I have tested this item ? unsuccessfully on 089aec4

Same Behaviour using PR as described in #21142, test on Template > Styles.

System information

  • Nightly Build 4.0.0-alpha4-dev
  • Multilingual Sample Data
  • Template: Cassiopeia
  • macOS Sierra, 10.13.6
  • Firefox 61 (64-bit)

CloudAccess.net

avatar dgrammatiko
dgrammatiko - comment - 19 Jul 2018

Please undo the changes in the js

avatar joomla-cms-bot joomla-cms-bot - change - 19 Jul 2018
Category Administration com_templates JavaScript Repository Administration com_templates
avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

I have tested this item red_circle unsuccessfully on 089aec4

Same Behaviour using PR as described in #21142, test on Template > Styles.

System information
Nightly Build 4.0.0-alpha4-dev
Multilingual Sample Data
Template: Cassiopeia
macOS Sierra, 10.13.6
Firefox 61 (64-bit)
CloudAccess.net
PHP 7.1.15
MySQLi 5.7.18-cll-lve

@franz-wohlkoenig
Yes, this is an expected behaviour because code is not using new tab function.

avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

Please undo the changes in the js

@dgrammatiko I reverted the changes in js
After this, I am getting the same issue.
screenshot from 2018-07-19 18-57-28

avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

@dgrammatiko I changes the code here.

const theId = `#tab-${tab.hash}`;

To like this
screenshot from 2018-07-19 19-03-49

avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

Then it works fine for me.
Because, tab.hash is undefined. We want id of tab right ?

avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

@franz-wohlkoenig You can follow this.

  1. Open the System Menü and click on Site Templates

  2. Click on
    selection_012

  3. Change tab to Created Overrides and reload page.

avatar dgrammatiko
dgrammatiko - comment - 19 Jul 2018

@Anu1601CS the code is not in this repo, it is in https://github.com/joomla-projects/custom-elements

We just copy this to the main repo because it was easier when we were working with the backend template.
Essentially if you change something here will be lost when we switch to the normal, custom elements repo.

avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

@dgrammatiko Ok, should i close this ?
And, make a PR in
https://github.com/joomla-projects/custom-elements

avatar Quy
Quy - comment - 19 Jul 2018

@Anu1601CS Yes, that is how I interpreted his comment.

avatar dgrammatiko
dgrammatiko - comment - 19 Jul 2018

No this pr right now is fine

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2018

@Anu1601CS i was following Description in #21142 as the Test Instructions wasn't clear for me.

Will try again.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2018

Following Instructions on #21183 (comment) got:
screen shot 2018-07-19 at 16 56 27

avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

@franz-wohlkoenig No, right now this change is fine as @dgrammatiko commented.
Because we have work to change bootstrap.startTabSet to uitab.startTabSet as per our new code.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 19 Jul 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2018

I have tested this item successfully on f71268c


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

avatar Anu1601CS
Anu1601CS - comment - 19 Jul 2018

#21183 (comment)
@franz-wohlkoenig Yes, this is an issue right now. So, we have to fix in main custom elements repo here https://github.com/joomla-projects/custom-elements

Then, this issue going to fix.
I would suggest you to reopen this issue. #21142

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2018

#21142 reopened as stated above.

avatar Anu1601CS Anu1601CS - change - 19 Jul 2018
The description was changed
avatar Anu1601CS Anu1601CS - edited - 19 Jul 2018
f967b32 20 Jul 2018 avatar Anu1601CS CS
avatar astridx astridx - test_item - 20 Jul 2018 - Tested successfully
avatar astridx
astridx - comment - 20 Jul 2018

I have tested this item successfully on dae854f

I checked out this branch and I could see the new uitab. As only the file administrator/components/com_templates/tmpl/template/default.php is changed that's what I expected.

After refreshing I saw the content of all tabs on the page (among themselves). That should be changed.


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

templates customise cassiopeia test administration 28

avatar dgrammatiko
dgrammatiko - comment - 20 Jul 2018

After refreshing I saw the content of all tabs on the page (among themselves). That should be changed.

what do you mean? The content is available before the js has been executed, this is normal. Hiding it is a huge problem for SEO!

avatar astridx
astridx - comment - 20 Jul 2018

@dgrammatiko

what do you mean? The content is available before the js has been executed, this is normal. Hiding it is a huge problem for SEO!

I mean that I see all content like you see in the attached picture. I only expect to see the content of the current tab. But I think we have to handle this via javascript int the the file /media/system/webcomponents/js/joomla-tab.js , right?

avatar dgrammatiko
dgrammatiko - comment - 20 Jul 2018

@astridx all the tabs are active as far as i can see, that's why you see all the tabs

avatar dgrammatiko
dgrammatiko - comment - 20 Jul 2018

This tabs bug will be fixed shortly

avatar astridx
astridx - comment - 20 Jul 2018

This tabs bug will be fixed shortly

@dgrammatiko Thank you for confirming. I marked the test as successful because I assumed that this is just about switching to the new ui tabs. I just wanted to say that the view is not quite correct yet.

avatar dgrammatiko
dgrammatiko - comment - 20 Jul 2018

please test #21204

avatar laoneo
laoneo - comment - 26 Jul 2018

What's the status here?

avatar Anu1601CS
Anu1601CS - comment - 26 Jul 2018

@laoneo We will wait until #21204 get merge to the core.

avatar astridx
astridx - comment - 3 Aug 2018

#21204 is merged now.

avatar Anu1601CS
Anu1601CS - comment - 5 Aug 2018

@dgrammatiko Is tab issue fixed?

avatar dgrammatiko
dgrammatiko - comment - 5 Aug 2018

@Anu1601CS I have no clue, I added the part for the id, is there something else broken?

avatar Anu1601CS
Anu1601CS - comment - 5 Aug 2018

@dgrammatiko Yes, I think here https://github.com/joomla-projects/custom-elements/blob/563e8c4e36038bcd3723720f6903adb9b34110ac/src/js/tab/tab.js#L104

It always gives -1 . So, if we set if (tabLinkHash.indexOf(theId) === -1) Then, it works fine.

avatar brianteeman
brianteeman - comment - 15 Oct 2018

Closed - nothing left to do here and I created a pr for the js joomla-projects/custom-elements#106

avatar brianteeman brianteeman - close - 15 Oct 2018
avatar brianteeman brianteeman - change - 15 Oct 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-10-15 12:14:24
Closed_By brianteeman

Add a Comment

Login with GitHub to post a comment