summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorHiroyuki Sato <h-sato@ruby-dev.jp>2016-10-28 20:38:14 +0900
committerHiroyuki Sato <h-sato@ruby-dev.jp>2016-11-06 12:05:13 +0900
commit56264f35d40e3ebcebf2b88b9ff6f3a8f4f545e9 (patch)
tree5ba7c48578b118e2b00ebfa1489f9f39acb87518 /app/assets/javascripts
parentc392b0cc24ba40e3fed920c6c693cb24665193af (diff)
downloadgitlab-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.js2
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'),