aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js')
-rw-r--r--sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js b/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js
new file mode 100644
index 00000000..519525c7
--- /dev/null
+++ b/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js
@@ -0,0 +1,15 @@
+define(['common/general/common.general.module'], function(general) {
+
+ // Filter to return only valid ports (like id != 0)
+ general.filter('noRootPorts', function () {
+ return function (input) {
+ if (!input) {
+ return;
+ }
+ return input.filter(function(port) {
+ return port.nodeconnector.id !== "0" ? port : null;
+ });
+ };
+ });
+
+});