Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beez: Remove useless JS-Code related to btn-group #12029

Closed
wants to merge 2 commits into from

Conversation

Minei3oat
Copy link
Contributor

@Minei3oat Minei3oat commented Sep 13, 2016

Pull Request for Issue # .

Summary of Changes

In the template.js of Beez the JS-Code for boostraps btn-group is implementeted but without the missing CSS-Code it is useless. This PR removes the useless code.
If the btn-group should be added later, the code can be copied from Protostar.

Testing Instructions

Beez should work as before.

Documentation Changes Required

none

Since Beez doesn't implement btn-group and the classes used by btn-group
the template.js is useless and can be removed.
Since one line was not for btn-group template.js is needed for this
single line.
@Minei3oat Minei3oat changed the title Remove btn group beez Beez: Remove btn-group Sep 13, 2016
@dgrammatiko
Copy link
Contributor

@Minei3oat I think it would be better if you add the missing css instead of removing the script

@Minei3oat Minei3oat changed the title Beez: Remove btn-group Beez: Add btn-group Sep 13, 2016
@Minei3oat
Copy link
Contributor Author

Now the missing css is added.

@Minei3oat
Copy link
Contributor Author

The Bootstrap code is in conflict with Beez3 (Look at the buttons when editing an article or module: https://github.com/joomla/joomla-cms/blob/staging/templates/beez3/css/personal.css#L145-L186).

Since Beez3 sometimes didn't uses chosen and uses a very simple style, I'm thinking about removing btn-group entirely like I've done first. Its not really needed.

@brianteeman
Copy link
Contributor

@Minei3oat what is the status of this. If I read your last comment correctly there is more work to be done before it is ready for testing?


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

@Minei3oat
Copy link
Contributor Author

Yes, that's right, there are is the problem with the buttons when editing an article.

@anjahage
Copy link

anjahage commented Jun 3, 2017

@Minei3oat Is this issue still relevant?

Otherwise @nibra will look at it


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

@Minei3oat
Copy link
Contributor Author

This issue was never relevant.
The buttons work without the design as good as with the colored design. Because of this, I first wanted to remove the useless JavaScript-code but as you can see there was the wish of adding the missing css instead of removing the js. But as this issue is not so relevant and my time limited I don't invested much and so it got stuck with the conflicts.

@ghost
Copy link

ghost commented Jun 3, 2017

@Minei3oat so should this PR be closed?

@Minei3oat
Copy link
Contributor Author

As there is still useless code, I propose to go back to the original intention of this PR and delete this code.
If someone want's to add the colored buttons later, the code can be copied from Protostar.

@ghost
Copy link

ghost commented Jun 22, 2017

@Minei3oat is this PR ready for Test?

@Minei3oat Minei3oat changed the title Beez: Add btn-group Beez: Remove useless JS-Code related to btn-group Jun 22, 2017
@Minei3oat
Copy link
Contributor Author

Now it should be ready for testing.

@ghost
Copy link

ghost commented Jun 22, 2017

thanks @Minei3oat

@ghost
Copy link

ghost commented Jun 23, 2017

@Minei3oat i have tested a little but have less Experience in Beez so it would help if you can instruct which Sample Sites to look easy for testing.

@Minei3oat
Copy link
Contributor Author

As I explained above, the removed code was useless because the CSS-Classes are missing. I discovered this by viewing a form with btn-group.

If code-review counts as test, the best test would be to search the CSS-Classes added by the removed JS and see that they not exists.

@ghost
Copy link

ghost commented Jun 23, 2017

can you give me an Example of Form with btn-group so i can test if

Beez should work as before.

@Minei3oat
Copy link
Contributor Author

If you edit a module their is the possibility to change the status of the module (Published/Unpublished/Trashed). This is a btn-group, as you can see in Protostar.

@ghost
Copy link

ghost commented Jun 23, 2017

Tested on an Article (Publish / Unpublish / ...) cause using Beez Icon on Module for "Edit" isn't shown. All works as without Patch but Source-Code looks same with- and without PR.

@Minei3oat
Copy link
Contributor Author

The Article-View doesn't uses btn-group.
With adding &template=beez3 to the URL you can change the template to Beez for the request.

@ghost
Copy link

ghost commented Jun 23, 2017

@Minei3oat
Copy link
Contributor Author

Because there is no other parameter in the URL it must be a ? instead of a &.

@ghost
Copy link

ghost commented Jun 23, 2017

that works. But there is also no Icon on Module.

@Minei3oat
Copy link
Contributor Author

  1. Load the page with the module you want to edit with an other template
  2. Click the edit icon
  3. add the parameter to the URL

This will result in the edit page of the module displayed with Beez as template.

@ghost
Copy link

ghost commented Jun 23, 2017

Source-Code without PR:

without

Source-Code with PR:

with
For Tester: use &template=beez3

@Minei3oat
Copy link
Contributor Author

Due to unknown reasons Beez uses the class btn-group for this buttons (sometimes all in one div, sometimes all in separat divs) without using them in CSS. But this code is hardcoded in PHP-Files in /html/... and not influenced by this PR.

@ghost
Copy link

ghost commented Jun 23, 2017

so how to Test this PR?

@Minei3oat
Copy link
Contributor Author

As I stated above the code was useless. So I don't know how to test this PR. Imho there is the option to compare the functionality of some pages/btn-groups before and after the PR and find no difference or to look at the CSS of Beez and see that the JS-Code was useless. (Beez doesn't have CSS-Rules for active in this context, btn-primary, btn-succes, btn-danger, disabled)

@ghost
Copy link

ghost commented Jun 23, 2017

Hopefully there are 2 other Tester with more Skills.

@ghost
Copy link

ghost commented Aug 18, 2017

If this PR get no Response, it will be closed at 17th September 2017.

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/12029

@ghost
Copy link

ghost commented Sep 17, 2017

This has been closed due to lack of response to the requests above – it can always be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants