Author Topic: Paramquery breaks JQueryUI Dialog functionality  (Read 437 times)

vsa

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 7
    • View Profile
Paramquery breaks JQueryUI Dialog functionality
« 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/gfpvz1tL/


Thank you in advance

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5127
    • View Profile
Re: Paramquery breaks JQueryUI Dialog functionality
« Reply #1 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/