mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-25 22:37:27 -04:00
Fixed: Folder in List settings appearing blank in some browsers. Fixes #1711
This commit is contained in:
@@ -42,9 +42,13 @@ var view = Marionette.ItemView.extend({
|
||||
},
|
||||
|
||||
onRender : function() {
|
||||
var rootFolder = this.model.get("rootFolderPath")
|
||||
var rootFolder = this.model.get("rootFolderPath");
|
||||
if (rootFolder != "") {
|
||||
this.ui.rootFolder.val(rootFolder)
|
||||
//this.ui.rootFolder.val(rootFolder);
|
||||
this.ui.rootFolder.children().filter(function() {
|
||||
//may want to use $.trim in here
|
||||
return $(this).text() == rootFolder;
|
||||
}).attr('selected', true);
|
||||
} else {
|
||||
var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId);
|
||||
if (RootFolders.get(defaultRoot)) {
|
||||
|
||||
Reference in New Issue
Block a user