summaryrefslogtreecommitdiff
path: root/js/webtrees.js
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2012-09-30 04:12:59 +0000
committerNigel Osborne <kiwi3685@me.com>2012-09-30 04:12:59 +0000
commit00fc38e47c91e4fe1f30c5e54147cd03ac572c65 (patch)
tree42b9ee47cd41499109d9dfea4d8d65c45fb4fe9c /js/webtrees.js
parentcf19bf32224336d99062633195675e1852f33dce (diff)
downloadwebtrees-00fc38e47c91e4fe1f30c5e54147cd03ac572c65.tar.gz
webtrees-00fc38e47c91e4fe1f30c5e54147cd03ac572c65.tar.bz2
webtrees-00fc38e47c91e4fe1f30c5e54147cd03ac572c65.zip
#1058419 Album tab media notes broken by SVN-14116 changes
Diffstat (limited to 'js/webtrees.js')
-rw-r--r--js/webtrees.js16
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) {