changeset 316:8a76def2ce62

arnica_slides: optionlist selection fixed by comparing the hash key
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 17 Dec 2008 20:35:36 +0100
parents 1f605f821a68
children dc2fc15e9b7f
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Wed Dec 17 20:34:39 2008 +0100
+++ b/data/plugin/action/arnica_slides.py	Wed Dec 17 20:35:36 2008 +0100
@@ -290,9 +290,8 @@
     for filename in filenames:
         url = cache.url(request, filename)
         prefix = 'Webnail:'
-
         options.append('<option%(selected)s value="%(name)s">%(prefix)s %(alias)s' % {
-            "selected": (url == this_image) and ' selected' or '',
+            "selected": (url.split('_')[-1] == this_image.split('_')[-1]) and ' selected' or '',
             "name": this_image,
             "prefix": prefix,
             "alias": original_images[i],