Copy tags were accidentally having their owning
location shortname included in the tag values,
this patch allows the owner to be displayed but
not included in the value used.
Signed-off-by: Jason Boyer <jboyer@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
<div class="form-group">
<label for="tagLabel">[% l('Tag') %]</label>
<input name="tabLabel" type="text" ng-model="selectedLabel" placeholder="[% l('Enter tag label...') %]"
- uib-typeahead="tag for tag in getTags($viewValue)" typeahead-editable="false"
+ uib-typeahead="tag.value as tag.display for tag in getTags($viewValue)" typeahead-editable="false"
class="form-control" autocomplete="off"></input>
</div>
<button type="button" class="btn btn-sm btn-default" ng-click="addTag()">[% l('Add Tag') %]</button>
<div class="form-group">
<label for="tagLabel">[% l('Tag') %]</label>
<input name="tabLabel" type="text" ng-model="selectedLabel" placeholder="[% l('Enter tag label...') %]"
- uib-typeahead="tag for tag in getTags($viewValue)"
+ uib-typeahead="tag.value as tag.display for tag in getTags($viewValue)"
class="form-control" autocomplete="off"></input>
</div>
<button type="button" class="btn btn-sm btn-default" ng-click="addTag()">[% l('Add Tag') %]</button>
{ order_by : { 'acpt' : ['label'] } }, { atomic: true }
).then(function(list) {
return list.map(function(item) {
- return item.label();
+ return { value: item.label(), display: item.label() + " (" + egCore.org.get(item.owner()).shortname() + ")" };
});
});
}
{ order_by : { 'acpt' : ['label'] } }, { atomic: true }
).then(function(list) {
return list.map(function(item) {
- return item.label() + " (" + egCore.org.get(item.owner()).shortname() + ")";
+ return { value: item.label(), display: item.label() + " (" + egCore.org.get(item.owner()).shortname() + ")" };
});
});
}