|
|
@ -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)) {
|
|
|
|