Commit 182ada98 authored by yann300's avatar yann300

disallow to changde the root node (either browser or storage)

parent e32d58d9
......@@ -46,6 +46,7 @@ var css = csjs`
module.exports = fileExplorer
function fileExplorer (appAPI, files) {
var self = this
this.files = files
function remixdDialog () {
......@@ -203,7 +204,7 @@ function fileExplorer (appAPI, files) {
var label = this
var li = getLiFrom(label)
var classes = li.className
if (~classes.indexOf('hasFocus') && !label.getAttribute('contenteditable')) {
if (~classes.indexOf('hasFocus') && !label.getAttribute('contenteditable') && label.getAttribute('data-path') !== self.files.type) {
textUnderEdit = label.innerText
label.setAttribute('contenteditable', true)
label.classList.add(css.rename)
......
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