Bug Fix #56: Noticeboard device profile filtering

This commit is contained in:
Gary Sharp
2014-07-10 17:49:36 +10:00
parent f4394fe2a0
commit 2274e2201d
4 changed files with 137 additions and 135 deletions
@@ -271,7 +271,7 @@
}
break;
case 'deviceprofileinclude':
var deviceProfiles = value.split(",");
var deviceProfiles = value.split(",").map(function (v) { return parseInt(v); });
if (deviceProfiles.length > 0) {
filters.push(function (heldDeviceItem) {
// true if DeviceProfileId is included
@@ -280,7 +280,7 @@
}
break;
case 'deviceprofileexclude':
var deviceProfiles = value.split(",");
var deviceProfiles = value.split(",").map(function (v) { return parseInt(v); });
if (deviceProfiles.length > 0) {
filters.push(function (heldDeviceItem) {
// true if DeviceProfileId is excluded