Commit 1ada38e8 authored by Martin Urban's avatar Martin Urban
Browse files

File: Switch to table view if touch. Improve touch support.

parent e55b7b07
......@@ -16,6 +16,18 @@
top: 0px;
}
.file-selection-checkbox:after {
content: '';
position: absolute;
top: -10px;
bottom: -10px;
left: -10px;
right: -10px;
border: 1px solid silver;
border-radius: 18px;
-webkit-user-select: none;
}
.files-table-first-row {
margin: 5px 0px 0px 0px;
font-weight: bold;
......
......@@ -77,6 +77,11 @@ var FileBaseEvents = Class.extend({
if (self.FileBase.workflow.selectmode) {
event.stopPropagation();
self.FileBase.selections.changeSelection(node, true);
} else if ((vispa.device.hasTouch || openstring == "click") && Object.keys(self.FileBase.selections
.entries).length > 0) {
self.FileBase.selections.unselectAll();
self.FileBase.menuitems.hideMenu();
return;
} else {
self.FileBase.selections.unselectAll();
self.FileBase.selections.changeSelection(node, true);
......
......@@ -7,8 +7,7 @@ var FileExtension = vispa.Extension.extend({
});
this.getDefaultPreferences(FileBrowserView).fastMenuEntries.value = ["Up", "Upload",
"Refresh", "Sort By Name", "Sort By Date", "Sort By Type"
];
"Refresh"];
// or
// this.addViews({"FileBrowserFullView": FileBrowserView, ...})
......
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