mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
parent
10bceaf370
commit
234827d5fd
@ -42,9 +42,14 @@ var view = Marionette.ItemView.extend({
|
||||
},
|
||||
|
||||
onRender : function() {
|
||||
var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId);
|
||||
if (RootFolders.get(defaultRoot)) {
|
||||
this.ui.rootFolder.val(defaultRoot);
|
||||
var rootFolder = this.model.get("rootFolderPath")
|
||||
if (rootFolder != "") {
|
||||
this.ui.rootFolder.val(rootFolder)
|
||||
} else {
|
||||
var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId);
|
||||
if (RootFolders.get(defaultRoot)) {
|
||||
this.ui.rootFolder.val(defaultRoot);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -89,7 +89,7 @@
|
||||
<label class="col-sm-3 control-label">Folder</label>
|
||||
|
||||
<div class="col-sm-5">
|
||||
<select class="col-md-4 form-control x-root-folder" name="RootFolderPath">
|
||||
<select class="col-md-4 form-control x-root-folder" name="rootFolderPath">
|
||||
{{#if rootFolders}}
|
||||
{{#each rootFolders}}
|
||||
<option value="{{id}}">{{path}}</option>
|
||||
|
Loading…
Reference in New Issue
Block a user