mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
enable named views for smoke tests
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
module.exports = function(){
|
||||
|
||||
window.NzbDrone.NameViews = window.NzbDrone.NameViews || !window.NzbDrone.Production;
|
||||
|
||||
var regex = new RegExp('/', 'g');
|
||||
|
||||
var _getViewName = function(template){
|
||||
@@ -11,7 +13,10 @@ module.exports = function(){
|
||||
|
||||
var originalOnRender = this.onRender;
|
||||
this.onRender = function(){
|
||||
this.$el.addClass('iv-' + _getViewName(this.template));
|
||||
|
||||
if(window.NzbDrone.NameViews) {
|
||||
this.$el.addClass('iv-' + _getViewName(this.template));
|
||||
}
|
||||
|
||||
if(originalOnRender) {
|
||||
return originalOnRender.call(this);
|
||||
|
||||
Reference in New Issue
Block a user