summaryrefslogtreecommitdiff
path: root/family.php
diff options
context:
space:
mode:
Diffstat (limited to 'family.php')
-rw-r--r--family.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/family.php b/family.php
index 380b295de3..23c22d530d 100644
--- a/family.php
+++ b/family.php
@@ -39,8 +39,8 @@ if ($controller->family && $controller->family->canDisplayDetails()) {
'<p class="ui-state-highlight">',
/* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
'This family has been deleted. You should review the deletion and then %1$s or %2$s it.',
- '<a href="' . $controller->family->getHtmlUrl() . '&amp;action=accept">' . WT_I18N::translate_c('You should review the deletion and then accept or reject it.', 'accept') . '</a>',
- '<a href="' . $controller->family->getHtmlUrl() . '&amp;action=undo">' . WT_I18N::translate_c('You should review the deletion and then accept or reject it.', 'reject') . '</a>'
+ '<a href="#" onClick="jQuery.post(\'action.php\',{action:\'accept-changes\',xref:\''.$controller->family->getXref().'\'},function(){location.reload();})">' . WT_I18N::translate_c('You should review the deletion and then accept or reject it.', 'accept') . '</a>',
+ '<a href="#" onClick="jQuery.post(\'action.php\',{action:\'reject-changes\',xref:\''.$controller->family->getXref().'\'},function(){location.reload();})">' . WT_I18N::translate_c('You should review the deletion and then accept or reject it.', 'reject') . '</a>'
),
' ', help_link('pending_changes'),
'</p>';
@@ -57,8 +57,8 @@ if ($controller->family && $controller->family->canDisplayDetails()) {
'<p class="ui-state-highlight">',
/* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
'This family has been edited. You should review the changes and then %1$s or %2$s them.',
- '<a href="' . $controller->family->getHtmlUrl() . '&amp;action=accept">' . WT_I18N::translate_c('You should review the changes and then accept or reject them.', 'accept') . '</a>',
- '<a href="' . $controller->family->getHtmlUrl() . '&amp;action=undo">' . WT_I18N::translate_c('You should review the changes and then accept or reject them.', 'reject') . '</a>'
+ '<a href="#" onClick="jQuery.post(\'action.php\',{action:\'accept-changes\',xref:\''.$controller->family->getXref().'\'},function(){location.reload();})">' . WT_I18N::translate_c('You should review the changes and then accept or reject them.', 'accept') . '</a>',
+ '<a href="#" onClick="jQuery.post(\'action.php\',{action:\'reject-changes\',xref:\''.$controller->family->getXref().'\'},function(){location.reload();})">' . WT_I18N::translate_c('You should review the changes and then accept or reject them.', 'reject') . '</a>'
),
' ', help_link('pending_changes'),
'</p>';