Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/blame/commit/609c5bfc24bbce7e9ce568b594ec2d57419b3e14/UI/Shared/ModalRegion.js
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
define(['app'], function () {
|
|
|
|
|
return Backbone.Marionette.Region.extend({
|
|
|
|
|
el: "#modal-region",
|
|
|
|
|
|
|
|
|
|
constructor: function () {
|
|
|
|
|
_.bindAll(this);
|
|
|
|
|
Backbone.Marionette.Region.prototype.constructor.apply(this, arguments);
|
|
|
|
|
this.on("show", this.showModal, this);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getEl: function (selector) {
|
|
|
|
|
var $el = $(selector);
|
|
|
|
|
$el.on("hidden", this.close);
|
|
|
|
|
return $el;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
showModal: function (view) {
|
|
|
|
|
view.on("close", this.hideModal, this);
|
|
|
|
|
this.$el.modal('show');
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
hideModal: function () {
|
|
|
|
|
this.$el.modal('hide');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|