diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-06-17 06:20:10 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-06-17 06:20:10 +0000 |
| commit | d96eb80f2e427a9c77888535815ad497fe4cb01f (patch) | |
| tree | 5fe231902d5dd3f3219ed7b6fd6d2c36b861f838 /statistics.php | |
| parent | cd3a167c713f76268eca9279dedb2ea9b4d16ba2 (diff) | |
| download | webtrees-d96eb80f2e427a9c77888535815ad497fe4cb01f.tar.gz webtrees-d96eb80f2e427a9c77888535815ad497fe4cb01f.tar.bz2 webtrees-d96eb80f2e427a9c77888535815ad497fe4cb01f.zip | |
Statistics plot - own charts have not worked for quite some time.
Diffstat (limited to 'statistics.php')
| -rw-r--r-- | statistics.php | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/statistics.php b/statistics.php index 0356cb73c9..f58e1945c1 100644 --- a/statistics.php +++ b/statistics.php @@ -446,21 +446,16 @@ if (!$ajax) { } } function statsModalDialog(url, title) { - var $form = jQuery('#own-stats-form'); - jQuery.post($form.attr('action'), $form.serialize(), function(response) { - jQuery('div#statistics-plot').html(response); - }); - dialog=jQuery('<div title="'+title+'"></div>') - .load(url) - .dialog({ + var form = jQuery('#own-stats-form'); + jQuery.post(form.attr('action'), form.serialize(), function(response) { + jQuery(response).dialog({ modal: true, - width: 962, - position: ['center',50], - close: function(event, ui) { $(this).remove(); } + width: 964 + }); + // Close the window when we click outside it. + jQuery(".ui-widget-overlay").live("click", function () { + jQuery("div:ui-dialog:visible").dialog("close"); }); - // Close the window when we click outside it. - jQuery(".ui-widget-overlay").live("click", function () { - jQuery("div:ui-dialog:visible").dialog("close"); }); return false; } |
