You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2016/02/05 12:02:46 UTC

svn commit: r1728638 - /steve/trunk/pysteve/www/htdocs/js/steve_monitor.js

Author: humbedooh
Date: Fri Feb  5 11:02:46 2016
New Revision: 1728638

URL: http://svn.apache.org/viewvc?rev=1728638&view=rev
Log:
only fetch old data once

Modified:
    steve/trunk/pysteve/www/htdocs/js/steve_monitor.js

Modified: steve/trunk/pysteve/www/htdocs/js/steve_monitor.js
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/js/steve_monitor.js?rev=1728638&r1=1728637&r2=1728638&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/js/steve_monitor.js (original)
+++ steve/trunk/pysteve/www/htdocs/js/steve_monitor.js Fri Feb  5 11:02:46 2016
@@ -34,9 +34,13 @@ function getJSON(theUrl, xstate, callbac
     }
 }
 
+var firstTime = true
 function getIssues() {
     election = document.location.search.substr(1)
-    fetchData(election)
+    if (firstTime) {
+        fetchData(election)
+        firstTime = false
+    }
     getJSON("/steve/admin/view/" + election, election, listIssues)
 }