gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r15407 - gauger/web


From: gnunet
Subject: [GNUnet-SVN] r15407 - gauger/web
Date: Fri, 3 Jun 2011 18:42:15 +0200

Author: bartpolot
Date: 2011-06-03 18:42:15 +0200 (Fri, 03 Jun 2011)
New Revision: 15407

Modified:
   gauger/web/template.php
   gauger/web/template_graph.php
Log:
Fixed range-setting bug for individual plots


Modified: gauger/web/template.php
===================================================================
--- gauger/web/template.php     2011-06-03 15:31:40 UTC (rev 15406)
+++ gauger/web/template.php     2011-06-03 16:42:15 UTC (rev 15407)
@@ -119,9 +119,9 @@
                     } else {
                         $(this).parents("tr").find( ".auto_min" 
).attr('checked', false);
                         $(this).parents("tr").find( ".slider-range" 
).slider('values', 0, newmin);
-                        max = 
$(this).parents(".tr").find(".auto_max").attr('checked') ?
+                        max = 
$(this).parents("tr").find(".auto_max").attr('checked') ?
                             "auto" :
-                            
$(this).parents(".tr").find(".slider-range").slider('values', 1);
+                            
$(this).parents("tr").find(".slider-range").slider('values', 1);
                         $(this).parents("tr").find(".plot").each(function(){
                             this.src = this.src.replace(/&x_m(ax|in)=[^&]+/g, 
'')+"&x_min="+newmin+"&x_max="+max;
                         });
@@ -151,9 +151,9 @@
                     } else {
                         $(this).parents("tr").find( ".auto_max" 
).attr('checked', false);
                         $(this).parents("tr").find( ".slider-range" 
).slider('values', 1, newmax);
-                        min = 
$(this).parents(".tr").find(".auto_min").attr('checked') ?
+                        min = 
$(this).parents("tr").find(".auto_min").attr('checked') ?
                             "auto" :
-                            
$(this).parents(".tr").find(".slider-range").slider('values', 0);
+                            
$(this).parents("tr").find(".slider-range").slider('values', 0);
                         $(this).parents("tr").find(".plot").each(function(){
                             this.src = this.src.replace(/&x_m(ax|in)=[^&]+/g, 
'')+"&x_min="+min+"&x_max="+newmax;
                         });

Modified: gauger/web/template_graph.php
===================================================================
--- gauger/web/template_graph.php       2011-06-03 15:31:40 UTC (rev 15406)
+++ gauger/web/template_graph.php       2011-06-03 16:42:15 UTC (rev 15407)
@@ -32,10 +32,10 @@
             <div class="side_slider_control">
                 <div class="slider-range" id="other_slider" ></div>
                 <div class="left-range">
-                    <input class="input_min" value="<?php echo 
get_session('x_min', get_session('xrange_min', '0')) ?>"></input>
+                    <input class="input_min" value="<?php echo 
get_session('x_min', get_session('xrange_min')) ?>"></input>
                 </div>
                 <div class="right-range">
-                    <input class="input_max" value="<?php echo 
get_session('x_max', get_session('xrange_max', '0')) ?>"></input>
+                    <input class="input_max" value="<?php echo 
get_session('x_max', get_session('xrange_max')) ?>"></input>
                 </div>
                 <div class="auto_range">
                     <input class="auto_min" type="checkbox" <?php 
if(get_session('x_min_a')) echo 'checked="checked"'?>/>




reply via email to

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