summaryrefslogtreecommitdiff
path: root/modules_v3/lightbox
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 /modules_v3/lightbox
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 'modules_v3/lightbox')
-rw-r--r--modules_v3/lightbox/functions/lb_head.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules_v3/lightbox/functions/lb_head.php b/modules_v3/lightbox/functions/lb_head.php
index fde0cca6f2..6bba046606 100644
--- a/modules_v3/lightbox/functions/lb_head.php
+++ b/modules_v3/lightbox/functions/lb_head.php
@@ -68,19 +68,19 @@ if (isset($reorder) && $reorder==1) {
echo '<td class="descriptionbox rela">';
// Add a new media object
if (get_gedcom_setting(WT_GED_ID, 'MEDIA_UPLOAD') >= WT_USER_ACCESS_LEVEL) {
- echo '<span><a href="javascript: album_add()">';
+ echo '<span><a href="#" onclick="album_add()">';
echo '<img src="', WT_STATIC_URL, WT_MODULES_DIR, 'lightbox/images/image_add.gif" id="head_icon" class="icon" title="', WT_I18N::translate('Add a new media object'), '" alt="', WT_I18N::translate('Add a new media object'), '" />';
echo WT_I18N::translate('Add a new media object');
echo '</a></span>';
// Link to an existing item
- echo '<span><a href="javascript: album_link()">';
+ echo '<span><a href="#" onclick="album_link()">';
echo '<img src="', WT_STATIC_URL, WT_MODULES_DIR, 'lightbox/images/image_link.gif" id="head_icon" class="icon" title="', WT_I18N::translate('Link to an existing media object'), '" alt="', WT_I18N::translate('Link to an existing media object'), '" />';
echo WT_I18N::translate('Link to an existing media object');
echo '</a></span>';
}
if (WT_USER_GEDCOM_ADMIN) {
// Popup Reorder Media
- echo '<span><a href="javascript: reorder_media()">';
+ echo '<span><a href="#" onclick="reorder_media()">';
echo '<img src="', WT_STATIC_URL, WT_MODULES_DIR, 'lightbox/images/images.gif" id="head_icon" class="icon" title="', WT_I18N::translate('Re-order media'), '" alt="', WT_I18N::translate('Re-order media'), '" />';
echo WT_I18N::translate('Re-order media');
echo '</a></span>';