Commit 8af33059 authored by iv's avatar iv

OfficeJS drive: Fix error display.

parent 7883bb10
...@@ -151,9 +151,7 @@ ...@@ -151,9 +151,7 @@
})\n })\n
\n \n
.declareMethod("browse", function (command, args) {\n .declareMethod("browse", function (command, args) {\n
var gadget = this,\n var gadget = this;\n
position = args[0].split(\'/\'),\n
resource = position.pop();\n
\n \n
function absolutePosition(current, requested) {\n function absolutePosition(current, requested) {\n
var pos;\n var pos;\n
...@@ -179,6 +177,8 @@ ...@@ -179,6 +177,8 @@
\n \n
case \'vim\':\n case \'vim\':\n
case \'vi\':\n case \'vi\':\n
var position = args[0].split(\'/\'),\n
resource = position.pop();\n
if (args.length === 1) {\n if (args.length === 1) {\n
return gadget.redirect({\n return gadget.redirect({\n
page: \'edit\',\n page: \'edit\',\n
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
gadget.props.element.querySelector(\'.error\').textContent = e.name +\n gadget.props.element.querySelector(\'.error\').textContent = e.name +\n
": " +\n ": " +\n
e.message;\n e.message;\n
} }\n
}\n }\n
})\n })\n
\n \n
......
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