Skip to content

Commit 28d2de5

Browse files
author
Daniel Orner
committed
add comments
1 parent a43f355 commit 28d2de5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/views/vendors/new_modal.js.erb

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
$("#modal_new").html("<%= j (render "vendors/new_modal") %>");
22
$("#modal_new").modal("show");
3+
4+
// There seems to be an odd bug where *only on this page* the close button for the modal
5+
// doesn't work if the "fade" class is added to the modal.
6+
// To keep the fade functionality, we remove it once the modal is shown so the close button
7+
// works, then re-add it in case the modal has to be popped up again.
38
$("#modal_new").on('hidden.bs.modal', function(e) {
49
$("#modal_new").addClass("fade");
510
})

0 commit comments

Comments
 (0)