URI: 
       tupdate index.html for requests that do not expire - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c10a1672dad68d5a89569774ac4f9152e92fb8ab
   DIR parent c2db006c868254aa2a47bf72e923d49c5abf5299
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 19 Feb 2016 14:08:28 +0100
       
       update index.html for requests that do not expire
       
       Diffstat:
         M lib/www/index.html                  |      14 ++++++++------
       
       1 file changed, 8 insertions(+), 6 deletions(-)
       ---
   DIR diff --git a/lib/www/index.html b/lib/www/index.html
       t@@ -39,12 +39,13 @@ if (id) {
                        var max = 100;
                        var initial = data.time;
                        var duration = data.exp;
       -                  var current = 100 * (Math.floor(Date.now()/1000) - initial)/duration;
       -                $("#progressbar").progressbar({
       +                if(duration){
       +                       var current = 100 * (Math.floor(Date.now()/1000) - initial)/duration;
       +                  $("#progressbar").progressbar({
                            value: current,
                            max: max
       -                });
       -                function update() {
       +                  });
       +                  function update() {
                            current = 100 * (Math.floor(Date.now()/1000) - initial)/duration;
                            $("#progressbar").progressbar({
                                value: current
       t@@ -52,8 +53,9 @@ if (id) {
                            if (current >= max) {
                                $("#container").html("This invoice has expired");
                            }
       -                };
       -                var interval = setInterval(update, 1000);
       +                  };
       +                  var interval = setInterval(update, 1000);
       +                 }
                    });
                    })
                .fail(function() {