summaryrefslogtreecommitdiff
path: root/repo.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-11 00:56:58 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-11 00:56:58 +0000
commit0f21e1e20204a4b11ee738e9f0ecd697f4ba0149 (patch)
treecad91d835750205009047a4f9e963893b20f9add /repo.php
parent1f695b56043116fbdb4afec8e48a68d83ffab5ce (diff)
downloadwebtrees-0f21e1e20204a4b11ee738e9f0ecd697f4ba0149.tar.gz
webtrees-0f21e1e20204a4b11ee738e9f0ecd697f4ba0149.tar.bz2
webtrees-0f21e1e20204a4b11ee738e9f0ecd697f4ba0149.zip
Use consistent style for <a href="#" onclick="foo();"> the various combinations of javascript:XXX are non-standard, and cause problems with some browsers.
Diffstat (limited to 'repo.php')
-rw-r--r--repo.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/repo.php b/repo.php
index e71ffabdea..b28eeb873e 100644
--- a/repo.php
+++ b/repo.php
@@ -38,8 +38,8 @@ if ($controller->record && $controller->record->canDisplayDetails()) {
'<p class="ui-state-highlight">',
/* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
'This repository has been deleted. You should review the deletion and then %1$s or %2$s it.',
- '<a href="#" onClick="jQuery.post(\'action.php\',{action:\'accept-changes\',xref:\''.$controller->record->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->record->getXref().'\'},function(){location.reload();})">' . 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->record->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->record->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>';
@@ -56,8 +56,8 @@ if ($controller->record && $controller->record->canDisplayDetails()) {
'<p class="ui-state-highlight">',
/* I18N: %1$s is "accept", %2$s is "reject". These are links. */ WT_I18N::translate(
'This repository has been edited. You should review the changes and then %1$s or %2$s them.',
- '<a href="#" onClick="jQuery.post(\'action.php\',{action:\'accept-changes\',xref:\''.$controller->record->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->record->getXref().'\'},function(){location.reload();})">' . 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->record->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->record->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>';
@@ -123,9 +123,9 @@ echo '<div id="repo-tabs">
echo '<tr><td class="descriptionbox">';
echo WT_I18N::translate('Add media'), help_link('add_media');
echo '</td><td class="optionbox">';
- echo '<a href="javascript:;" onclick="window.open(\'addmedia.php?action=showmediaform&linktoid=', $controller->record->getXref(), '\', \'_blank\', \'top=50, left=50, width=600, height=500, resizable=1, scrollbars=1\'); return false;">', WT_I18N::translate('Add a new media object'), '</a>';
+ echo '<a href="#" onclick="window.open(\'addmedia.php?action=showmediaform&linktoid=', $controller->record->getXref(), '\', \'_blank\', \'top=50, left=50, width=600, height=500, resizable=1, scrollbars=1\'); return false;">', WT_I18N::translate('Add a new media object'), '</a>';
echo '<br />';
- echo '<a href="javascript:;" onclick="window.open(\'inverselink.php?linktoid=', $controller->record->getXref(), '&linkto=repository\', \'_blank\', \'top=50, left=50, width=600, height=500, resizable=1, scrollbars=1\'); return false;">', WT_I18N::translate('Link to an existing media object'), '</a>';
+ echo '<a href="#" onclick="window.open(\'inverselink.php?linktoid=', $controller->record->getXref(), '&linkto=repository\', \'_blank\', \'top=50, left=50, width=600, height=500, resizable=1, scrollbars=1\'); return false;">', WT_I18N::translate('Link to an existing media object'), '</a>';
echo '</td></tr>';
}}
echo '</table>