gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14541 - in gauger: . images


From: gnunet
Subject: [GNUnet-SVN] r14541 - in gauger: . images
Date: Fri, 25 Feb 2011 03:44:10 +0100

Author: bartpolot
Date: 2011-02-25 03:44:10 +0100 (Fri, 25 Feb 2011)
New Revision: 14541

Added:
   gauger/images/contract.png
Modified:
   gauger/template.php
Log:
Improved list contraction feedback


Added: gauger/images/contract.png
===================================================================
(Binary files differ)


Property changes on: gauger/images/contract.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: gauger/template.php
===================================================================
--- gauger/template.php 2011-02-25 02:25:02 UTC (rev 14540)
+++ gauger/template.php 2011-02-25 02:44:10 UTC (rev 14541)
@@ -207,7 +207,12 @@
                     });
                 });
                 $( ".metric_category_header" ).click(function () {
-                    $(this).parents(".metric").find("ul").toggle();
+                    ul = $(this).parents(".metric").find("ul");
+                    ul.toggle();
+                    if(ul.is(':visible'))
+                        $(this).find("img").attr("src", "images/contract.png");
+                    else
+                        $(this).find("img").attr("src", "images/expand.png");
                 });
                 $( "#instant_search" 
).each(function(){this.value="Search...";});
                 $( "#instant_search" ).focus(function(){
@@ -272,7 +277,7 @@
                 <div class="metric">
                 <div class="metric_category_header">
                     <?php echo $category ? $category : 'Others' ?>
-                    <img class="expand_arrow" src="images/expand.png"></img>
+                    <img class="expand_arrow" src="images/contract.png"></img>
                 </div>
                 <ul id="<?php echo $category ? $category : 'Others' ?>">
                 <?php foreach ($counters as $link => $name): ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]