Opened 11 years ago

Closed 11 years ago

Last modified 6 years ago

#7581 closed enhancement (fixed)

[dojox.widget] Make Dialog Unclosable by underlay-click

Reported by: ahmettaha Owned by: dante
Priority: high Milestone: 1.3
Component: DojoX Widgets Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

As in dojox/widget/Dialog.js line 65, please make onCancel event optional. I dont want my users to be able to click anywhere in the screen and close the dialog. I want to force them to click on a button in the dialog.

Change History (6)

comment:1 Changed 11 years ago by dante

Milestone: 1.21.3
Status: newassigned
Summary: Unclosable dialog[dojox.widget] Make Dialog Unclosable by underlay-click

Sounds reasonable, but we're cutoff on enhancements until 1.3 -- do you have a suggestion for the name of the parameter? I initially thought 'trulyModel' would be good, but think it's silly now. cancelable? canClose? closeOnBackgroudClick is too long. the DojoX Dialog allows the option to hide the close button, so maybe combining that param setting with disabling the underlay click connection might be a solution, which seems the most sensible approach.

comment:2 Changed 11 years ago by ahmettaha

"modalBox" as parameter? or "modal" ?

comment:3 Changed 11 years ago by dante

Resolution: fixed
Status: assignedclosed

fixed in [15918] - went with modal:true/false

handles underlay click and escape key.

comment:4 Changed 11 years ago by dante

Resolution: fixed
Status: closedreopened

the _underlay changes seem to have broken this. re-opening for 1.3 to test further.

comment:5 Changed 11 years ago by dante

Resolution: fixed
Status: reopenedclosed

comment:6 Changed 6 years ago by bill

"modal" is the wrong name for the property that controls this feature, as all Dialogs are modal. Dijit calls the feature "closable".

Note: See TracTickets for help on using tickets.