CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Disabled dialog problem

by George » 27 Feb 2014 09:19

When dialog is disabled, entire region becomes transparent.
All buttons are still works.

I was experimented with this issue, i think, wDialogMsgTemplates.JQDialogOptions.Disable should apply css "ui-state-disabled" on child divs.
Then, all controls inside dialog will become transparent (opacity = 0.35), but dialog div will be filled.
One more thing - when dialog is disabled, all controls should not work (pointer-events: none !important).
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by George » 27 Feb 2014 09:37

I implemented this fix for me:
css code
div.ui-dialog.ui-state-disabled {
opacity: 1 !important;
pointer-events:none;
}
div.ui-dialog.ui-state-disabled > div {
opacity: .35 !important;
}
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Alexander Bulei » 27 Feb 2014 12:21

Hi George,

I have checked this, and can say, the jquery ui team missed this thing.

We implemented js code to support this functionality in V2.0.0.3384.

Another thing, you can use "ui-dialog-disabled" css class in your custom css file.
That css is added, but doesn't used/implemeted in jquery ui themes.

css code
.ui-dialog-disabled {
opacity: .35 !important;
}



Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by George » 27 Feb 2014 18:01

You mean:
css code
div.ui-dialog-disabled {
opacity: 1 !important;
pointer-events:none;
}
div.ui-dialog-disabled > div {
opacity: .35 !important;
}
?

In previous post, "div.ui-dialog.ui-state-disabled" overrides opacity of main dialog div, and "div.ui-dialog.ui-state-disabled > div" apply disable effect on all child divs of main dialog div.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Alexander Bulei » 28 Feb 2014 10:29

Hi George,

Since V2.0.0.3384, you don't need define the css for inside controls.

Just use the ".ui-dialog-disabled" class to override the opacity.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQDialogEx

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.