gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14969 - gauger


From: gnunet
Subject: [GNUnet-SVN] r14969 - gauger
Date: Tue, 12 Apr 2011 19:09:19 +0200

Author: bartpolot
Date: 2011-04-12 19:09:19 +0200 (Tue, 12 Apr 2011)
New Revision: 14969

Modified:
   gauger/template.php
Log:
Worked around a bug in firefox where an update with new y_min value 0 does not 
issue a request for a new image


Modified: gauger/template.php
===================================================================
--- gauger/template.php 2011-04-12 16:36:20 UTC (rev 14968)
+++ gauger/template.php 2011-04-12 17:09:19 UTC (rev 14969)
@@ -212,12 +212,13 @@
                 $( ".auto_y" ).click(function(){
                     var chk = this.checked;
                     min = chk ? "auto" : 
$("#change_origin_slider").slider('value');
-                    $( ".plot" ).each(function() {
-                        this.src = this.src.replace(/&y_min=[^&]+/g, 
'')+"&y_min="+min;
-                    });
                     $.get("ajax.php", {
                         y_min: min,
                         persist: "true"
+                    }, function(data) {
+                        $( ".plot" ).each(function(){
+                            this.src = this.src.replace(/&y_min=[^&]+/g, 
'')+"&reload=1";
+                        });
                     });
                 });
                 $( "#change_origin_slider" ).slider({




reply via email to

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