mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
Fix for Plugins: if a page uses set_base then JS popup menu items were reloading the page. Still, set_base should not be used! - retrofit from trunk [3072 + 3079]
SVN:2.0.2[3136]
This commit is contained in:
@@ -450,7 +450,8 @@ class JSPopupMenuItem extends ApplicationPopupMenuItem
|
||||
/** @ignore */
|
||||
public function GetMenuItem()
|
||||
{
|
||||
return array ('label' => $this->GetLabel(), 'onclick' => $this->sJSCode, 'url' => '#');
|
||||
// Note: the semicolumn is a must here!
|
||||
return array ('label' => $this->GetLabel(), 'onclick' => $this->sJSCode.'; return false;', 'url' => '#');
|
||||
}
|
||||
|
||||
/** @ignore */
|
||||
|
||||
Reference in New Issue
Block a user