Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
7883bb10
Commit
7883bb10
authored
Feb 02, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OfficeJS drive: Fix unecessary line and add message errors for cd/ls 'commands'.
parent
409c5988
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
27 deletions
+32
-27
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/gadget_officejs_drive_page_browse_js.xml
.../web_page_module/gadget_officejs_drive_page_browse_js.xml
+30
-26
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/gadget_officejs_drive_page_browse_storage_html.xml
...module/gadget_officejs_drive_page_browse_storage_html.xml
+2
-1
No files found.
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/gadget_officejs_drive_page_browse_js.xml
View file @
7883bb10
...
...
@@ -167,15 +167,15 @@
\n
// if command given: proceed\n
if (command) {\n
try {\n
switch (command) {\n
case \'cd\':\n
case \'ls\':\n
if (args.length === 1) {\n
return gadget.redirect({\n
position: absolutePosition(gadget.props.currentPosition, args[0])\n
});\n
}\n
throw
(\'Usage of \' + command + \' requires a single argument.\');\n
throw new Error
(\'Usage of \' + command + \' requires a single argument.\');\n
\n
case \'vim\':\n
case \'vi\':\n
...
...
@@ -189,10 +189,15 @@
resource: resource\n
});\n
}\n
throw
(\'Usage of \' + command + \' requires a single argument.\');\n
throw new Error
(\'Usage of \' + command + \' requires a single argument.\');\n
default:\n
throw
(\'Unknown command: \' + command);\n
throw new Error
(\'Unknown command: \' + command);\n
}\n
} catch (e) {\n
gadget.props.element.querySelector(\'.error\').textContent = e.name +\n
": " +\n
e.message;\n
}
}\n
})\n
\n
...
...
@@ -208,7 +213,6 @@
}\n
gadget.props.currentPosition = options.position;\n
gadget.props.element.querySelector(\'input\').value = \'\';\n
gadget.props.element.querySelector(\'.position\').value = options.position;\n
\n
// clean previous ul children\n
while (ul.hasChildNodes()) {\n
...
...
bt5/erp5_officejs_drive/PathTemplateItem/web_page_module/gadget_officejs_drive_page_browse_storage_html.xml
View file @
7883bb10
...
...
@@ -134,8 +134,9 @@
<body>
\n
<h1>
Super OfficeJS Drive
</h1>
\n
<form>
\n
position:
<input
type=
"text"
name=
"position
"
>
\n
<input
type=
"text
"
>
\n
</form>
\n
<div><a
class=
"error"
></a></div>
\n
<ul>
\n
</ul>
\n
</body>
\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment