mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Suppressing checked warnings
This commit is contained in:
parent
33c490e229
commit
21eacedf8b
@ -17,11 +17,13 @@
|
||||
*/
|
||||
|
||||
var updateStats = function (serviceURL, id) {
|
||||
//noinspection JSUnresolvedVariable invokerUtil
|
||||
invokerUtil.get(
|
||||
serviceURL,
|
||||
function (data, textStatus, jqXHR) {
|
||||
if (jqXHR.status == 200 && data) {
|
||||
var responsePayload = JSON.parse(data);
|
||||
//noinspection JSUnresolvedVariable count
|
||||
var itemCount = responsePayload.count;
|
||||
if (itemCount == 0) {
|
||||
$(id).html(0);
|
||||
@ -42,6 +44,7 @@ var updateStats = function (serviceURL, id) {
|
||||
);
|
||||
};
|
||||
|
||||
//noinspection JSUnresolvedFunction ready
|
||||
$(document).ready(function () {
|
||||
if ($("#device-count").data("device-count")) {
|
||||
updateStats("/api/device-mgt/v1.0/devices?offset=0&limit=1", "#device-count");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user