Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
5afc84e9
Commit
5afc84e9
authored
Dec 10, 2014
by
Roger Pueyo Centelles
Browse files
Merge branch 'testing' into 3.1-rc1
parents
3ee0b751
4c2f7a5f
Changes
1
Show whitespace changes
Inline
Side-by-side
packages/qmp-system/files/usr/lib/lua/luci/view/qmp/tools.htm
View file @
5afc84e9
...
@@ -6,7 +6,7 @@ function do_test(ip,index,key,tool) {
...
@@ -6,7 +6,7 @@ function do_test(ip,index,key,tool) {
var
output
=
document
.
getElementById
(
'
output_
'
+
index
);
var
output
=
document
.
getElementById
(
'
output_
'
+
index
);
if
(
output
)
{
if
(
output
)
{
output
.
innerHTML
=
'
<%:Collecting data...%>
<
img src="/luci-static/resources/icons/loading.gif" height="20px" alt="Loading" style="vertical-align:middle"/
>
'
;
output
.
innerHTML
=
'
<%:Collecting data...
%>
<
img src="/luci-static/resources/icons/loading.gif" height="20px" alt="Loading" style="vertical-align:middle"/
>
'
;
output
.
style
.
display
=
'
inline
'
;
output
.
style
.
display
=
'
inline
'
;
XHR
.
get
(
"
/cgi-bin/tools
"
,[
key
,
tool
,
ip
]
,
XHR
.
get
(
"
/cgi-bin/tools
"
,[
key
,
tool
,
ip
]
,
function
(
x
)
{
function
(
x
)
{
...
@@ -19,10 +19,11 @@ function parse_result(txt) {
...
@@ -19,10 +19,11 @@ function parse_result(txt) {
var
t
=
new
String
(
txt
);
var
t
=
new
String
(
txt
);
if
(
t
.
indexOf
(
"
Cannot
"
)
>=
0
)
if
(
t
.
indexOf
(
"
Cannot
"
)
>=
0
)
return
(
"
<font color='#f00'><%:Cannot connecto to netserver%></font>
"
);
//return("<font color='#f00'>
<%
:
Cannot
connecto
to
netserver
%>&
lt
;
/font>"
)
;
return
(
"
<font color='#a00'><%:Cannot connect to netserver%></font>
"
);
else
else
return
(
"
<font color='#0a0'>
"
+
txt
+
"
</font>
"
);
//
return("<font color='#0a0'>"+txt+"</font>");
//
return("
<
font
color
=
'
#0
a
0
'
>
"
+txt+
"
<
/font>"
)
;
return
(
"
<font color='#0
5
0'>
"
+
txt
+
"
</font>
"
);
}
}
</script>
</script>
...
...
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