mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed: Manual Import not scrolling after using file browser
Closes #745
This commit is contained in:
parent
e9248e284e
commit
7284ef50eb
2 changed files with 15 additions and 0 deletions
|
@ -16,6 +16,14 @@ var region = ModalRegionBase.extend({
|
|||
this.$el.on('shown.bs.modal', function() {
|
||||
$('.modal-backdrop:last').css('z-index', 1059);
|
||||
});
|
||||
},
|
||||
|
||||
_closed : function () {
|
||||
ModalRegionBase.prototype._closed.apply(this, arguments);
|
||||
|
||||
if (require('../../AppLayout').modalRegion.currentView) {
|
||||
$('body').addClass('modal-open');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ var region = Marionette.Region.extend({
|
|||
});
|
||||
|
||||
this.$el.on('hide.bs.modal', $.proxy(this._closing, this));
|
||||
this.$el.on('hidden.bs.modal', $.proxy(this._closed, this));
|
||||
|
||||
this.currentView.$el.addClass('modal-dialog');
|
||||
|
||||
|
@ -52,6 +53,12 @@ var region = Marionette.Region.extend({
|
|||
}
|
||||
|
||||
this.reset();
|
||||
},
|
||||
|
||||
_closed: function () {
|
||||
if (this.$el) {
|
||||
this.$el.off('hidden.bs.modal');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue