diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-06-28 14:36:37 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-06-28 14:36:37 +0000 |
| commit | 31fa9a3dd0864fb2b942913b1d15ae72453528de (patch) | |
| tree | bf466501b3b5259ac2343ac73de6bf0be245f408 /family.php | |
| parent | 1500fd2b7a7b3c1ae77201b4377ce5375d84608a (diff) | |
| download | webtrees-31fa9a3dd0864fb2b942913b1d15ae72453528de.tar.gz webtrees-31fa9a3dd0864fb2b942913b1d15ae72453528de.tar.bz2 webtrees-31fa9a3dd0864fb2b942913b1d15ae72453528de.zip | |
Fix: mediaviewer.php is not re-drawing after edits.
Diffstat (limited to 'family.php')
| -rw-r--r-- | family.php | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/family.php b/family.php index 5a9ddfeb55..2fc68e22be 100644 --- a/family.php +++ b/family.php @@ -95,19 +95,14 @@ if (WT_USE_LIGHTBOX) { $PEDIGREE_FULL_DETAILS = "1"; // Override GEDCOM configuration $show_full = "1"; +echo WT_JS_START; +echo 'function show_gedcom_record() {'; +echo ' var recwin=window.open("gedrecord.php?pid=', $controller->family->getXref(), '", "_blank", "top=0, left=0, width=600, height=400, scrollbars=1, scrollable=1, resizable=1");'; +echo '}'; +echo 'function showchanges() { window.location="'.$controller->family->getRawUrl().'"; }'; +echo WT_JS_END; + ?> -<script type="text/javascript"> -<!-- - function show_gedcom_record(shownew) { - fromfile=""; - if (shownew=="yes") fromfile='&fromfile=1'; - var recwin = window.open("gedrecord.php?pid=<?php echo $controller->getFamilyID(); ?>"+fromfile, "_blank", "top=50, left=50, width=600, height=400, scrollbars=1, scrollable=1, resizable=1"); - } - function showchanges() { - window.location = '<?php echo $controller->family->getRawUrl(); ?>'; - } -//--> -</script> <table align="center" width="95%"> <tr> <td> |
