ng-model="working.statcats[sc.id()]"
ng-options="e.id() as e.value() for e in sc.entries()"
ng-required="sc.required() == 't'">
- <option value="">[% l('<NONE>') %]</option>
+ <option value="">
+ {{ !working.statcats_multi[sc.id()] ? '[% l('<NONE>') %]' : '[% l('<MULTIPLE>') %]' }}
+ </option>
</select>
</div>
</div>
$scope.working = {
statcats: {},
+ statcats_multi: {},
statcat_filter: undefined
};
} else {
none = true;
}
+ } else {
+ none = true;
}
} else {
none = true;
if (!none && Object.keys(value_hash).length == 1) {
$scope.working.statcats[sc.id()] = value_hash[Object.keys(value_hash)[0]];
+ $scope.working.statcats_multi[sc.id()] = false;
+ } else if (item_list.length > 1 && Object.keys(value_hash).length > 0) {
+ $scope.working.statcats[sc.id()] = undefined;
+ $scope.working.statcats_multi[sc.id()] = true;
} else {
$scope.working.statcats[sc.id()] = undefined;
+ $scope.working.statcats_multi[sc.id()] = false;
}
+
});
} else {
angular.forEach($scope.statcats, function (s) {
if (!$scope.working)
- $scope.working = { statcats: {}, statcat_filter: undefined};
+ $scope.working = { statcats_multi: {}, statcats: {}, statcat_filter: undefined};
+ if (!$scope.working.statcats_multi)
+ $scope.working.statcats_multi = {};
if (!$scope.working.statcats)
$scope.working.statcats = {};