mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 09:04:19 +01:00
- Fixed behaviour of the popup menu (Trac #316): regression on popup menus inside content loaded via Ajax...
SVN:trunk[454]
This commit is contained in:
@@ -891,7 +891,13 @@ class MenuBlock extends DisplayBlock
|
||||
$sHtml .= "<li><a href=\"{$aAction['url']}\"$sClass>{$aAction['label']}</a></li>\n";
|
||||
}
|
||||
$sHtml .= "</ul>\n</li>\n</ul></div>\n";
|
||||
$oPage->add_ready_script("$(\"div.itop_popup>ul\").popupmenu();\n");
|
||||
static $bPopupScript = false;
|
||||
if (!$bPopupScript)
|
||||
{
|
||||
// Output this once per page...
|
||||
$oPage->add_ready_script("$(\"div.itop_popup>ul\").popupmenu();\n");
|
||||
$bPopupScript = true;
|
||||
}
|
||||
return $sHtml;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user