Skip to content

Commit fc8d969

Browse files
committed
Update page.js
1 parent fcbbe95 commit fc8d969

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/assets/javascripts/page.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ $(document).on("turbolinks:load", function() {
1111
$.get(container.data("async"), function(data) {
1212
container.find(".modal-body").html(data);
1313
t.data("loaded", true);
14+
}).fail(function(data, err) {
15+
container.find(".modal-body").html(
16+
"Request failed with status " + data.status + " " + err
17+
);
1418
});
1519
});
1620
});

0 commit comments

Comments
 (0)