mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Adding proper error message when no device type is avaialble
This commit is contained in:
parent
56a81e431c
commit
056f6d2f4e
@ -41,11 +41,11 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
/* for device list sorting drop down */
|
/* for device list sorting drop down */
|
||||||
$(".ctrl-filter-type-switcher").popover({
|
$(".ctrl-filter-type-switcher").popover({
|
||||||
html : true,
|
html : true,
|
||||||
content : function () {
|
content : function () {
|
||||||
return $("#content-filter-types").html();
|
return $("#content-filter-types").html();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".ast-container").on("click", ".claim-btn", function(e){
|
$(".ast-container").on("click", ".claim-btn", function(e){
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -142,7 +142,13 @@ function loadDevices(searchType, searchParam){
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$('#device-grid').addClass('hidden');
|
$('#device-grid').addClass('hidden');
|
||||||
$('#device-listing-status-msg').text('No device is available to be displayed.');
|
$('#device-listing-status-msg').html(
|
||||||
|
'<div class="col-centered text-center"><h3 class="text-muted"><i class="fw fw-mobile fw-3x"></i>' +
|
||||||
|
'</h3><h3 class="text-muted">No device type is available to be displayed.</h3>' +
|
||||||
|
'<a href="https://docs.wso2.com/display/IoTS100/Quick+Start+Guide" target="_blank" ' +
|
||||||
|
'class="btn-operations btn-default"><span class="fw-stack">' +
|
||||||
|
'<i class="fw fw-ring fw-stack-2x"></i> <i class="fw fw-document fw-stack-1x"></i></span>' +
|
||||||
|
' Quick Startup Guide</a></div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
$(".icon .text").res_text(0.2);
|
$(".icon .text").res_text(0.2);
|
||||||
@ -197,11 +203,11 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
/* for device list sorting drop down */
|
/* for device list sorting drop down */
|
||||||
$(".ctrl-filter-type-switcher").popover({
|
$(".ctrl-filter-type-switcher").popover({
|
||||||
html : true,
|
html : true,
|
||||||
content : function () {
|
content : function () {
|
||||||
return $("#content-filter-types").html();
|
return $("#content-filter-types").html();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".ast-container").on("click", ".claim-btn", function(e){
|
$(".ast-container").on("click", ".claim-btn", function(e){
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@ -223,17 +229,17 @@ $(document).ready(function () {
|
|||||||
$("[data-toggle=popover]").popover();
|
$("[data-toggle=popover]").popover();
|
||||||
|
|
||||||
$(".ctrl-filter-type-switcher").popover({
|
$(".ctrl-filter-type-switcher").popover({
|
||||||
html : true,
|
html : true,
|
||||||
content: function() {
|
content: function() {
|
||||||
return $('#content-filter-types').html();
|
return $('#content-filter-types').html();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#nav').affix({
|
$('#nav').affix({
|
||||||
offset: {
|
offset: {
|
||||||
top: $('header').height()
|
top: $('header').height()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("click", "tr.clickable-row", function(){
|
$(document).on("click", "tr.clickable-row", function(){
|
||||||
window.document.location = $(this).data('href');
|
window.document.location = $(this).data('href');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user