changeset 5080:67114f9e3d81

action.anywikidraw: links the image to the drawing action. Any image mapping overwrites the default link for the region which is covered by the mapping. The white around the mapping url links to the action.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 02 Sep 2009 19:38:13 +0200
parents 32ad275278d0
children 3e1d3367aeaa
files MoinMoin/action/anywikidraw.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/anywikidraw.py	Wed Sep 02 17:10:39 2009 +0200
+++ b/MoinMoin/action/anywikidraw.py	Wed Sep 02 19:38:13 2009 +0200
@@ -96,7 +96,7 @@
         if 'alt' not in kw:
             kw['alt'] = kw['title']
         kw['usemap'] = '#'+mapid
-        return map + self.image(**kw)
+        return self.url(1, drawing_url) + map + self.image(**kw) + self.url(0)
     else:
         if 'title' not in kw:
             kw['title'] = title