diff options
Diffstat (limited to 'js/webtrees.js')
| -rw-r--r-- | js/webtrees.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/webtrees.js b/js/webtrees.js index 7a11083c79..8f46fab1be 100644 --- a/js/webtrees.js +++ b/js/webtrees.js @@ -67,6 +67,22 @@ function modalDialog(url, title) { return false; } +// Create a modal dialog to display notes +function modalNotes(content, title) { + dialog=jQuery('<div title="'+title+'"></div>') + .html(content) + .dialog({ + modal: true, + width: 500, + close: function(event, ui) { $(this).remove(); } + }); + // Close the window when we click outside it. + jQuery(".ui-widget-overlay").live("click", function () { + jQuery("div:ui-dialog:visible").dialog("close"); + }); + return false; +} + // For a dialog containing a form, submit the form via AJAX // (to save the data), then reload the page (to display it). function modalDialogSubmitAjax(form) { |
