mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Advanced search improvements (restore 2018-04-10 revisions : r5635..r5641)
* Add 'search_manual_submit' config parameter to manage auto-submit * bugfixes ** date i18n is now handled (using two new options `datepicker.dateFormat` and `datepicker.timeFormat` computed from `AttributeDateTime::GetFormat()->ToDatePicker()` ** handling of `empty` `not empty` operator titles *** it led to tohers bugfixes and a redesign of the `_computeTitle` (from overwriting to extension using ie `_computeBetweenDaysOperatorTitle` *** some bug still remain, because autocomplete needs to been finished before checking on them * Promote 'friendlyname' in the 'most popular' list * bugfixes ** filters (criterions, enum and FK without autocomplete) now ignore accent on matching with user input ** this is done by using a pre-existing tool used only by the portal, so it was moved to the core (latinize.min.js) * Integration with manual submit parameter on client side. * bugfixes : history/breadcrumb had several c[menu] appended (one for each refresh) * Fix various sanity bugs SVN:trunk[5632]
This commit is contained in:
@@ -209,7 +209,7 @@ $(function()
|
||||
for (var j = 0; j < prefix.length; j++) {
|
||||
var pos = pars[i].lastIndexOf(prefix[j], 0);
|
||||
if (pos !== -1) {
|
||||
return pars[i].substring(pos);
|
||||
return pars[i].substring(pos + prefix[j].length);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -524,12 +524,12 @@ $(function()
|
||||
else
|
||||
{
|
||||
oListsElem.find('.sfl_items > li:not(.sfl_i_placeholder)').each(function(){
|
||||
var oRegExp = new RegExp(sFilter, 'ig');
|
||||
var oRegExp = new RegExp(sFilter.latinize(), 'ig');
|
||||
var sValue = $(this).find('input').val();
|
||||
var sLabel = $(this).text();
|
||||
|
||||
// We don't check the sValue as it contains the class alias.
|
||||
if(sLabel.match(oRegExp) !== null)
|
||||
if(sLabel.latinise().match(oRegExp) !== null)
|
||||
{
|
||||
$(this).show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user