Commit 9f936a68 authored by asseldonk's avatar asseldonk
Browse files

Clean up selector

parent dba0d1f9
......@@ -19,7 +19,7 @@ define([
"FileBrowser": FileViews.Browser,
"FileSelector": FileViews.Selector
});
this.setDefaultPreferences(FileViews.Browser, {
View: {
type: "string",
......@@ -54,12 +54,12 @@ define([
}, {
title: "File Browser"
});
// fileShortcuts are defined in shortcuts.js
this.setDefaultShortcuts(FileViews.Browser, Shortcuts, {
title: "File Browser"
});
this.setDefaultPreferences(FileViews.Selector, {
View: {
type: "string",
......@@ -94,26 +94,24 @@ define([
}, {
title: "File Selector"
});
// fileShortcuts are defined in shortcuts.js
this.setDefaultShortcuts(FileViews.Selector, Shortcuts, {
title: "File Selector"
});
this.getDefaultPreferences(FileViews.Browser ).fastMenuEntries.value = [];
this.getDefaultPreferences(FileViews.Selector).fastMenuEntries.value = [
"Home", "Up", "Upload", "Refresh"
];
this.getDefaultPreferences(FileViews.Browser).fastMenuEntries.value = [];
this.getDefaultPreferences(FileViews.Selector).fastMenuEntries.value = [];
var args = {
// path: "",
};
// set options for the FileViews.Selector
this.setOptions("FileSelector", {
maxInstances: 0
});
this.addMenuEntry("New Filebrowser", {
iconClass: "glyphicon glyphicon-folder-close",
priority: 10,
......@@ -125,6 +123,6 @@ define([
});
}
});
return FileExtension;
});
......@@ -52,7 +52,6 @@ define([
"./items",
"../base/views/symbol",
"../base/views/table",
// "./selectortableview"
], function(
FileBase,
FileSelectorActions,
......@@ -60,7 +59,6 @@ define([
FileSelectorItems,
SymbolView,
TableView
// SelectorTableView
) {
var FileSelector = FileBase._extend({
......@@ -77,8 +75,7 @@ define([
this.workflow.sort = args.sort !== undefined ? args.sort : this.workflow.sort;
this.workflow.reverse = args.reverse !== undefined ? args.reverse : this.workflow.reverse;
// this.workflow.currentView = viewstring == "Symbol" ? SymbolView : SelectorTableView;
this.workflow.currentView = viewstring == "Symbol" ? SymbolView : TableView;
this.workflow.currentView = viewstring == "Table" ? TableView : SymbolView;
},
refresh: function(content, sort, reverse) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment