Skip to content
Snippets Groups Projects
Commit 23e46749 authored by syuilo's avatar syuilo
Browse files

Fix bug

parent b12c4a06
No related branches found
No related tags found
No related merge requests found
......@@ -248,6 +248,7 @@
};
this.move = ev => {
ev.preventDefault();
this.cd(ev.item.folder);
return false;
};
......@@ -333,7 +334,9 @@
this.prependFile = file => this.addFile(file, true);
this.prependFolder = file => this.addFolder(file, true);
this.goRoot = () => {
this.goRoot = ev => {
ev.preventDefault();
if (this.folder || this.file) {
this.update({
file: null,
......
......@@ -138,7 +138,8 @@
this.isSelected = selections.some(f => f.id == this.file.id);
});
this.onclick = () => {
this.onclick = ev => {
ev.preventDefault();
this.browser.chooseFile(this.file);
return false;
};
......
<mk-drive-folder onclick={ onclick }>
<mk-drive-folder>
<a onclick={ onclick } href="/i/drive/folder/{ folder.id }">
<div class="container">
<p class="name">%fa:folder%{ folder.name }</p>%fa:angle-right%
......@@ -44,7 +44,8 @@
this.browser = this.parent;
this.folder = this.opts.folder;
this.onclick = () => {
this.onclick = ev => {
ev.preventDefault();
this.browser.cd(this.folder);
return false;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment