Commit c2f64d47 authored by Mathieu Lutfy's avatar Mathieu Lutfy Committed by Aegir user

Update KAM to v1.2

parent 4baf94be
......@@ -14,8 +14,8 @@
<url desc="Support">https://github.com/aydun/uk.squiffle.kam</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2019-02-06</releaseDate>
<version>1.1</version>
<releaseDate>2019-02-12</releaseDate>
<version>1.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.8</ver>
......
......@@ -352,10 +352,14 @@
$('#crm-qsearch-input').attr({name: value, placeholder: '\uf002 ' + label});
}
$('.crm-quickSearchField').click(function() {
$('input', this).prop('checked', true);
CRM.cache.set('quickSearchField', $('input', this).val());
setQuickSearchValue();
$('#crm-qsearch-input').focus().autocomplete("search");
var input = $('input', this);
// Wait for event - its default was prevented by our link handler which interferes with checking the radio input
window.setTimeout(function() {
input.prop('checked', true);
CRM.cache.set('quickSearchField', input.val());
setQuickSearchValue();
$('#crm-qsearch-input').focus().autocomplete("search");
}, 1);
});
$('.crm-quickSearchField input[value="' + CRM.cache.get('quickSearchField', 'sort_name') + '"]').prop('checked', true);
setQuickSearchValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment