Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/src/commit/fa2b2df7d552472ab1295bb880a6ded1587c8f2f/UI/Mixins/backbone.modelbinder.mixin.js You should set ROOT_URL correctly, otherwise the web may not work correctly.
Lidarr/UI/Mixins/backbone.modelbinder.mixin.js

40 lines
923 B

'use strict';
var oldItemViewRender = Marionette.ItemView.prototype.render;
var oldItemCollectionViewRender = Marionette.CollectionView.prototype.render;
Marionette.View.prototype.viewName = function () {
if (this.template) {
var regex = new RegExp('\/', 'g');
return this.template
.toLocaleLowerCase()
.replace('template','')
.replace(regex, '-');
}
return undefined;
};
Marionette.ItemView.prototype.render = function () {
var result = oldItemViewRender.apply(this, arguments);
this.$el.addClass('iv-' + this.viewName());
if (this.model) {
NzbDrone.ModelBinder.bind(this.model, this.el);
}
return result;
};
Marionette.CollectionView.prototype.render = function () {
if (this.model) {
NzbDrone.ModelBinder.bind(this.model, this.el);
}
return oldItemCollectionViewRender.apply(this, arguments);
};