diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-27 17:53:15 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-12-27 17:55:37 +0100 |
| commit | 9616de5a2c949bedde51e00e828478896bfe51bb (patch) | |
| tree | 9ba5641662d7abeb2c690595f3255eb9df32ccc1 /ishtar_common/templates | |
| parent | 2b2293c6e7d6f1211d512665f088dedde0df5428 (diff) | |
| download | Ishtar-9616de5a2c949bedde51e00e828478896bfe51bb.tar.bz2 Ishtar-9616de5a2c949bedde51e00e828478896bfe51bb.zip | |
Display current item window after creation and modification (refs #1574)
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/ishtar/wizard/wizard_done.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/wizard_done.html b/ishtar_common/templates/ishtar/wizard/wizard_done.html index 7de3edfce..2823c1bae 100644 --- a/ishtar_common/templates/ishtar/wizard/wizard_done.html +++ b/ishtar_common/templates/ishtar/wizard/wizard_done.html @@ -2,10 +2,14 @@ {% load i18n %} {% block content %} <p>{%trans "Item successfully saved"%}</p> -{% if redirect %} +{% if redirect or wizard_done_window %} <script type='text/javascript' language='javascript'> +{% if redirect %} window.location.href = "{{redirect}}"; +{% endif %} +{% if wizard_done_window %} +$(function(){ load_window("{{wizard_done_window}}{{item.pk}}/"); }); +{% endif %} </script> {% endif %} -</div> {% endblock %} |
