Skip to content

Commit

Permalink
Merge "Fix errant XHR request happening on every page"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 4, 2013
2 parents ab34fe5 + b5f4d63 commit f754398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions horizon/static/horizon/js/horizon.networktopology.js
Expand Up @@ -21,11 +21,11 @@ horizon.network_topology = {
$("#topologyCanvas").spin(horizon.conf.spinner_options.modal);
self.retrieve_network_info();
setInterval(horizon.network_topology.retrieve_network_info,
horizon.network_topology.reload_duration);
horizon.network_topology.reload_duration);
},
retrieve_network_info: function(){
var self = this;
if(!$("#networktopology")) {
if($("#networktopology").length === 0) {
return;
}
$.getJSON($("#networktopology").data('networktopology'),
Expand Down

0 comments on commit f754398

Please sign in to comment.