Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
4d762e41
Commit
4d762e41
authored
Oct 23, 2017
by
Benjamin Fischer
Browse files
FileHandler2: fixed handling of target-less menus
parent
8b7d00c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/static/js/filehandler2.js
View file @
4d762e41
...
...
@@ -22,15 +22,10 @@ define([
makeMenu
:
function
(
info
)
{
var
menu
=
this
.
_filterMenu
(
this
.
handlersBase
,
info
);
// need the open with menu?
if
(
!
info
.
data
)
{
// nothing directly hit (just in a folder)
var
n
=
""
,
p
=
info
.
pathBase
.
split
(
"
/
"
);
while
((
n
=
p
.
pop
())
==
""
);
info
.
pathBase
=
p
.
join
(
"
/
"
)
||
"
/
"
;
n
=
n
||
"
/
"
;
if
(
!
info
.
data
&&
!
info
.
items
)
{
// nothing directly hit (just in a folder)
info
.
data
=
{
root
:
n
,
name
:
n
,
root
:
"
.
"
,
name
:
"
.
"
,
ext
:
""
,
type
:
"
d
"
,
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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