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
Boxiang Sun
slapos.toolbox
Commits
9b757dd1
Commit
9b757dd1
authored
Aug 06, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: minishell warns user when command couldn't be sent correctly
parent
c20be5fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
slapos/runner/static/js/scripts/shell.js
slapos/runner/static/js/scripts/shell.js
+4
-1
No files found.
slapos/runner/static/js/scripts/shell.js
View file @
9b757dd1
...
@@ -34,11 +34,14 @@ $(document).ready(function () {
...
@@ -34,11 +34,14 @@ $(document).ready(function () {
var
old_shell_btn_background
=
$
(
"
.shell_btn
"
).
css
(
"
background
"
);
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_btn
"
).
css
(
"
background
"
,
"
url(/static/css/images/loading-min.gif) center right no-repeat
"
)
$
.
post
(
"
/runCommand
"
,
data
,
function
(
data
)
{
$
.
post
(
"
/runCommand
"
,
data
,
function
(
data
)
{
data
=
"
>>>
"
+
command
+
"
\n\n
"
+
data
;
var
data
=
"
>>>
"
+
command
+
"
\n\n
"
+
data
;
$
(
"
#shell-result
"
).
val
(
data
);
$
(
"
#shell-result
"
).
val
(
data
);
$
(
"
#shell-input
"
).
val
(
""
);
$
(
"
#shell-input
"
).
val
(
""
);
updateHistory
();
updateHistory
();
})
})
.
fail
(
function
(
xhr
,
status
,
error
)
{
$
(
"
#error
"
).
Popup
(
"
Error while sending command. Server answered with :
\n
"
+
xhr
.
statusCode
().
status
+
"
:
"
+
error
,
{
type
:
'
error
'
,
duration
:
3000
})
})
.
always
(
function
()
{
.
always
(
function
()
{
$
(
"
.shell_btn
"
).
css
(
"
background
"
,
old_shell_btn_background
);
$
(
"
.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