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

pull/1782/head
Leonardo Galli 8 years ago
parent 58b9c9d3d1
commit 7712aa62da

@ -42,9 +42,13 @@ var view = Marionette.ItemView.extend({
}, },
onRender : function() { onRender : function() {
var rootFolder = this.model.get("rootFolderPath") var rootFolder = this.model.get("rootFolderPath");
if (rootFolder != "") { 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 { } else {
var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId); var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId);
if (RootFolders.get(defaultRoot)) { if (RootFolders.get(defaultRoot)) {

Loading…
Cancel
Save