|
|
@ -21,7 +21,7 @@ define(
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
events: {
|
|
|
|
events: {
|
|
|
|
'click .x-add': 'addFolder'
|
|
|
|
'click .x-add': '_addFolder'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function () {
|
|
|
|
initialize: function () {
|
|
|
@ -30,7 +30,6 @@ define(
|
|
|
|
this.rootfolderListView.on('itemview:folderSelected', this._onFolderSelected, this);
|
|
|
|
this.rootfolderListView.on('itemview:folderSelected', this._onFolderSelected, this);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onRender: function () {
|
|
|
|
onRender: function () {
|
|
|
|
|
|
|
|
|
|
|
|
this.currentDirs.show(this.rootfolderListView);
|
|
|
|
this.currentDirs.show(this.rootfolderListView);
|
|
|
@ -41,7 +40,7 @@ define(
|
|
|
|
this.trigger('folderSelected', options);
|
|
|
|
this.trigger('folderSelected', options);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
addFolder: function () {
|
|
|
|
_addFolder: function () {
|
|
|
|
var newDir = new RootFolderModel({
|
|
|
|
var newDir = new RootFolderModel({
|
|
|
|
Path: this.ui.pathInput.val()
|
|
|
|
Path: this.ui.pathInput.val()
|
|
|
|
});
|
|
|
|
});
|
|
|
|