Commit 6d91f6b0 authored by akucera's avatar akucera
Browse files

Minor fixes of the client

parent 24837a9c
......@@ -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>
......
......@@ -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) {
......
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment