Commit c0bb8038 authored by yann300's avatar yann300

add readonly property

parent 43f8a071
...@@ -6,6 +6,7 @@ class BasicReadOnlyExplorer { ...@@ -6,6 +6,7 @@ class BasicReadOnlyExplorer {
this.event = new EventManager() this.event = new EventManager()
this.files = {} this.files = {}
this.type = type this.type = type
this.readonly = true
} }
close (cb) { close (cb) {
......
...@@ -216,6 +216,7 @@ function fileExplorer (appAPI, files) { ...@@ -216,6 +216,7 @@ function fileExplorer (appAPI, files) {
} }
function editModeOn (event) { function editModeOn (event) {
if (self.files.readonly) return
var label = this var label = this
var li = getLiFrom(label) var li = getLiFrom(label)
var classes = li.className var classes = li.className
......
Markdown is supported
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