blur the focus on mouse click
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 7 Jul 2007 07:38:24 +0000 (07:38 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 7 Jul 2007 07:38:24 +0000 (07:38 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@169 fa6a889d-dae6-447d-9e79-4ba9a3039384

templates/photo_index.tpl
templates/single_photo.tpl

index cb079e2d09c4b753373d12ef4cb61048ac80c7c7..9ac74585afaf38509d3bfb99e2815eb9f0a85376 100644 (file)
@@ -48,7 +48,7 @@
      <td class="thumb">
       {if $images[row][col] }
       <div id="inner" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');">
-       <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink">
+       <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink" onclick="click(this);">
         <img class="thumb" id="{$images[row][col]}" src="phpfspot_img.php?idx={$images[row][col]}&amp;width={$width}" alt="thumb_{$images[row][col]}" width="{$img_width[row][col]}" height="{$img_height[row][col]}" />
         <br />
         {$img_name[row][col]}
index b93803ff0400c1bd89b8ed995f20ade789168056..5ad245004c5b08ad1e620225440222c5990745b9 100644 (file)
@@ -19,9 +19,9 @@
     <tr>
      <td colspan="3">
      { if $next_url == "" }
-      <a href="javascript:showPhotoIndex();">
+      <a href="javascript:showPhotoIndex();" onclick="click(this);">
      { else }
-      <a href="{$next_url}"> 
+      <a href="{$next_url}" onclick="click(this);"
      { /if }
        <img src="{$image_url}" width="{$width}" height="{$height}" alt="photo" />
       </a>
       { if $previous_url == "" }
        <img src="resources/arrow_left_gray.png" alt="first photo reached" />
       { else }
-      <a href="{$previous_url}">
+      <a href="{$previous_url}" onclick="click(this);">
        <img src="resources/arrow_left.png" alt="previous photo" />
       </a>
       { /if }
      </td>
      <td style="text-align: center; width: 33%;">
-      <a href="javascript:showPhotoIndex({$current});">
+      <a href="javascript:showPhotoIndex({$current});" onclick="click(this);">
        <img src="resources/arrow_up.png" alt="photo index" />
       </a>
      </td>
@@ -46,7 +46,7 @@
       { if $next_url == "" }
        <img src="resources/arrow_right_gray.png" alt="last photo reached" />
       { else }
-      <a href="{$next_url}"> 
+      <a href="{$next_url}" onclick="click(this);"
        <img src="resources/arrow_right.png" alt="next photo" />
       </a>
       { /if}
@@ -74,7 +74,7 @@
     <br />
     <u><img src="resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />
     { foreach from=$tags key=id item=name }
-    <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);">{$name}</a><br />
+    <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br />
     { /foreach }
    { /if }
    </div>