Skip to content

Commit a43f355

Browse files
author
Daniel Orner
committed
Hack to fix the close button not working.
This only happens for the purchases -> new vendor popup. No idea why.
1 parent 87a8abc commit a43f355

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/views/vendors/new_modal.js.erb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
$("#modal_new").html("<%= j (render "vendors/new_modal") %>");
2-
$("#modal_new").modal("show");
2+
$("#modal_new").modal("show");
3+
$("#modal_new").on('hidden.bs.modal', function(e) {
4+
$("#modal_new").addClass("fade");
5+
})
6+
$("#modal_new").removeClass("fade");

0 commit comments

Comments
 (0)