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
Tristan Cavelier
slapos.toolbox
Commits
6b2655a2
Commit
6b2655a2
authored
Jul 27, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runner: jslint compliance
parent
a3c09a4b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
25 deletions
+22
-25
slapos/runner/static/js/scripts/cookies.js
slapos/runner/static/js/scripts/cookies.js
+2
-2
slapos/runner/static/js/scripts/process.js
slapos/runner/static/js/scripts/process.js
+15
-17
slapos/runner/static/js/scripts/softwareFolder.js
slapos/runner/static/js/scripts/softwareFolder.js
+4
-5
slapos/runner/static/js/scripts/workspace.js
slapos/runner/static/js/scripts/workspace.js
+1
-1
No files found.
slapos/runner/static/js/scripts/cookies.js
View file @
6b2655a2
...
...
@@ -37,7 +37,7 @@ function deleteCookie(name, path, domain) {
function
setCookie
(
name
,
value
,
expires
,
path
,
domain
,
secure
)
{
"
use strict
"
;
if
(
getCookie
(
name
)
!==
null
){
if
(
getCookie
(
name
)
!==
null
)
{
deleteCookie
(
name
);
}
if
(
!
expires
)
{
...
...
slapos/runner/static/js/scripts/process.js
View file @
6b2655a2
...
...
@@ -44,7 +44,7 @@ function clearAll(setStop) {
running
=
setStop
;
}
function
removeFirstLog
(){
function
removeFirstLog
()
{
"
use strict
"
;
currentLogSize
-=
parseInt
(
$
(
"
#salpgridLog p:first-child
"
).
attr
(
'
rel
'
),
10
);
$
(
"
#salpgridLog p:first-child
"
).
remove
();
...
...
@@ -52,16 +52,16 @@ function removeFirstLog(){
function
getRunningState
()
{
"
use strict
"
;
var
size
=
0
;
var
log_info
=
""
;
var
param
=
{
var
size
=
0
,
log_info
=
""
,
param
=
{
position
:
logReadingPosition
,
log
:
(
processState
!==
"
Checking
"
&&
openedlogpage
===
processType
.
toLowerCase
())
?
openedlogpage
:
""
},
jqxhr
=
$
.
post
(
url
,
param
,
function
(
data
)
{
setRunningState
(
data
);
size
=
data
.
content
.
position
-
logReadingPosition
;
if
(
logReadingPosition
!==
0
&&
data
.
content
.
truncated
){
if
(
logReadingPosition
!==
0
&&
data
.
content
.
truncated
)
{
log_info
=
"
<p class='info' rel='0'>SLAPRUNNER INFO: SLAPGRID-LOG HAS BEEN TRUNCATED HERE. To see full log reload your log page</p>
"
;
}
logReadingPosition
=
data
.
content
.
position
;
...
...
@@ -78,18 +78,16 @@ function getRunningState() {
}
processState
=
running
?
"
Running
"
:
"
Stopped
"
;
currentLogSize
+=
parseInt
(
size
,
10
);
if
(
currentLogSize
>
maxLogSize
){
if
(
currentLogSize
>
maxLogSize
)
{
//Remove the first element into log div
removeFirstLog
();
if
(
currentLogSize
>
maxLogSize
){
if
(
currentLogSize
>
maxLogSize
)
{
removeFirstLog
();
//in cas of previous <p/> size is 0
}
}
})
.
error
(
function
()
{
}).
error
(
function
()
{
clearAll
(
false
);
})
.
complete
(
function
()
{
}).
complete
(
function
()
{
if
(
running
)
{
setTimeout
(
function
()
{
getRunningState
();
...
...
slapos/runner/static/js/scripts/softwareFolder.js
View file @
6b2655a2
...
...
@@ -19,11 +19,10 @@ $(document).ready(function () {
send
=
false
,
edit
=
false
,
selection
=
""
,
edit_status
=
""
;
var
base_path
=
function
()
{
edit_status
=
""
,
base_path
=
function
()
{
return
softwareDisplay
?
projectDir
:
currentProject
;
}
};
function
setEditMode
(
file
)
{
var
i
,
...
...
slapos/runner/static/js/scripts/workspace.js
View file @
6b2655a2
...
...
@@ -6,5 +6,5 @@
$
(
document
).
ready
(
function
()
{
"
use strict
"
;
$
(
'
#fileNavigator
'
).
gsFileManager
({
script
:
$SCRIPT_ROOT
+
"
/fileBrowser
"
,
root
:
'
workspace/
'
});
$
(
'
#fileNavigator
'
).
gsFileManager
({
script
:
$SCRIPT_ROOT
+
"
/fileBrowser
"
,
root
:
'
workspace/
'
});
});
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