Bablyon 5.1.0 - layout.js containing old javascript-hacks?

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
christophs78
Posts: 85
Joined: 01 Mar 2018, 12:29

04 Jan 2022, 09:07

Starting with line 616 layout.js contains AFAIK JavaScript-hacks modifiyig component-JS provided by PrimeFaces itself.

Are they still all necessary? Or is there the possibility that they override newer code provided by PrimeFaces-core?

Especially annoying is

Code: Select all

/* Issue #924 is fixed for 5.3+ and 6.0. (compatibility with 5.3) */

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

05 Jan 2022, 10:04

Hi,

Unfortunately, we cannot remove them. Please see;
https://www.primefaces.org/layouts/babylon
...
Officially supported for 5.x, 6.0 and newer.

Compatible with modern browsers and Internet Explorer 9+
We have users using this layout with 6.0.

Best Regards,

christophs78
Posts: 85
Joined: 01 Mar 2018, 12:29

05 Jan 2022, 13:19

But we can remove this in our copy when we use PrimeFaces 11? Is this correct?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

07 Jan 2022, 14:13

Hi,

Yes, you can remove the following code block;

Code: Select all

/* Issue #924 is fixed for 5.3+ and 6.0. (compatibility with 5.3) */
if(window['PrimeFaces'] && window['PrimeFaces'].widget.Dialog) {
    PrimeFaces.widget.Dialog = PrimeFaces.widget.Dialog.extend({

        enableModality: function() {
            this._super();
            $(document.body).children(this.jqId + '_modal').addClass('ui-dialog-mask');
        },

        syncWindowResize: function() {}
    });
}
Best Regards,

Post Reply

Return to “Babylon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest