2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Simplified modal calls

- Default modal target supplied (can be overridden in options)
This commit is contained in:
Oliver
2018-05-08 19:55:39 +10:00
parent c5155d5ac7
commit 3f1c6e2059
16 changed files with 55 additions and 43 deletions

View File

@ -83,16 +83,14 @@
{% block js_ready %}
{{ block.super }}
$("#edit-build").click(function () {
launchModalForm("#modal-form",
"{% url 'build-edit' build.id %}",
launchModalForm("{% url 'build-edit' build.id %}",
{
reload: true
});
});
$("#cancel-build").click(function() {
launchModalForm("#modal-form",
"{% url 'build-cancel' build.id %}",
launchModalForm("{% url 'build-cancel' build.id %}",
{
reload: true
});

View File

@ -31,7 +31,7 @@
{% block js_ready %}
{{ block.super }}
$("#new-build").click(function() {
launchModalForm("#modal-form",
launchModalForm(
"{% url 'build-create' %}",
{
follow: true