PageSourceSearch

https://www.grenzgaengerroute.de/typo3conf/ext/neustatravelsearch/…/Search/Directives/CheckItem.js?1679391080

js grenzgaengerroute.de collected 2026-09-30 12:21:01 UTC 1,748 bytes, 44 lines download raw bytes

1/**
2 * Created by aschuermann on 25.07.14.
3 */
4app.directive('checkItem', ['$rootScope', function($rootScope) {
5	return {
6		restrict: 'E',
7		transclude: true,
8		scope: {
9			feature: '=',
10			broadcast: '@'
11		},
12		link: function($scope) {
13			if(typeof $scope.feature.checked === 'undefined') {
14				$scope.feature.checked = false;
15			}
16		},
17		controller: function($scope) {
18			$scope.toggleType = function() {
19				if($scope.feature.hitCount == 0 && $scope.feature.checked == false && $scope.feature.groupRelation !== 'OR') {
20					$scope.feature.checked = false;
21				} else {
22					$scope.feature.checked = $scope.feature.checked === false ? true : false;
23				}
24				var _broadCastFilter = typeof $scope.broadcast != 'undefined' ? $scope.broadcast : 'filterChanged';
25				$rootScope.$broadcast(_broadCastFilter, {
26					type: 'feature',
27					minimize: $scope.feature.checked,
28					feature: $scope.feature,
29					activated: $scope.feature.checked
30				});
31			};
32		},
33		template: '' +
34		'	<li class="[ filter-bar__item ]  [ 1/3  lap-1/2  palm-1/1 ]" ng-class="{_is_checked:feature.checked,_is_disabled:feature.hitCount === 0 && feature.checked == false && feature.groupRelation !== \'OR\'}" ng-click="toggleType()">' +
35		'		<div class="[ filter-bar__checkbox ]  [ if_button_{{feature.button}} ]">' +
36		'			<input type="checkbox" name="checkbox" ng-checked="feature.checked" ng-disabled="feature.hitCount === 0 && feature.checked == false && feature.groupRelation !== \'OR\'" />' +
37		'			<label ng-class="{\'[ btn btn--small btn--border btn--filter ]\':feature.button, act:feature.checked}" for="checkbox">' +
38		'				<i class="[ icon icon-{{feature.icon}} ]"></i>' +
39		'				<span>{{feature.title}}</span>' +
40		'			</label>' +
41		'		</div>' +
42		'	</li>'
43	};
44}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.