Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Nicolas Wavrant
slapos.toolbox
Commits
c20be5fb
Commit
c20be5fb
authored
Aug 06, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: minishell shows waiting picture
So that the user knows their command has been sent to the server
parent
9a7a2f32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
slapos/runner/static/js/scripts/shell.js
slapos/runner/static/js/scripts/shell.js
+5
-0
No files found.
slapos/runner/static/js/scripts/shell.js
View file @
c20be5fb
...
...
@@ -31,11 +31,16 @@ $(document).ready(function () {
event
.
preventDefault
();
var
command
=
$
(
"
#shell-input
"
).
val
();
var
data
=
{
command
:
command
};
var
old_shell_btn_background
=
$
(
"
.shell_btn
"
).
css
(
"
background
"
);
$
(
"
.shell_btn
"
).
css
(
"
background
"
,
"
url(/static/css/images/loading-min.gif) center right no-repeat
"
)
$
.
post
(
"
/runCommand
"
,
data
,
function
(
data
)
{
data
=
"
>>>
"
+
command
+
"
\n\n
"
+
data
;
$
(
"
#shell-result
"
).
val
(
data
);
$
(
"
#shell-input
"
).
val
(
""
);
updateHistory
();
})
.
always
(
function
()
{
$
(
"
.shell_btn
"
).
css
(
"
background
"
,
old_shell_btn_background
);
});
}
});
...
...
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