- 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:
Denis Flaven
2010-06-09 20:55:50 +00:00
parent b2e959bc1b
commit a4e8c8d07d

View File

@@ -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;
}
}