Commit e8445dd0 authored by echel0n's avatar echel0n
Browse files

Fixed issue when displaying multiple modals same page, 2nd modal wasn't removing scrollbar.

parent 15f97813
# Changelog
- * 2cfa719 - 2018-09-16: Pre-Release v9.3.79.dev2
- * 3b394b0 - 2018-09-16: Fixed issue when displaying multiple modals same page, 2nd modal wasn't removing scrollbar.
- * 15f9781 - 2018-09-16: Pre-Release v9.3.79.dev2
- * f87f0b0 - 2018-09-16: Fixed search issue with Zooqle torrent provider.
- * e6fab35 - 2018-09-15: Pre-Release v9.3.79.dev1
- * 60a435c - 2018-09-15: Added Zooqle torrent provider
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -47,7 +47,7 @@
<!-- displayShow Modals -->
<%def name="displayShowModals()">
<div id="manualSearchModalFailed" class="modal fade" data-backdrop="false" data-keyboard="false">
<div id="manualSearchModalFailed" class="modal fade" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">
<div class="modal-content bg-dark">
<div class="modal-header bg-secondary">
......@@ -61,14 +61,14 @@
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">${_('No')}</button>
<button type="button" class="btn btn-success" data-dismiss="modal">${_('Yes')}</button>
<button type="button" class="btn btn-danger" data-dismiss="modal" data-toggle="modal" href="#manualSearchModalQuality">${_('No')}</button>
<button type="button" class="btn btn-success" data-dismiss="modal" data-toggle="modal" href="#manualSearchModalQuality">${_('Yes')}</button>
</div>
</div>
</div>
</div>
<div id="manualSearchModalQuality" class="modal fade" data-backdrop="false" data-keyboard="false">
<div id="manualSearchModalQuality" class="modal fade" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">
<div class="modal-content bg-dark">
<div class="modal-header bg-secondary">
......
......@@ -483,6 +483,11 @@ $(document).ready(function ($) {
}
});
$('.modal').on('shown.bs.modal', function () {
$('body').addClass('modal-open');
$('body').removeAttr('style');
})
SICKRAGE.browser.init();
SICKRAGE.quality_chooser.init();
......@@ -719,7 +724,6 @@ $(document).ready(function ($) {
$('#manualSearchModalFailed .btn').click(function () {
SICKRAGE.ajax_search.failedDownload = ($(this).text().toLowerCase() === 'yes');
$("#manualSearchModalQuality").modal();
});
$('#manualSearchModalQuality .btn').click(function () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment