Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Wolfgang Knopki
Spacedeck-open-SAML
Commits
0a439995
Commit
0a439995
authored
May 11, 2020
by
mntmn
Committed by
mntmn
May 11, 2020
Browse files
when space is embedded (?embedded=1), toggle fullscreen via present button
parent
f6cfef89
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/javascripts/spacedeck_spaces.js
View file @
0a439995
...
...
@@ -100,13 +100,13 @@ var SpacedeckSpaces = {
},
load_space
:
function
(
space_id
,
on_success
,
on_error
)
{
console
.
log
(
"
load space:
"
,
space_id
);
this
.
folder_spaces_filter
=
""
;
this
.
folder_spaces_search
=
""
;
space_auth
=
get_query_param
(
"
spaceAuth
"
);
this
.
embedded
=
!!
(
get_query_param
(
"
embedded
"
));
var
userReady
=
function
()
{
this
.
close_dropdown
();
...
...
@@ -649,6 +649,13 @@ var SpacedeckSpaces = {
this
.
present_mode
=
!
this
.
present_mode
;
if
(
this
.
present_mode
)
{
//this.go_to_first_zone();
if
(
this
.
embedded
)
{
document
.
documentElement
.
requestFullscreen
();
}
}
else
{
if
(
this
.
embedded
)
{
document
.
exitFullscreen
();
}
}
},
...
...
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