scope.$evalAsync('_resetSelection()');
e.preventDefault();
});
+
+ scope.$watch(attrs.crmOptions, function(value) {
+ $(input).select2('data', getFormattedOptions);
+ $(input).select2('val', '');
+ });
}
};
});
activitySet.activityTypes.push({
name: activityType
});
+ if (!_.contains($scope.activityTypeNames, activityType)) {
+ $scope.activityTypeNames.push(activityType);
+ }
};
/// Add a new top-level activity-type entry
$scope.caseType.definition.activityTypes.push({
name: activityType
});
+
+ }
+ if (!_.contains($scope.activityTypeNames, activityType)) {
+ $scope.activityTypeNames.push(activityType);
}
};
name: roleName
});
}
+ if (!_.contains($scope.relationshipTypeNames, roleName)) {
+ $scope.relationshipTypeNames.push(roleName);
+ }
};
$scope.onManagerChange = function(managerRole) {