SF.net SVN: phpwiki:[10743] trunk/lib/plugin/PhotoAlbum.php
vargenau--- via phpwiki-checkins <[email protected]>
| Newsgroups | gmane.comp.web.wiki.phpwiki.checkins |
|---|---|
| Message-ID | <[email protected]> |
Revision: 10743
http://sourceforge.net/p/phpwiki/code/10743
Author: vargenau
Date: 2021-12-07 08:17:20 +0000 (Tue, 07 Dec 2021)
Log Message:
-----------
Fix Javascript function display_slides
Modified Paths:
--------------
trunk/lib/plugin/PhotoAlbum.php
Modified: trunk/lib/plugin/PhotoAlbum.php
===================================================================
--- trunk/lib/plugin/PhotoAlbum.php 2021-12-07 07:58:31 UTC (rev 10742)
+++ trunk/lib/plugin/PhotoAlbum.php 2021-12-07 08:17:20 UTC (rev 10743)
@@ -208,14 +208,14 @@
i = 0;
function display_slides() {
j = i - 1;
- cell0 = document.getElementsById('wikislide' + j);
- cell = document.getElementsById('wikislide' + i);
- if (cell0.item(0) != null)
- cell0.item(0).style.display='none';
- if (cell.item(0) != null)
- cell.item(0).style.display='block';
+ cell0 = document.getElementById('wikislide' + j);
+ cell = document.getElementById('wikislide' + i);
+ if (cell0 != null)
+ cell0.style.display='none';
+ if (cell != null)
+ cell.style.display='block';
i += 1;
- if (cell.item(0) == null) i = 0;
+ if (cell == null) i = 0;
setTimeout('display_slides()',$duration);
}
display_slides();"));
@@ -396,16 +396,16 @@
if ($count == 0)
$cell = array('style' => 'display: block; '
. 'position: absolute; '
- . 'left: 50% ; '
- . 'margin-left: -' . round($newwidth / 2) . 'px;'
+ . 'left: 50%; '
+ . 'margin-left: -' . round($newwidth / 2) . 'px; '
. 'text-align: center; '
. 'vertical-align: top',
'id' => "wikislide" . $count);
else
$cell = array('style' => 'display: none; '
- . 'position: absolute ;'
- . 'left: 50% ;'
- . 'margin-left: -' . round($newwidth / 2) . 'px;'
+ . 'position: absolute; '
+ . 'left: 50%; '
+ . 'margin-left: -' . round($newwidth / 2) . 'px; '
. 'text-align: center; '
. 'vertical-align: top',
'id' => "wikislide" . $count);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.