summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/wizard/search.html')
-rw-r--r--ishtar_common/templates/ishtar/wizard/search.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/search.html b/ishtar_common/templates/ishtar/wizard/search.html
index a7a6faec7..2e7e9bb08 100644
--- a/ishtar_common/templates/ishtar/wizard/search.html
+++ b/ishtar_common/templates/ishtar/wizard/search.html
@@ -5,11 +5,14 @@
{% endblock %}
{% block content %}
<h3>{{wizard_label}}</h3>
-{% if default_search_vector %}
+{% if default_search_vector or open_url %}
<script type="text/javascript">
- var default_search_vector = "{{default_search_vector|safe}}".replace(/''/g, '"');
+ {% if default_search_vector %}
+ var default_search_vector = "{{default_search_vector|safe}}".replace(/''/g, '"');{% endif %}
$(document).ready(function() {
- $("#id_search_vector").val(default_search_vector.replace(/''/g, '"'));
+ {% if default_search_vector %}
+ $("#id_search_vector").val(default_search_vector.replace(/''/g, '"'));{% endif %}
+ {% if open_url %}load_window("{{open_url}}");{% endif %}
});
</script>
{% endif %}