Merge "Fix errant XHR request happening on every page"

This commit is contained in:
Jenkins 2013-03-04 22:49:31 +00:00 committed by Gerrit Code Review
commit f754398492

View File

@ -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'),