Opened 14 years ago
Last modified 14 years ago
#5870 closed enhancement
Dialog: option/ability to not hide after a submit — at Version 3
Reported by: | guest | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | Dijit | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
I'd like to keep my dijit.Dialog up after a submit, I want my execute to add a callback to hide the dialog only in certain circumstances.
With that in mind, I've subclassed dijit.Dialog and changed postCreate to not connect onExecute or onCancel to hide. I think it would be nice to make this an option for all dijit.Dialog isntances, so here's a patch to add an autoHide flag and an _autoHide function that only hides if autoHide is true.
- Jeffrey
Change History (4)
Changed 14 years ago by
Attachment: | dijit.Dialog.patch added |
---|
comment:1 Changed 14 years ago by
Component: | General → Dijit |
---|---|
Owner: | anonymous deleted |
Summary: | dijit.Dialog always hides after a submit → add option to dijit.Dialog to not hide after a submit |
Hmm, why don't you just not do a submit but rather have a plain button in the dialog? you can connect it to do whatever you want, including querying the dialog for all it's values.
comment:2 Changed 14 years ago by
Milestone: | → 1.2 |
---|
comment:3 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Milestone: | 1.2 → 1.3 |
Owner: | set to Douglas Hays |
Summary: | add option to dijit.Dialog to not hide after a submit → Dialog: option/ability to not hide after a submit |
On a dijit.Form we can do onSubmit="return false;"
, maybe can do same thing for Dialog, rather than adding a new option. Passing to Doug.
Patch dijit.Dialog