Fixing https://github.com/wso2/product-iots/issues/1096: Hiding table when no alerts avaialble

revert-70aa11f8
Rasika Perera 8 years ago
parent 7bc3ab7bec
commit f8fa314359

@ -34,6 +34,7 @@ function initializeExit() {
} }
} else{ } else{
$(".fence-not-exist").show(); $(".fence-not-exist").show();
$("#exit-alert").hide();
} }
$('.viewGeoFenceRow td:not(:last-child)').click(function () { $('.viewGeoFenceRow td:not(:last-child)').click(function () {
viewFence(this.parentElement,'Exit'); viewFence(this.parentElement,'Exit');

@ -38,6 +38,7 @@ function initStationaryAlert() {
} }
} else{ } else{
$(".fence-not-exist").show(); $(".fence-not-exist").show();
$("#stationary-alert-table").hide();
} }
$('.viewGeoFenceRow td:not(:last-child)').click(function () { $('.viewGeoFenceRow td:not(:last-child)').click(function () {
viewFence(this.parentElement,'Stationery'); viewFence(this.parentElement,'Stationery');

@ -34,6 +34,7 @@ function initializeWithin() {
} }
} else{ } else{
$(".fence-not-exist").show(); $(".fence-not-exist").show();
$("#within-alert").hide();
} }
$('.viewGeoFenceRow td:not(:last-child)').click(function () { $('.viewGeoFenceRow td:not(:last-child)').click(function () {
viewFence(this.parentElement,'WithIn'); viewFence(this.parentElement,'WithIn');

Loading…
Cancel
Save