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

missing h3 titles on help display #223

Closed
gerbier opened this issue Aug 21, 2015 · 9 comments
Closed

missing h3 titles on help display #223

gerbier opened this issue Aug 21, 2015 · 9 comments

Comments

@gerbier
Copy link

gerbier commented Aug 21, 2015

I'm running webmin 1.760 on fedora 22, with Authentic Theme 14.02

and I wrote a dummy help file for a module with the following code :

test h1

test h2

test h3

test h4

and I can see in the pop-up window
test h1
test h2
test h4
but not "test h3"

@iliajie
Copy link
Collaborator

iliajie commented Aug 21, 2015

You want to tweak it with your own CSS?

@gerbier
Copy link
Author

gerbier commented Aug 21, 2015

no, I do not use my own css
In fact, a just was checking the help file for my webminstats's module, and I do not see what was expected, so I have a test with a very simple help file : the h3 line is missing

@gerbier
Copy link
Author

gerbier commented Aug 21, 2015

with a screen copy : I can see h1, h2, h4, not h3 !
webmin_help_h3

@iliajie
Copy link
Collaborator

iliajie commented Aug 21, 2015

You don't see it as my theme probably overrides it in it's own way. You could re-write it using .h3 class on some other element.

It's removed by the script $parent.find('._tmp_help_content h3').remove();

I think I had some reasons behind it when doing it. Bootstrap has a set of .h1, .h2, .h3,.h4, .h5, .h6 to use on other elements? Why not try this?

@gerbier
Copy link
Author

gerbier commented Aug 21, 2015

yes, I've found it in unauthenticated/js/authentic.min.js : $help_body=b.find("._tmp_help_content h3").remove()
it's just strange to remove only this title (and nothing about others h1, h2, h4, h5, h6.

the problem is that I'm lazzy : I have hundred of help files with h3 title
and many other core modules too, for example cron/help/help.html

[eric@localhost webmin]$ find . -type d -name help -exec grep -i -r h3 {} ; -print | wc -l
1569

@iliajie
Copy link
Collaborator

iliajie commented Aug 21, 2015

Hmm.. :) I will see what I can do.. Let me test it..

@iliajie
Copy link
Collaborator

iliajie commented Aug 21, 2015

Actually it seems like a bug. I will replace it with: .find('._tmp_help_content h3.ui_subheading').remove();

Now you should be safe. Edit authentic.min.js and make sure to replace $help_body=b.find("._tmp_help_content h3").remove() with $help_body=b.find("._tmp_help_content h3.ui_subheading").remove() - does it do the right work for you?? It does for me and if so, I would prefer to keep it this way in upcoming version 15. ;)

@iliajie
Copy link
Collaborator

iliajie commented Aug 21, 2015

..besides I will add to that h3 a class called h3_help, that will work like this:

h3.h3_help {
    font-size: 17px;

    margin-top: 5px;
}

Thanks for pointing out this bug!

@iliajie iliajie added the bug label Aug 21, 2015
@gerbier
Copy link
Author

gerbier commented Aug 22, 2015

I just test your authentic.min.js patch, and it is now ok for me

thanks for fixing this

@iliajie iliajie closed this as completed Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants