X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Fmonitoring_params%2FmonitoringParamComponents.js;h=f840b441879e19060dfa841695409045e07a8f2f;hb=HEAD;hp=2990d18a4e78f22a57d7346acd09bd560bd1611c;hpb=f680064f5e6daafad59da1c665e96cd66ebbf17d;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js b/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js index 2990d18a4..f840b4418 100644 --- a/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js +++ b/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js @@ -1,6 +1,6 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -49,15 +49,15 @@ function Component(node, prop, count, length) { //' + String((100/length) - 5) + '%' switch(node["widget-type"]) { case 'GAUGE': - // Disabled for OSM + // Disabked fir OSM // return ( - //
- //
{node.name}
- // - //
); + //
+ //
{node.name}
+ // + //
); // break; case 'TEXTBOX': case 'COUNTER': @@ -117,7 +117,9 @@ export default function parseCardObj(obj_list, type) { } ret.push(html) } - return ret.sort(function(a, b){ - return (a.title > b.title) ? -1 : 1; - }); + return ret.sort(function(a,b) { + var titleA = a.title && a.title.toUpperCase(); + var titleB = b.title && b.title.toUpperCase(); + return (titleA < titleB) ? -1 : (titleA > titleB) ? 1 : 0; + }); }