Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adam Kučera
semanticBMS
Commits
6d91f6b0
Commit
6d91f6b0
authored
Aug 30, 2016
by
akucera
Browse files
Minor fixes of the client
parent
24837a9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
SemanticBMSClient/inclInsertSingle.html
View file @
6d91f6b0
...
...
@@ -13,7 +13,7 @@
<div
class=
"panel-body"
>
<div
class=
"form-group form-horizontal text-center"
>
<h3><span
id=
"status"
class=
"label label-lg label-success"
>
Ready
</span>
<button
type=
"button"
id=
"sendSingle"
class=
"sendButton btn btn-primary"
>
Send
query
</button></h3>
<button
type=
"button"
id=
"sendSingle"
class=
"sendButton btn btn-primary"
>
Send
data
</button></h3>
</div>
<div
class=
"panel-body"
>
<pre
id=
"console"
class=
"bg-info"
><small
id=
"logSingle"
>
Ready
</small></pre>
...
...
SemanticBMSClient/index.html
View file @
6d91f6b0
...
...
@@ -41,11 +41,16 @@
<script>
var
p
=
new
SBMSPage
({
noAuth
:
true
,
noAuth
:
true
,
init
:
function
()
{
p
.
loadList
(
"
fields/data.dataPoint
"
,
function
(
headers
,
params
)
{
var
name
=
p
.
getQueryVariable
(
"
name
"
);
if
(
name
)
{
$
(
"
#objName
"
).
html
(
decodeURIComponent
(
name
));
}
p
.
loadList
(
"
fields/data.dataPoint
"
,
function
(
headers
,
params
)
{
dpId
=
p
.
getQueryVariable
(
"
bmsId
"
);
if
(
!
dpId
)
{
...
...
@@ -53,11 +58,6 @@
return
;
}
var
name
=
p
.
getQueryVariable
(
"
name
"
);
if
(
name
)
{
$
(
"
#objName
"
).
html
(
decodeURIComponent
(
name
));
}
p
.
sendDpInfo
(
dpId
,
headers
,
function
(
dp
)
{
if
(
dp
==
null
)
{
...
...
SemanticBMSClient/js/scripts.js
View file @
6d91f6b0
...
...
@@ -11,14 +11,14 @@ function SBMSPage(custom) {
}
var
initFunc
=
this
.
init
;
var
showLogin
=
this
.
noAuth
;
$
(
document
).
ready
([
this
.
showLoading
,
function
()
{
if
(
$
(
"
#menu
"
).
length
)
{
$
(
"
#menu
"
).
addClass
(
"
navbar navbar-inverse
"
);
$
(
"
#menu
"
).
load
(
"
inclMenu.html
"
,
function
()
{
var
page
=
location
.
pathname
.
substring
(
location
.
pathname
.
lastIndexOf
(
"
/
"
)
+
1
).
replace
(
"
.html
"
,
""
);
$
(
'
#menu li[data-page="
'
+
page
+
'
"]
'
).
addClass
(
"
active
"
);
if
(
SBMSPage
[
"
noAuth
"
]
)
{
if
(
showLogin
)
{
$
(
"
#login
"
).
hide
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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