|
|
@ -1,5 +1,7 @@
|
|
|
|
module.exports = function(){
|
|
|
|
module.exports = function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.NzbDrone.NameViews = window.NzbDrone.NameViews || !window.NzbDrone.Production;
|
|
|
|
|
|
|
|
|
|
|
|
var regex = new RegExp('/', 'g');
|
|
|
|
var regex = new RegExp('/', 'g');
|
|
|
|
|
|
|
|
|
|
|
|
var _getViewName = function(template){
|
|
|
|
var _getViewName = function(template){
|
|
|
@ -11,7 +13,10 @@ module.exports = function(){
|
|
|
|
|
|
|
|
|
|
|
|
var originalOnRender = this.onRender;
|
|
|
|
var originalOnRender = this.onRender;
|
|
|
|
this.onRender = function(){
|
|
|
|
this.onRender = function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(window.NzbDrone.NameViews) {
|
|
|
|
this.$el.addClass('iv-' + _getViewName(this.template));
|
|
|
|
this.$el.addClass('iv-' + _getViewName(this.template));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(originalOnRender) {
|
|
|
|
if(originalOnRender) {
|
|
|
|
return originalOnRender.call(this);
|
|
|
|
return originalOnRender.call(this);
|
|
|
|