summaryrefslogtreecommitdiff
path: root/mediaviewer.php
diff options
context:
space:
mode:
Diffstat (limited to 'mediaviewer.php')
-rw-r--r--mediaviewer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mediaviewer.php b/mediaviewer.php
index 9f051664be..20cf974d29 100644
--- a/mediaviewer.php
+++ b/mediaviewer.php
@@ -40,8 +40,8 @@ if ($controller->mediaobject && $controller->mediaobject->canDisplayDetails()) {
'<p class="ui-state-highlight">',
/* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
'This media object has been deleted. You should review the deletion and then %1$s or %2$s it.',
- '<a href="' . $controller->mediaobject->getHtmlUrl() . '&amp;action=accept">' . WT_I18N::translate_c('You should review the deletion and then accept or reject it.', 'accept') . '</a>',
- '<a href="' . $controller->mediaobject->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->mediaobject->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->mediaobject->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>';
@@ -58,8 +58,8 @@ if ($controller->mediaobject && $controller->mediaobject->canDisplayDetails()) {
'<p class="ui-state-highlight">',
/* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
'This media object has been edited. You should review the changes and then %1$s or %2$s them.',
- '<a href="' . $controller->mediaobject->getHtmlUrl() . '&amp;action=accept">' . WT_I18N::translate_c('You should review the changes and then accept or reject them.', 'accept') . '</a>',
- '<a href="' . $controller->mediaobject->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->mediaobject->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->mediaobject->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>';