choseSupplier: function () {
var $partNumbersDiv = $('#js__products__supplier-part-numbers'),
$partNumberTemplate = $('#js__products__supplier-part-number-template');
$('.js__products__suppliers').on('change', function (evt, params) {
var id = 'supplier-'+(params.selected ? params.selected : params.deselected);
if (params.selected) {
var supplierName = null;
var $newElement = $partNumberTemplate.clone();
$($newElement).attr('id', 'nameID');
var html = $newElement.html();
//var values = $(this).val();
html = html.replace(/display: none;/g, '');
html = html.replace(/forReplace/g, id);
html = html.replace(/Supplier Part Number.../g, supplierName + ' Part Number...');
$partNumbersDiv.append(html);
}
else {
$("#"+id).remove();
}
});
}