<!DOCTYPE html>
<html>
  <head><title></title></head>
  <body>
    <script type="text/javascript">
      {% if action == 'change' %}
        opener.dismissChangeRelatedObjectPopup(window, "{{ value }}", "{{ obj }}", "{{ new_value }}");
      {% elif action == 'delete' %}
        opener.dismissDeleteRelatedObjectPopup(window, "{{ value }}");
      {% else %}
        opener.dismissAddRelatedObjectPopup(window, "{{ value }}", "{{ obj }}");
      {% endif %}

      opener.jet.jQuery('select').trigger('select:init');
    </script>
  </body>
</html>
