Prowlarr/src/UI/Shared/Modal/ModalRegion2.js
2015-05-12 16:57:30 -07:00

22 lines
No EOL
568 B
JavaScript

var $ = require('jquery');
var ModalRegionBase = require('./ModalRegionBase');
var region = ModalRegionBase.extend({
el : '#modal-region2',
initialize : function () {
this.listenTo(this, 'modal:beforeShow', this.onBeforeShow);
},
onBeforeShow : function () {
this.$el.addClass('modal fade');
this.$el.attr('tabindex', '-1');
this.$el.css('z-index', '1060');
this.$el.on('shown.bs.modal', function() {
$('.modal-backdrop:last').css('z-index', 1059);
});
}
});
module.exports = region;