diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-04-10 17:11:20 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:20 +0100 |
commit | 3bba23e35348744b58809a2068d6a8536b6c02e1 (patch) | |
tree | 93817496eadc13648680de8c70e7052ce06cb8df /ishtar_common/templates | |
parent | 3176e8cecfbf8e0e4dbcff9d5f8c19f164198010 (diff) | |
download | Ishtar-3bba23e35348744b58809a2068d6a8536b6c02e1.tar.bz2 Ishtar-3bba23e35348744b58809a2068d6a8536b6c02e1.zip |
Container: adapt forms for the new container management
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/blocks/JQueryAutocomplete.js | 2 | ||||
-rw-r--r-- | ishtar_common/templates/ishtar/wizard/default_wizard.html | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/JQueryAutocomplete.js b/ishtar_common/templates/blocks/JQueryAutocomplete.js index aaf493db9..54b0cb645 100644 --- a/ishtar_common/templates/blocks/JQueryAutocomplete.js +++ b/ishtar_common/templates/blocks/JQueryAutocomplete.js @@ -1,6 +1,7 @@ {% load replace_underscore %} var base_source_{{field_id|replace_underscore}} = {{source}}; var source_{{field_id|replace_underscore}} = base_source_{{field_id|replace_underscore}}; +var current_label_{{field_id|replace_underscore}}; $(function() { $("#id_select_{{field_id}}").autocomplete({ @@ -8,6 +9,7 @@ $(function() { select: function( event, ui ) { if(ui.item){ $('#id_{{field_id}}').val(ui.item.id); + current_label_{{field_id|replace_underscore}} = ui.item.label; $('#id_{{field_id}}').change(); } else { $('#id_{{field_id}}').val(null); diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html index cfd17e58f..c279a37e0 100644 --- a/ishtar_common/templates/ishtar/wizard/default_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -52,6 +52,8 @@ {% endblock %} <script language="javascript" type="text/javascript"> var form_changed = false; +{% block "js_extra_generic" %} +{% endblock %} $(document).ready(function(){ $('form :input').change(function(){form_changed=true;}); $('.change_step').click(function(){ |