Skip to content

Commit

Permalink
Update device_dialog.js
Browse files Browse the repository at this point in the history
Convert tabs to spaces
  • Loading branch information
chaveiro committed Sep 16, 2021
1 parent bc631aa commit 4bd32c6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Views/device_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var device_dialog =

body.append(
"<div id='template-"+categoryid+"-"+groupid+"-"+id.replace('/', '-')+"'" +
"data-type='"+id+"' class='group-device'>" +
"data-type='"+id+"' class='group-device'>" +
"<span>"+name+"</span>" +
"</div>"
);
Expand Down Expand Up @@ -277,7 +277,7 @@ var device_dialog =
}
}
update();
$('#device-config-modal').modal('hide');
$('#device-config-modal').modal('hide');
if (init) device_dialog.loadInit();
}
else {
Expand Down Expand Up @@ -429,44 +429,44 @@ var device_dialog =
var label;
switch(process['arguments']['type']) {
case 0: // VALUE
label = "important";
label = "important";
title = "Value - ";
break;

case 1: //INPUTID
label = "warning";
label = "warning";
title = "Input - ";
break;

case 2: //FEEDID
label = "info";
label = "info";
title = "Feed - ";
break;

case 3: // NONE
label = "important";
label = "important";
title = "";
break;

case 4: // TEXT
label = "important";
label = "important";
title = "Text - ";
break;

case 5: // SCHEDULEID
label = "warning";
label = "warning";
title = "Schedule - "
break;

default:
label = "important";
label = "important";
title = "ERROR - ";
break;
}
title += process["name"];
title += process["name"];

if (process['arguments']['value'] != undefined) {
title += ": " + process['arguments']['value'];
title += ": " + process['arguments']['value'];
}

out += "<span class='label label-"+label+"' title='"+title+"' style='cursor:default'><small>"+process["short"]+"</small></span> ";
Expand Down

0 comments on commit 4bd32c6

Please sign in to comment.