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

@ -25,7 +25,7 @@ horizon.network_topology = {
},
retrieve_network_info: function(){
var self = this;
if(!$("#networktopology")) {
if($("#networktopology").length === 0) {
return;
}
$.getJSON($("#networktopology").data('networktopology'),