advanced search: bugfix

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

SVN:trunk[5653]
This commit is contained in:
Bruno Da Silva
2018-04-13 08:11:03 +00:00
parent 011ed65ea1
commit 40258fb02a

View File

@@ -172,19 +172,12 @@ $(function()
$('body').on('update_history.itop', function(oEvent, oData) {
if (! me.element.is(':visible'))
if (me.element.parents('.ui-dialog').length != 0)
{
//search form in modal are forbiden to update history!
return;
}
if ($(':itop-search_form_handler:visible').length != 1)
{
me._trace('History not updated because several search widget are visible');
return;
}
me._trace('history update', oData);
var sNewUrl = GetAbsoluteUrlAppRoot()+'pages/UI.php?operation=search';
sNewUrl = sNewUrl + '&filter='+oData['filter'];
sNewUrl = sNewUrl + '&c[menu]='+me._extractURLParameter(window.location.href, "c[menu]");