Merge pull request #823 from sameerawickramasekara/master

Fixes for  wso2/product-iots#1403
revert-dabc3590
Ruwan 7 years ago committed by GitHub
commit ad165cb032

@ -742,9 +742,12 @@ var androidOperationModule = function () {
// only for app whitelisting and black listing // only for app whitelisting and black listing
if (operationCode == "APP-RESTRICTION" && key == "restrictedApplications") { if (operationCode == "APP-RESTRICTION" && key == "restrictedApplications") {
//remove elements before adding
$('[data-add-form-container="#restricted-applications-grid"]').empty();
var i; var i;
for (i = 0; i < uiPayload.restrictedApplications.length; ++i) { for (i = 0; i < uiPayload.restrictedApplications.length; ++i) {
$("#restrictedapplication-list").append('<tr>' + $('[data-add-form-container="#restricted-applications-grid"]').append('<tr>' +
'<th>'+ (i+1) +'</th> <th>' + uiPayload.restrictedApplications[i].appName + '<th>'+ (i+1) +'</th> <th>' + uiPayload.restrictedApplications[i].appName +
'</th> <th>' + uiPayload.restrictedApplications[i].packageName + '</th></tr>'); '</th> <th>' + uiPayload.restrictedApplications[i].packageName + '</th></tr>');
} }

Loading…
Cancel
Save