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

Statistic preferences with Justlight and Firefox #24

Closed
mpwt opened this issue Jul 20, 2016 · 1 comment
Closed

Statistic preferences with Justlight and Firefox #24

mpwt opened this issue Jul 20, 2016 · 1 comment
Labels

Comments

@mpwt
Copy link

mpwt commented Jul 20, 2016

Hi Carmen,

I found a problem with the recent Firefox browser and the justlight theme 1.7.5 on webtrees 1.7.7. The statistic preferences are incomplete. Some checkboxes are not shown:
bildschirmfoto 2016-07-20 um 20 11 46
(I use Firefox 47.0.1 on MacOSX 10.9.5. With Safari on MacOSX or on my iPad with iOS 9 it works.)

With the webtrees theme it is shown right:
bildschirmfoto 2016-07-20 um 20 12 26

Do you have any idea?

@mpwt
Copy link
Author

mpwt commented Jul 21, 2016

I found the code which cause the problem in firefox:

justlight.bootstrap.js

// configure block form
jQuery('form[action^="?block_id"]').each(function() {
    jQuery(this).formControls({
        cbInline: true,
        rbInline: true
    });
    jQuery(this).find(".radio-inline").each(function() {
        jQuery(this).parents(".optionbox").append(jQuery(this).parent("label").html());
        jQuery(this).parent("label").remove();
    });
    jQuery(this).find(".checkbox-inline").each(function() {
        jQuery(this).parents(".checkbox").append(jQuery(this).parent("label").html());
        jQuery(this).parent("label").remove();
    });
    jQuery(this).find("table").css("margin", "auto");
    jQuery(this).find(".topbottombar").addClass("text-right").removeClass("topbottombar");
});

When I comment it out the edit page works with firefox again. I do not know what is the problem.

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

No branches or pull requests

2 participants