diff options
author | Hiroyuki Sato <h-sato@ruby-dev.jp> | 2016-10-28 20:38:14 +0900 |
---|---|---|
committer | Hiroyuki Sato <h-sato@ruby-dev.jp> | 2016-11-06 12:05:13 +0900 |
commit | 56264f35d40e3ebcebf2b88b9ff6f3a8f4f545e9 (patch) | |
tree | 5ba7c48578b118e2b00ebfa1489f9f39acb87518 /app/assets/javascripts | |
parent | c392b0cc24ba40e3fed920c6c693cb24665193af (diff) | |
download | gitlab-ce-56264f35d40e3ebcebf2b88b9ff6f3a8f4f545e9.tar.gz |
Network page appear with an error message when entering nonexistent git revision
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/network/network_bundle.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/network/network_bundle.js b/app/assets/javascripts/network/network_bundle.js index 42d6799c82f..a192273a180 100644 --- a/app/assets/javascripts/network/network_bundle.js +++ b/app/assets/javascripts/network/network_bundle.js @@ -9,6 +9,8 @@ (function() { $(function() { + if (!$(".network-graph").length) return; + var network_graph; network_graph = new Network({ url: $(".network-graph").attr('data-url'), |