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:
@ -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
|
||||
});
|
||||
|
@ -31,7 +31,7 @@
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
$("#new-build").click(function() {
|
||||
launchModalForm("#modal-form",
|
||||
launchModalForm(
|
||||
"{% url 'build-create' %}",
|
||||
{
|
||||
follow: true
|
||||
|
Reference in New Issue
Block a user