mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Folder in List settings appearing blank in some browsers. Fixes #1711
This commit is contained in:
parent
58b9c9d3d1
commit
7712aa62da
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user