3112: minor cleanup
[arvados.git] / apps / workbench / app / views / application / report_issue_popup.js.erb
index 513bf7db6593badb28954be9e90cf55324cc1665..5cfe502166f86210a107314786913c8b2188777e 100644 (file)
@@ -1,7 +1,6 @@
 $("#report-issue-modal-window").html("<%= escape_javascript(render partial: 'report_issue_popup') %>");
+$("#report-issue-modal-window .modal").modal('show');
 
-// reset form input fields, for the next time around
-function reset_form() {
-  $('#report_text').val("");
-  $('#additional_info').val("");
-}
+$('#report-issue-modal-window').on('hidden.bs.modal', function () {
+ location.reload();
+})