picked icon from features config

revert-70aa11f8
ayyoob 8 years ago
parent 8a6af051dc
commit 20e7dd9e86

@ -73,7 +73,7 @@ var operationModule = function () {
var features = utility.getDeviceTypeConfig(deviceType).deviceType.features;
for (var op in operations) {
var iconIdentifier = operations[op].operation;
if (features[iconIdentifier]) {
if (features && features[iconIdentifier]) {
var icon = features[iconIdentifier].icon;
if (icon) {
operations[op]["iconFont"] = icon;

@ -59,7 +59,6 @@ function submitForm(formId) {
contentType = "application/x-www-form-urlencoded";
payload = uriencodedFormStr;
}
alert(featurePayload);
//setting responses callbacks
var defaultStatusClasses = "fw fw-stack-1x";
var content = $("#operation-response-template").find(".content");

Loading…
Cancel
Save