[TASK] Use ajax.php for clickmenu
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Template / DocumentTemplate.php
index 40b70e3..2dcc4dd 100644 (file)
@@ -1445,9 +1445,7 @@ function jumpToUrl(URL) {
        public function getContextMenuCode() {
                $this->pageRenderer->loadPrototype();
                $this->loadJavascriptLib('sysext/backend/Resources/Public/JavaScript/clickmenu.js');
-               $this->JScodeArray['clickmenu'] = '
-                       Clickmenu.clickURL = "' . $this->backPath . 'alt_clickmenu.php";
-                       Clickmenu.ajax     = true;';
+               $this->pageRenderer->addInlineSetting('ClickMenu', 'ajaxURL', BackendUtility::getAjaxUrl('ContextMenu::load', array(), $this->backPath));
        }
 
        /**