[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14993 - gauger
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14993 - gauger |
Date: |
Fri, 15 Apr 2011 15:16:19 +0200 |
Author: bartpolot
Date: 2011-04-15 15:16:19 +0200 (Fri, 15 Apr 2011)
New Revision: 14993
Modified:
gauger/template.php
gauger/template_host.php
Log:
Fixed UI details about metric selection in hsot view
Modified: gauger/template.php
===================================================================
--- gauger/template.php 2011-04-15 13:08:23 UTC (rev 14992)
+++ gauger/template.php 2011-04-15 13:16:19 UTC (rev 14993)
@@ -425,8 +425,8 @@
$.cookie(field_search.id, text);
if(!$.browser.msie) { /* SORRY, BUT IE IS *SLOW* WITH JQUERY */
uls = $("#metrics ul:visible"); /* Nasty hack: */
- uls.hide(); /* 500x speedup on Chrome */
- if(text == "") { /* Nasty hack2: Chrome matches
"" to no element */
+ uls.hide(); /* 500x speedup on old Chrome
versions */
+ if(text == "") {
$( field_search
).parents(".search_realm").find(".search_item").show();
} else {
$( field_search
).parents(".search_realm").find(".search_item[id*="+text+"]").show();
@@ -435,11 +435,11 @@
uls.show();
} else { /* IE SPECIFIC ALGORITHM (x10 speedup on IE) */
$( field_search
).parents(".search_realm").find(".search_item").each(function(){
- if(this.id.indexOf(text) == -1){
- $(this).hide();
- } else {
- $(this).show();
- }
+ if(this.id.indexOf(text) == -1){
+ $(this).hide();
+ } else {
+ $(this).show();
+ }
});
}
}
Modified: gauger/template_host.php
===================================================================
--- gauger/template_host.php 2011-04-15 13:08:23 UTC (rev 14992)
+++ gauger/template_host.php 2011-04-15 13:16:19 UTC (rev 14993)
@@ -74,10 +74,11 @@
<hr/>
<ul class="added-metrics">
<li>
- <input type="checkbox" checked="checked"
class="added-metric" readonly="true">
+ <input type="checkbox" checked="checked"
class="added-metric" disabled>
<a href="?graph=<?php echo $counter ?>"><?php echo
get_counter_name($counter) ?></a>
</li>
</ul>
+ <hr/>
Compare with:
<select class="select-metric">
<?php foreach ($hosts[$current] as $graph): ?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14993 - gauger,
gnunet <=