Fixed: Folder in List settings appearing blank in some browsers. Fixes #1711

pull/2/head
Leonardo Galli 8 years ago
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…
Cancel
Save