summaryrefslogtreecommitdiff
path: root/repo.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-06-28 14:36:37 +0000
committerfisharebest <fisharebest@gmail.com>2011-06-28 14:36:37 +0000
commit31fa9a3dd0864fb2b942913b1d15ae72453528de (patch)
treebf466501b3b5259ac2343ac73de6bf0be245f408 /repo.php
parent1500fd2b7a7b3c1ae77201b4377ce5375d84608a (diff)
downloadwebtrees-31fa9a3dd0864fb2b942913b1d15ae72453528de.tar.gz
webtrees-31fa9a3dd0864fb2b942913b1d15ae72453528de.tar.bz2
webtrees-31fa9a3dd0864fb2b942913b1d15ae72453528de.zip
Fix: mediaviewer.php is not re-drawing after edits.
Diffstat (limited to 'repo.php')
-rw-r--r--repo.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/repo.php b/repo.php
index f4aa6016c6..6240f34448 100644
--- a/repo.php
+++ b/repo.php
@@ -92,11 +92,9 @@ $linkToID=$controller->rid; // Tell addmedia.php what to link to
echo WT_JS_START;
echo 'function show_gedcom_record() {';
-echo ' var recwin=window.open("gedrecord.php?pid=', $controller->rid, '", "_blank", "top=0, left=0, width=600, height=400, scrollbars=1, scrollable=1, resizable=1");';
-echo '}';
-echo 'function showchanges() {';
-echo ' window.location="repo.php?rid=', $controller->rid, '"';
+echo ' var recwin=window.open("gedrecord.php?pid=', $controller->repository->getXref(), '", "_blank", "top=0, left=0, width=600, height=400, scrollbars=1, scrollable=1, resizable=1");';
echo '}';
+echo 'function showchanges() { window.location="', $controller->repository->getRawUrl(), '"; }';
echo WT_JS_END;
echo '<table class="list_table"><tr><td>';