aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-12 02:01:27 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-12 02:03:28 +0000
commit383ed92b11cc709c1b21f354e2a7b7f966a2763d (patch)
tree5745ab2baa682933fada406c4af7c4d5a7aab996
parent89daa2d2ba303b86f6527997f242fc05ad8c3348 (diff)
downloadgit-deps-383ed92b11cc709c1b21f354e2a7b7f966a2763d.tar.gz
draw <svg> on page load
-rw-r--r--html/js/git-deps-graph.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee
index 3391e2c..1b17ba5 100644
--- a/html/js/git-deps-graph.coffee
+++ b/html/js/git-deps-graph.coffee
@@ -54,6 +54,8 @@ jQuery ->
event.preventDefault()
add_commitish $(".commitish input").val()
+ init_svg()
+
setup_default_form_values = ->
$("input[type=text]").each(->
$(this).val $(this).attr("defaultValue")
@@ -128,7 +130,6 @@ window.full_screen_click = full_screen_click
window.zoom_to_fit = zoom_to_fit
add_commitish = (commitish) ->
- init_svg() unless svg
draw_graph commitish
calculate_svg_size_from_container = ->