Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
ea5e146e
Commit
ea5e146e
authored
Feb 02, 2016
by
carlosperate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop the settings modal from being open multiple consecutive times.
parent
26b84b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
ardublockly/ardublockly_design.js
ardublockly/ardublockly_design.js
+13
-6
No files found.
ardublockly/ardublockly_design.js
View file @
ea5e146e
...
...
@@ -307,14 +307,21 @@ Ardublockly.openNotConnectedModal = function() {
});
};
/** Tracks if the settings modal is currently opened. */
Ardublockly
.
settingsOpen
=
false
;
/** Opens the modal that displays the Settings. */
Ardublockly
.
openSettingsModal
=
function
()
{
$
(
'
#settings_dialog
'
).
openModal
({
dismissible
:
true
,
opacity
:
.
5
,
in_duration
:
200
,
out_duration
:
250
});
if
(
!
Ardublockly
.
settingsOpen
)
{
Ardublockly
.
settingsOpen
=
true
;
$
(
'
#settings_dialog
'
).
openModal
({
dismissible
:
true
,
opacity
:
.
5
,
in_duration
:
200
,
out_duration
:
250
,
complete
:
function
()
{
Ardublockly
.
settingsOpen
=
false
;
}
});
}
};
/**
...
...
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