mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user