2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +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

@ -69,7 +69,7 @@
{% block js_ready %}
$("#company-thumb").click(function() {
launchModalForm("#modal-form",
launchModalForm(
"{% url 'company-image' company.id %}",
{
reload: true

View File

@ -46,7 +46,7 @@
{% block js_ready %}
{{ block.super }}
$('#edit-company').click(function() {
launchModalForm("#modal-form",
launchModalForm(
"{% url 'company-edit' company.id %}",
{
reload: true
@ -54,7 +54,7 @@
});
$('#delete-company').click(function() {
launchDeleteForm("#modal-delete",
launchDeleteForm(
"{% url 'company-delete' company.id %}",
{
redirect: "{% url 'company-index' %}"

View File

@ -18,7 +18,7 @@
{{ block.super }}
$("#part-create").click(function () {
launchModalForm("#modal-form",
launchModalForm(
"{% url 'supplier-part-create' %}",
{
data: {

View File

@ -41,7 +41,7 @@
{% block js_ready %}
{{ block.super }}
$('#part-edit').click(function () {
launchModalForm("#modal-form",
launchModalForm(
"{% url 'supplier-part-edit' part.id %}",
{
reload: true
@ -50,7 +50,7 @@
});
$('#part-delete').click(function() {
launchDeleteForm("#modal-delete",
launchDeleteForm(
"{% url 'supplier-part-delete' part.id %}",
{
redirect: "{% url 'company-index' %}"