Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
cc2fbe03
Commit
cc2fbe03
authored
May 04, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Make JSLint happy (fix minor sintaxes)
parent
8fcaaa5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
...fib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
+4
-4
master/bt5/slapos_web_frontend_selector/PathTemplateItem/web_page_module/slapos-frontend-selector-cdn-gadget-js.js
...web_page_module/slapos-frontend-selector-cdn-gadget-js.js
+2
-2
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib_monitoring.js.js
View file @
cc2fbe03
...
...
@@ -78,15 +78,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
now
=
new
Date
(),
context
=
$
(
this
);
// 5 minute for computer. 1 day for instance.
if
(
/#access/
.
test
(
data
.
text
)
&
/computer_module/
.
test
(
data
[
'
@document
'
]
)
&
(
now
-
created_at
<
300000
))
{
if
(
/#access/
.
test
(
data
.
text
)
&
(
/computer_module/
.
test
(
data
[
'
@document
'
])
)
&
(
now
-
created_at
<
300000
))
{
$
(
this
).
attr
(
"
class
"
,
"
monitoring_ok
"
)
.
attr
(
"
title
"
,
data
.
text
+
"
(
"
+
created_at
+
"
)
"
)
.
attr
(
"
href
"
,
data
[
'
@document
'
]);
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
/software_instance_module/
.
test
(
data
[
'
@document
'
]
)
&
(
now
-
created_at
<
86400000
))
{
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
(
/software_instance_module/
.
test
(
data
[
'
@document
'
])
)
&
(
now
-
created_at
<
86400000
))
{
$
(
this
).
attr
(
"
class
"
,
"
monitoring_ok
"
)
.
attr
(
"
title
"
,
data
.
text
+
"
(
"
+
created_at
+
"
)
"
)
.
attr
(
"
href
"
,
data
[
'
@document
'
]);
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
/software_installation_module/
.
test
(
data
[
'
@document
'
]
)
&
(
now
-
created_at
<
86400000
))
{
}
else
if
(
/#access/
.
test
(
data
.
text
)
&
(
/software_installation_module/
.
test
(
data
[
'
@document
'
])
)
&
(
now
-
created_at
<
86400000
))
{
$
(
this
).
attr
(
"
class
"
,
"
monitoring_ok
"
)
.
attr
(
"
title
"
,
data
.
text
+
"
(
"
+
created_at
+
"
)
"
)
.
attr
(
"
href
"
,
data
[
'
@document
'
]);
...
...
@@ -133,7 +133,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
var
status_url
=
result_list
[
i
],
status_id
,
status_context
;
status_id
=
encodeURIComponent
(
Base61
.
encode
(
status_url
))
,
status_id
=
encodeURIComponent
(
Base61
.
encode
(
status_url
))
;
status_context
=
$
(
this
).
find
(
'
#
'
+
status_id
);
if
(
!
status_context
[
0
])
{
status_context
=
$
(
this
).
append
(
'
<li><a class="check_monitoring" id="
'
+
status_id
+
'
" data-url="
'
+
encodeURIComponent
(
status_url
)
+
'
"></a></li>
'
)
...
...
master/bt5/slapos_web_frontend_selector/PathTemplateItem/web_page_module/slapos-frontend-selector-cdn-gadget-js.js
View file @
cc2fbe03
...
...
@@ -45,7 +45,7 @@
if
(
e
.
target
.
status
>=
400
)
{
return
reject
(
e
);
}
resolve
(
e
);
re
turn
re
solve
(
e
);
});
xhr
.
addEventListener
(
"
error
"
,
reject
);
xhr
.
addEventListener
(
"
progress
"
,
notify
);
...
...
@@ -247,4 +247,4 @@
runAll
();
}(
document
,
RSVP
,
XMLHttpRequest
));
\ No newline at end of file
}(
document
,
RSVP
,
XMLHttpRequest
));
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