add readonly property

pull/1/head
yann300 7 years ago
parent 43f8a07157
commit c0bb803892
  1. 1
      src/app/files/basicReadOnlyExplorer.js
  2. 1
      src/app/files/file-explorer.js

@ -6,6 +6,7 @@ class BasicReadOnlyExplorer {
this.event = new EventManager()
this.files = {}
this.type = type
this.readonly = true
}
close (cb) {

@ -216,6 +216,7 @@ function fileExplorer (appAPI, files) {
}
function editModeOn (event) {
if (self.files.readonly) return
var label = this
var li = getLiFrom(label)
var classes = li.className

Loading…
Cancel
Save