mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
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:
@@ -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]");
|
||||
|
||||
Reference in New Issue
Block a user