Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript modal dialog changes #71

Closed
wants to merge 1 commit into from
Closed

Javascript modal dialog changes #71

wants to merge 1 commit into from

Conversation

ddrury
Copy link
Contributor

@ddrury ddrury commented Jan 4, 2014

Uses JSON to call help_text.php.

The diff display makes it difficult to see what I've done, but I've modified modalDialog(), helpDialog() & modalNotes to use jQuery to create a DIV element with title & html attributes populated by whatever call method is appropriate and then pass that element to a new function displayDialog() which instantiates and displays the dialog and handles clicking on the overlay and tidyup on close (which at least one of the old functions didn't - can't remember which off hand)

@ddrury
Copy link
Contributor Author

ddrury commented Jan 21, 2014

I've just discovered another problem which this fixes, currently if alternating calls are made to modalDialog followed by helpDialog, then the overlays build up and the only way to clear them is to reload the page

@ddrury ddrury closed this Jan 21, 2014
@ddrury ddrury reopened this Jan 21, 2014
@ddrury
Copy link
Contributor Author

ddrury commented Jan 21, 2014

I've done it again!! clicked the wrong button

1. Use JSON to call help_text.php.
2. New function(displayDialog() to create and display a modal dialog and
modify modalDialog(), helpDialog() & modalNotes to call it (provides
consistent functioning)
3. New function modalConfirm replaces native confirm dialog
usage: modalConfirm(title,text).then(function (reply) {...};
@ddrury
Copy link
Contributor Author

ddrury commented Jan 30, 2014

Withdrawn - causes problem if ckeditor instance itself opens a dialog (caused by setting modal=true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant