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; var features = utility.getDeviceTypeConfig(deviceType).deviceType.features;
for (var op in operations) { for (var op in operations) {
var iconIdentifier = operations[op].operation; var iconIdentifier = operations[op].operation;
if (features[iconIdentifier]) { if (features && features[iconIdentifier]) {
var icon = features[iconIdentifier].icon; var icon = features[iconIdentifier].icon;
if (icon) { if (icon) {
operations[op]["iconFont"] = icon; operations[op]["iconFont"] = icon;

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

Loading…
Cancel
Save