aboutsummaryrefslogtreecommitdiffstats
path: root/html
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-08 16:32:13 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-08 16:35:49 +0000
commitd214a9c49be983d5fdea983235c3879c5af473c1 (patch)
treebf46e408024b14e3b7a7f141fb5848aadd246aef /html
parent630f823438158ade9c8e0c6f48ebba2c3aa29320 (diff)
downloadgit-deps-d214a9c49be983d5fdea983235c3879c5af473c1.tar.gz
make client retrieve server-side options
This will be used to check for debug mode and possibly other things.
Diffstat (limited to 'html')
-rw-r--r--html/js/git-deps-graph.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js
index 73c3196..45772f5 100644
--- a/html/js/git-deps-graph.js
+++ b/html/js/git-deps-graph.js
@@ -28,10 +28,18 @@ var deps = {};
// d3 visualization elements. Kept global to aid in-browser debugging.
var svg, fg, node, path, tip, tip_template;
+// Options will be retrieved from web server
+var options;
+
jQuery(function () {
+ d3.json('options', function (error, data) {
+ options = data;
+ });
+
d3.html('tip-template.html', function (error, html) {
tip_template = html;
});
+
//setup_default_form_values();
$('form.commitish').submit(function (event) {
event.preventDefault();