Selaa lähdekoodia

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!

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3072 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 vuotta sitten
vanhempi
commit
c69301f053
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      application/applicationextension.inc.php

+ 1 - 1
application/applicationextension.inc.php

@@ -450,7 +450,7 @@ class JSPopupMenuItem extends ApplicationPopupMenuItem
 	/** @ignore */
 	public function GetMenuItem()
 	{
-		return array ('label' => $this->GetLabel(), 'onclick' => $this->sJSCode, 'url' => '#');
+		return array ('label' => $this->GetLabel(), 'onclick' => $this->sJSCode.' return false;', 'url' => '#');
 	}
 	
 	/** @ignore */