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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.toolbox
Commits
c9a34429
Commit
c9a34429
authored
Aug 11, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: show waiting symbol in shell (it is more visible)
parent
3e74a2e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/runner/static/js/scripts/shell.js
slapos/runner/static/js/scripts/shell.js
+3
-3
No files found.
slapos/runner/static/js/scripts/shell.js
View file @
c9a34429
...
...
@@ -36,8 +36,8 @@ $(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
"
)
$
(
"
#shell-result
"
).
append
(
"
<p id=
\"
waiting_for_command
\"
><img src=
\"
/static/css/images/loading-min.gif
\"
/></p>
"
)
$
(
"
#shell-result
"
).
scrollTop
(
$
(
"
#shell-result
"
)[
0
].
scrollHeight
);
$
.
ajax
({
type
:
"
POST
"
,
url
:
$SCRIPT_ROOT
+
"
/runCommand
"
,
...
...
@@ -55,7 +55,7 @@ $(document).ready(function () {
$
(
"
#error
"
).
Popup
(
"
Error while sending command. Server answered with :
\n
"
+
xhr
.
statusCode
().
status
+
"
:
"
+
error
,
{
type
:
'
error
'
,
duration
:
3000
})
})
.
always
(
function
()
{
$
(
"
.shell_btn
"
).
css
(
"
background
"
,
old_shell_btn_background
);
$
(
"
#waiting_for_command
"
).
remove
(
);
});
}
});
...
...
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