allow custom export repositories (#2182)
This commit is contained in:
@@ -41,7 +41,9 @@
|
||||
{{ form_row(form.projects) }}
|
||||
{{ form_row(form.activities) }}
|
||||
{{ form_row(form.tags) }}
|
||||
{{ form_row(form.users) }}
|
||||
{% if form.users is defined %}
|
||||
{{ form_row(form.users) }}
|
||||
{% endif %}
|
||||
{{ form_row(form.exported) }}
|
||||
{{ form_row(form.state) }}
|
||||
{{ form_row(form.markAsExported) }}
|
||||
@@ -289,13 +291,13 @@
|
||||
});
|
||||
|
||||
$('body').on('click', '#export-buttons .startExportBtn', function() {
|
||||
$('#type').val($(this).attr('data-type'));
|
||||
$('#renderer').val($(this).attr('data-type'));
|
||||
var $form = $("#export-form");
|
||||
var prevAction = $form.attr('action');
|
||||
var prevMethod = $form.attr('method');
|
||||
$form.attr('target', '_blank').attr('method', 'POST').attr('action', '{{ path('export_data') }}');
|
||||
$form.submit();
|
||||
$('#type').val('');
|
||||
$('#renderer').val('');
|
||||
$form.removeAttr('target').attr('action', prevAction).attr('method', prevMethod);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user