Added SCRIPT_ROOT parameter. Fixes #52.

Adds a new javascript parameter that holds the webroot of the app. This
allows the the javascript calls to properly identify that they're
running in a subfolder/different webroot and direct their queries there.
This commit is contained in:
Ivan Filippov
2016-07-01 18:45:42 -06:00
parent ff842f66e2
commit ea79c01aff
7 changed files with 13 additions and 11 deletions

View File

@ -240,7 +240,7 @@
});
$(document.body).on("click", ".button_dnssec", function() {
var domain = $(this).prop('id');
getdnssec('/domain/' + domain + '/dnssec');
getdnssec($SCRIPT_ROOT + '/domain/' + domain + '/dnssec');
});
</script>
{% endblock %}