Move all modals out of body-container

This commit is contained in:
JonnyWong16 2017-02-03 17:23:20 -08:00
commit d875f21647
22 changed files with 1340 additions and 1345 deletions

View file

@ -240,13 +240,18 @@
</div>
</div>
</div>
<div class="modal fade" id="history-modal" tabindex="-1" role="dialog" aria-labelledby="history-modal">
</div>
</div>
</div>
</div>
</%def>
<%def name="modalIncludes()">
<div class="modal fade" id="history-modal" tabindex="-1" role="dialog" aria-labelledby="history-modal">
</div>
<div class="modal fade" id="info-modal" tabindex="-1" role="dialog" aria-labelledby="info-modal">
</div>
</%def>
<%def name="javascriptIncludes()">
<script src="${http_root}js/moment-with-locale.js"></script>
<script src="${http_root}js/moment-duration-format.js"></script>
@ -282,16 +287,17 @@
$.ajax({
url: "history_table_modal",
type: 'post',
data: {
cache: false,
async: true,
data: {
user_id: selected_user_id,
start_date: dateString,
media_type: media_type,
transcode_decision: transcode_decision
},
complete: function(xhr, status) {
$('#history-modal').modal('show');
$("#history-modal").html(xhr.responseText);
$('#history-modal').modal();
}
});
}