ParamQuery

General Category => Bug Report => Topic started by: vsa on January 19, 2021, 10:22:34 pm

Title: Paramquery breaks JQueryUI Dialog functionality
Post by: vsa on January 19, 2021, 10:22:34 pm
Hello,

Here are two jsfiddle links that show that jQuery UI Dialog buttons are not shown if pqgrid.min.js is included.
Please, click on "showInterfaceSettings" to see dialog.

https://jsfiddle.net/bs9n2qgL/ (https://jsfiddle.net/bs9n2qgL/)
(http://giraglia.ovh/other/jquery-ui-with-pqgrid-no-buttons.PNG)

https://jsfiddle.net/gfpvz1tL/ (https://jsfiddle.net/gfpvz1tL/)
(http://giraglia.ovh/other/jquery-ui-no-pqgrid-with-buttons.PNG)

Thank you in advance
Title: Re: Paramquery breaks JQueryUI Dialog functionality
Post by: paramvir on January 21, 2021, 06:09:17 pm
Thanks for sharing the issue.

Current workaround for this issue is to use array format for buttons option.

Code: [Select]
        buttons: [{
            text: "Apply",
            click: function() {
              saveInterfaceSettings();
            }
          },
          {
            text: 'Cancel',
            click: function() {
                $( this ).dialog( "close" );
            }
          }
        ]

https://jsfiddle.net/y0pvenb4/