advanced search: bugfix

- the modal window did update the history which resulted in several border effect like having request string too long and crashing on several pages

SVN:trunk[5656]
This commit is contained in:
Bruno Da Silva
2018-04-13 08:57:36 +00:00
parent c68f56ecd4
commit bb820ab388

View File

@@ -172,11 +172,17 @@ $(function()
$('body').on('update_history.itop', function(oEvent, oData) {
if (me.element.parents('.ui-dialog').length != 0)
{
//search form in modal are forbiden to update history!
return;
}
// if (me.element.parents('.ui-dialog').length != 0)
// {
// //search form in modal are forbidden to update history!
// return;
// }
if ($('.ui-dialog:visible :itop-search_form_handler').length != 0)
{
//if a modal containing a dialog is visible then the history update event come from it, whe do not want to update the history in this case!
return;
}
var sNewUrl = GetAbsoluteUrlAppRoot()+'pages/UI.php?operation=search';
sNewUrl = sNewUrl + '&filter='+oData['filter'];