Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/5e0a66d792665338b302cbf38af2cc09d128f063
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
14 additions and
8 deletions
@ -4,45 +4,50 @@ define(
'handlebars'
] , function ( Handlebars ) {
var form Builder = function ( field ) {
var _field Builder = function ( field ) {
if ( ! field . type ) {
return Handlebars. helpers . partial . apply ( field ,
return _templateRenderer . apply ( field ,
[
'Form/TextboxTemplate'
] ) ;
}
if ( field . type === 'password' ) {
return Handlebars. helpers . partial . apply ( field ,
return _templateRenderer . apply ( field ,
[
'Form/PasswordTemplate'
] ) ;
}
if ( field . type === 'checkbox' ) {
return Handlebars. helpers . partial . apply ( field ,
return _templateRenderer . apply ( field ,
[
'Form/CheckboxTemplate'
] ) ;
}
if ( field . type === 'select' ) {
return Handlebars. helpers . partial . apply ( field ,
return _templateRenderer . apply ( field ,
[
'Form/SelectTemplate'
] ) ;
}
return Handlebars. helpers . partial . apply ( field ,
return _templateRenderer . apply ( field ,
[
'Form/TextboxTemplate'
] ) ;
} ;
var _templateRenderer = function ( templateName ) {
var templateFunction = Marionette . TemplateCache . get ( templateName ) ;
return new Handlebars . SafeString ( templateFunction ( this ) ) ;
} ;
Handlebars . registerHelper ( 'formBuilder' , function ( ) {
var ret = '' ;
_ . each ( this . fields , function ( field ) {
ret += this . FieldBuilder ( field ) ;
ret += _f ieldBuilder( field ) ;
} ) ;
return new Handlebars . SafeString ( ret ) ;
@ -1,7 +1,8 @@
'use strict' ;
define (
[
'Settings/Indexers/Model'
'Settings/Indexers/Model' ,
'Form/FormBuilder'
] , function ( IndexerModel ) {
return Backbone . Collection . extend ( {
url : window . ApiRoot + '/indexer' ,