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
Lu Xu
slapos.toolbox
Commits
2976d8f7
Commit
2976d8f7
authored
Nov 26, 2013
by
Alain Takoudjou
Committed by
Nicolas Wavrant
Feb 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix path not found issue 2
parent
190ec815
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
slapos/runner/static/js/scripts/viewlog.js
slapos/runner/static/js/scripts/viewlog.js
+9
-1
slapos/runner/templates/viewLog.html
slapos/runner/templates/viewLog.html
+0
-3
No files found.
slapos/runner/static/js/scripts/viewlog.js
View file @
2976d8f7
...
@@ -199,7 +199,7 @@ $(document).ready(function () {
...
@@ -199,7 +199,7 @@ $(document).ready(function () {
});
});
}
}
else
{
else
{
$
(
"
#noServices
"
).
show
()
;
logfilelist
=
""
;
}
}
});
});
}
}
...
@@ -273,9 +273,15 @@ $(document).ready(function () {
...
@@ -273,9 +273,15 @@ $(document).ready(function () {
else
{
else
{
$
(
"
#error
"
).
Popup
(
"
No log file selected!
"
,
{
type
:
'
alert
'
,
duration
:
3000
});
$
(
"
#error
"
).
Popup
(
"
No log file selected!
"
,
{
type
:
'
alert
'
,
duration
:
3000
});
}
}
return
false
;
});
});
$
(
"
#logEdit
"
).
click
(
function
()
{
$
(
"
#logEdit
"
).
click
(
function
()
{
if
(
logfilelist
===
""
)
{
$
(
"
#error
"
).
Popup
(
"
You don't have any services yet! Please run your services to choose custom log files
"
,
{
type
:
'
alert
'
,
duration
:
5000
});
return
false
;
}
if
(
$
(
this
).
text
()
===
"
Save list
"
)
{
if
(
$
(
this
).
text
()
===
"
Save list
"
)
{
$
(
this
).
text
(
"
Edit list
"
);
$
(
this
).
text
(
"
Edit list
"
);
$
(
"
#addbox
"
).
hide
();
$
(
"
#addbox
"
).
hide
();
...
@@ -323,6 +329,7 @@ $(document).ready(function () {
...
@@ -323,6 +329,7 @@ $(document).ready(function () {
});
});
});
});
}
}
return
false
;
});
});
$
(
"
#slapswitch
"
).
click
(
function
()
{
$
(
"
#slapswitch
"
).
click
(
function
()
{
...
@@ -332,6 +339,7 @@ $(document).ready(function () {
...
@@ -332,6 +339,7 @@ $(document).ready(function () {
else
{
else
{
$
(
"
#softrun
"
).
click
();
$
(
"
#softrun
"
).
click
();
}
}
return
false
;
});
});
});
});
slapos/runner/templates/viewLog.html
View file @
2976d8f7
...
@@ -84,9 +84,6 @@
...
@@ -84,9 +84,6 @@
<div
id=
'inline_content'
style=
'padding:10px; background:#fff;'
>
<div
id=
'inline_content'
style=
'padding:10px; background:#fff;'
>
<div
style=
'border: solid 1px #678dad; height: 300px; overflow: auto;'
>
<div
style=
'border: solid 1px #678dad; height: 300px; overflow: auto;'
>
<div
id=
"fileTree"
></div>
<div
id=
"fileTree"
></div>
<div
id=
"noServices"
style=
'display:none'
>
<h2>
You don't have any services yet! Please run your services to choose custom log files
</h2>
</div>
</div>
</div>
<input
type=
submit
value=
"Add file"
id=
"addfile"
class=
"button"
>
<input
type=
submit
value=
"Add file"
id=
"addfile"
class=
"button"
>
</div>
</div>
...
...
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