$('#' + data.parentId).val(data.values[0].name);
$('button[data-url]').click(function() {
var confirmation = button.attr('data-confirmation');
if (typeof confirmation === 'undefined' || (typeof confirmation !== 'undefined' && confirm(confirmation))) {
return redirect(button.attr('data-url'), 'post', '_csrf_token', true);
window.location = button.attr('data-url');
// Initialize hintBox event handlers.
// Simulate Safari behaviour when text in a text field with autofocus becomes selected after page has loaded.
$('input[type=text][autofocus=autofocus]').filter(':visible').select();