Skip to content
This repository has been archived by the owner on Sep 5, 2021. It is now read-only.

Commit

Permalink
Run the first update on dom ready, not dom ready + update interval.
Browse files Browse the repository at this point in the history
  • Loading branch information
bamnet committed Nov 1, 2010
1 parent 591ebb3 commit f774cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/displays/index.html.erb
Expand Up @@ -19,6 +19,7 @@
});
updater = setInterval("update()", <%= UPDATE_INTERVAL %>);
routes_and_stops();
update(); //Run the first update instead of waiting.
<% end %>
<% content_for :js do %>
var map; //The map!
Expand Down

0 comments on commit f774cbf

Please sign in to comment.