mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Move modal JS file
- Loaded by base.
This commit is contained in:
parent
ee0c664d28
commit
c5155d5ac7
@ -80,12 +80,8 @@
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
{{ block.super }}
|
||||||
$("#edit-build").click(function () {
|
$("#edit-build").click(function () {
|
||||||
launchModalForm("#modal-form",
|
launchModalForm("#modal-form",
|
||||||
"{% url 'build-edit' build.id %}",
|
"{% url 'build-edit' build.id %}",
|
||||||
|
@ -28,11 +28,8 @@
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
{{ block.super }}
|
||||||
$("#new-build").click(function() {
|
$("#new-build").click(function() {
|
||||||
launchModalForm("#modal-form",
|
launchModalForm("#modal-form",
|
||||||
"{% url 'build-create' %}",
|
"{% url 'build-create' %}",
|
||||||
|
@ -42,11 +42,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -13,13 +13,8 @@
|
|||||||
<button class="btn btn-success" id='part-create'>New Supplier Part</button>
|
<button class="btn btn-success" id='part-create'>New Supplier Part</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
$("#part-create").click(function () {
|
$("#part-create").click(function () {
|
||||||
|
@ -16,13 +16,9 @@
|
|||||||
|
|
||||||
{% include 'modals.html' %}
|
{% include 'modals.html' %}
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
{{ block.super }}
|
||||||
$('#new-company').click(function () {
|
$('#new-company').click(function () {
|
||||||
launchModalForm('#modal-form',
|
launchModalForm('#modal-form',
|
||||||
"{% url 'company-create' %}",
|
"{% url 'company-create' %}",
|
||||||
|
@ -38,10 +38,8 @@
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
{{ block.super }}
|
||||||
$('#part-edit').click(function () {
|
$('#part-edit').click(function () {
|
||||||
launchModalForm("#modal-form",
|
launchModalForm("#modal-form",
|
||||||
"{% url 'supplier-part-edit' part.id %}",
|
"{% url 'supplier-part-edit' part.id %}",
|
||||||
|
@ -18,13 +18,9 @@
|
|||||||
<button type='button' class='btn btn-success' id='new-bom-item'>Add BOM Item</button>
|
<button type='button' class='btn btn-success' id='new-bom-item'>Add BOM Item</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
{{ block.super }}
|
||||||
function reloadBom() {
|
function reloadBom() {
|
||||||
$("#bom-table").bootstrapTable('refresh');
|
$("#bom-table").bootstrapTable('refresh');
|
||||||
}
|
}
|
||||||
|
@ -78,10 +78,6 @@
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
$("#part-thumb").click(function() {
|
$("#part-thumb").click(function() {
|
||||||
|
@ -129,10 +129,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js_load %}
|
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
{{ block.super }}
|
||||||
$("#stock-edit").click(function () {
|
$("#stock-edit").click(function () {
|
||||||
launchModalForm("#modal-form",
|
launchModalForm("#modal-form",
|
||||||
"{% url 'stock-item-edit' item.id %}",
|
"{% url 'stock-item-edit' item.id %}",
|
||||||
|
@ -61,7 +61,6 @@
|
|||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
<script type='text/javascript' src="{% static 'script/inventree/api.js' %}"></script>
|
<script type='text/javascript' src="{% static 'script/inventree/api.js' %}"></script>
|
||||||
<script type='text/javascript' src="{% static 'script/inventree/stock.js' %}"></script>
|
<script type='text/javascript' src="{% static 'script/inventree/stock.js' %}"></script>
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
@ -65,7 +65,7 @@ InvenTree
|
|||||||
<script type='text/javascript' src="{% static 'script/sidenav.js' %}"></script>
|
<script type='text/javascript' src="{% static 'script/sidenav.js' %}"></script>
|
||||||
<script type='text/javascript' src="{% static 'script/notification.js' %}"></script>
|
<script type='text/javascript' src="{% static 'script/notification.js' %}"></script>
|
||||||
<script type='text/javascript' src="{% static 'script/jquery.form.min.js' %}"></script>
|
<script type='text/javascript' src="{% static 'script/jquery.form.min.js' %}"></script>
|
||||||
<script type='text/javascript' src="{% static 'script/modal_form.js' %}"></script>
|
<script type='text/javascript' src="{% static 'script/inventree/modals.js' %}"></script>
|
||||||
{% block js_load %}
|
{% block js_load %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user