summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-20 21:45:46 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-20 21:45:46 +0200
commita4fe8a06a814a216a20e8c861ada446f45a7ffbc (patch)
treeebf4227b15896b8c370a88adeb0e8f946f7a2d3f
parent72bd8bf6779b144df64e6d56da94c28e9a8b81fe (diff)
Revert "Add support for X-ABLABEL refs #204"
-rw-r--r--js/components/detailsItem/detailsItem_controller.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/js/components/detailsItem/detailsItem_controller.js b/js/components/detailsItem/detailsItem_controller.js
index 1a5d606f..fdf970bb 100644
--- a/js/components/detailsItem/detailsItem_controller.js
+++ b/js/components/detailsItem/detailsItem_controller.js
@@ -38,18 +38,6 @@ angular.module('contactsApp')
ctrl.availableOptions = ctrl.availableOptions.concat([{id: ctrl.type, name: displayName}]);
}
}
- if (!_.isUndefined(ctrl.data) && !_.isUndefined(ctrl.data.namespace)) {
- if (!_.isUndefined(ctrl.model.contact.props['X-ABLABEL'])) {
- var val = _.find(this.model.contact.props['X-ABLABEL'], function(x) { return x.namespace === ctrl.data.namespace; });
- ctrl.type = val.value;
- if (!_.isUndefined(val)) {
- // in case the type is not yet in the default list of available options we add it
- if (!ctrl.availableOptions.some(function(e) { return e.id === val.value; } )) {
- ctrl.availableOptions = ctrl.availableOptions.concat([{id: val.value, name: val.value}]);
- }
- }
- }
- }
ctrl.availableGroups = [];
ContactService.getGroups().then(function(groups) {