@@ -1372,12 +1372,6 @@ define(['app'], function (app) {
1372
1372
xhtm += '<a class="btnsmall" onclick="EditUtilityDevice(' + item . idx + ',\'' + escape ( item . Name ) + '\',\'' + escape ( item . Description ) + '\');" data-i18n="Edit">Edit</a> ' ;
1373
1373
}
1374
1374
}
1375
- else if ( ( item . Type == "Current" ) || ( item . Type == "Current/Energy" ) ) {
1376
- xhtm += '<a class="btnsmall" onclick="ShowCurrentLog(\'#utilitycontent\',\'ShowUtilities\',' + item . idx + ',\'' + escape ( item . Name ) + '\', ' + item . displaytype + ');" data-i18n="Log">Log</a> ' ;
1377
- if ( permissions . hasPermission ( "Admin" ) ) {
1378
- xhtm += '<a class="btnsmall" onclick="EditUtilityDevice(' + item . idx + ',\'' + escape ( item . Name ) + '\',\'' + escape ( item . Description ) + '\');" data-i18n="Edit">Edit</a> ' ;
1379
- }
1380
- }
1381
1375
else if ( ( item . Type == "Energy" ) || ( item . SubType == "kWh" ) || ( item . Type == "Current/Energy" ) ) {
1382
1376
xhtm += '<a class="btnsmall" onclick="ShowCounterLogSpline(\'#utilitycontent\',\'ShowUtilities\',' + item . idx + ',\'' + escape ( item . Name ) + '\', ' + item . SwitchTypeVal + ');" data-i18n="Log">Log</a> ' ;
1383
1377
if ( permissions . hasPermission ( "Admin" ) ) {
@@ -1388,6 +1382,12 @@ define(['app'], function (app) {
1388
1382
}
1389
1383
}
1390
1384
}
1385
+ else if ( item . Type == "Current" ) {
1386
+ xhtm += '<a class="btnsmall" onclick="ShowCurrentLog(\'#utilitycontent\',\'ShowUtilities\',' + item . idx + ',\'' + escape ( item . Name ) + '\', ' + item . displaytype + ');" data-i18n="Log">Log</a> ' ;
1387
+ if ( permissions . hasPermission ( "Admin" ) ) {
1388
+ xhtm += '<a class="btnsmall" onclick="EditUtilityDevice(' + item . idx + ',\'' + escape ( item . Name ) + '\',\'' + escape ( item . Description ) + '\');" data-i18n="Edit">Edit</a> ' ;
1389
+ }
1390
+ }
1391
1391
else if ( ( item . Type == "Thermostat" ) && ( item . SubType == "SetPoint" ) ) {
1392
1392
if ( permissions . hasPermission ( "Admin" ) ) {
1393
1393
xhtm += '<a class="btnsmall" onclick="ShowTempLog(\'#utilitycontent\',\'ShowUtilities\',' + item . idx + ',\'' + escape ( item . Name ) + '\');" data-i18n="Log">Log</a> ' ;
0 commit comments