SF.net SVN: phpwiki:[10740] trunk/lib/plugin/PhotoAlbum.php

vargenau--- via phpwiki-checkins <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10740
          http://sourceforge.net/p/phpwiki/code/10740
Author:   vargenau
Date:     2021-12-06 17:16:51 +0000 (Mon, 06 Dec 2021)
Log Message:
-----------
PhotoAlbum plugin: use id instead of name for wikislide

Modified Paths:
--------------
    trunk/lib/plugin/PhotoAlbum.php

Modified: trunk/lib/plugin/PhotoAlbum.php
===================================================================
--- trunk/lib/plugin/PhotoAlbum.php	2021-12-06 17:04:47 UTC (rev 10739)
+++ trunk/lib/plugin/PhotoAlbum.php	2021-12-06 17:16:51 UTC (rev 10740)
@@ -208,8 +208,8 @@
 i = 0;
 function display_slides() {
   j = i - 1;
-  cell0 = document.getElementsByName('wikislide' + j);
-  cell = document.getElementsByName('wikislide' + i);
+  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)
@@ -400,7 +400,7 @@
                         . 'margin-left: -' . round($newwidth / 2) . 'px;'
                         . 'text-align: center; '
                         . 'vertical-align: top',
-                        'name' => "wikislide" . $count);
+                        'id' => "wikislide" . $count);
                 else
                     $cell = array('style' => 'display: none; '
                         . 'position: absolute ;'
@@ -408,7 +408,7 @@
                         . 'margin-left: -' . round($newwidth / 2) . 'px;'
                         . 'text-align: center; '
                         . 'vertical-align: top',
-                        'name' => "wikislide" . $count);
+                        'id' => "wikislide" . $count);
                 if ($align == 'left' || $align == 'right') {
                     if ($count == 0)
                         $cell = array('style' => 'display: block; '
@@ -415,13 +415,13 @@
                             . 'position: absolute; '
                             . $align . ': 50px; '
                             . 'vertical-align: top',
-                            'name' => "wikislide" . $count);
+                            'id' => "wikislide" . $count);
                     else
                         $cell = array('style' => 'display: none; '
                             . 'position: absolute; '
                             . $align . ': 50px; '
                             . 'vertical-align: top',
-                            'name' => "wikislide" . $count);
+                            'id' => "wikislide" . $count);
                 }
                 $row->pushContent(
                     (HTML::td($cell,

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.