Skip to content
Snippets Groups Projects
Commit 30ba8e56 authored by jaapjansma's avatar jaapjansma
Browse files

Merge branch '1.x-dev#fix_concat_strings' into 'master'

Added .first() in field & filter selectors so that it will always bring the first selector's values

See merge request extensions/dataprocessor!9
parents e630a100 c0ef356e
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@
$(document).on('change','#type_configuration select.crm-form-select',function () {
{/literal}{if $action eq 1}{literal}
var titlepreset = $.trim($('#type_configuration select.crm-form-select option:selected').text().split("::").pop());
var titlepreset = $.trim($('#type_configuration select.crm-form-select option:selected').first().text().split("::").pop());
$('#title').val(titlepreset).trigger('blur');
{/literal}{/if}{literal};
});
......
......@@ -28,7 +28,7 @@
{if ($configuration_template)}
{include file=$configuration_template}
{/if}
</div>
</div>
<div class="crm-section">
<div class="label">{$form.title.label}</div>
<div class="content">
......@@ -63,7 +63,7 @@
$(document).on('change','#type_configuration select.crm-form-select',function () {
{/literal}{if $action eq 1}{literal}
var titlepreset = $.trim($('#type_configuration select.crm-form-select option:selected').text().split("::").pop());
var titlepreset = $.trim($('#type_configuration select.crm-form-select option:selected').first().text().split("::").pop());
$('#title').val(titlepreset).trigger('blur');
{/literal}{/if}{literal};
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment