mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 21:15:41 +00:00
Generecised launchModalForm
- Add 'options' e.g. redirect / data
This commit is contained in:
@ -50,15 +50,15 @@
|
||||
$("#create-cat").click(function() {
|
||||
launchModalForm("#modal-form",
|
||||
"{% url 'category-create' %}",
|
||||
{category: {{ category.id }}
|
||||
});
|
||||
{data: {category: {{ category.id }}
|
||||
}});
|
||||
});
|
||||
|
||||
$("#create-part").click( function() {
|
||||
launchModalForm("#modal-form",
|
||||
"{% url 'part-create' %}",
|
||||
{category: {{ category.id }}
|
||||
});
|
||||
{data: {category: {{ category.id }}
|
||||
}});
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user