Index: mod1/dragdrop-min.js =================================================================== --- mod1/dragdrop-min.js (revision 27102) +++ mod1/dragdrop-min.js (working copy) @@ -1 +1 @@ -var sortable_currentItem;function sortable_unhideRecord(it,command){jumpToUrl(command)}function sortable_hideRecord(it,command){if(!sortable_removeHidden){return jumpToUrl(command)}while(it.className!="sortableItem"){it=it.parentNode}new Ajax.Request(command);new Effect.Fade(it,{duration:0.5,afterFinish:sortable_hideRecordCallBack})}function sortable_hideRecordCallBack(obj){var el=obj.element;while(el.lastChild){el.removeChild(el.lastChild)}}function sortable_unlinkRecordCallBack(obj){var el=obj.element;var pn=el.parentNode;pn.removeChild(el);sortable_update(pn)}function sortable_unlinkRecord(pointer,id){new Ajax.Request("index.php?"+sortable_linkParameters+"&ajaxUnlinkRecord="+escape(pointer));new Effect.Fade(id,{duration:0.5,afterFinish:sortable_unlinkRecordCallBack})}function sortable_updateItemButtons(el,position,pID){var p=new Array();var p1=new Array();var href="";var i=0;var newPos=escape(pID+position);var childs=el.childElements();var buttons=childs[0].childElements()[0].childElements()[0].childElements()[1].childNodes;for(i=0;idoc->backPath . 'contrib/prototype/prototype.js" type="text/javascript">'; - $this->doc->JScode .= ''; + $this->doc->JScode .= ''; $this->doc->JScode .= ''; // Set up JS for dynamic tab menu and side bar @@ -461,12 +460,10 @@ // Render "edit current page" (important to do before calling ->sideBarObj->render() - otherwise the translation tab is not rendered! $editCurrentPageHTML = $this->render_editPageScreen(); - // Hook for adding new sidebars or removing existing - $sideBarHooks = $this->hooks_prepareObjectsArray('sideBarClass'); - foreach ($sideBarHooks as $hookObj) { - if (method_exists($hookObj, 'main_alterSideBar')) { - $hookObj->main_alterSideBar($this->sideBarObj, $this); - } + if (t3lib_div::_GP('ajaxUnlinkRecord')) { + $this->render_editPageScreen(); + echo $this->render_sidebar(); + exit; } // Show the "edit current page" screen along with the sidebar @@ -475,13 +472,13 @@ $this->content .= ' - +
'.$this->sideBarObj->render().''.$this->render_sidebar().' '.$editCurrentPageHTML.$shortCut;'
'; } else { - $sideBarTop = $this->modTSconfig['properties']['sideBarEnable'] && ($this->sideBarObj->position == 'toprows' || $this->sideBarObj->position == 'toptabs') ? $this->sideBarObj->render() : ''; + $sideBarTop = $this->modTSconfig['properties']['sideBarEnable'] && ($this->sideBarObj->position == 'toprows' || $this->sideBarObj->position == 'toptabs') ? $this->render_sidebar() : ''; $this->content .= $sideBarTop.$editCurrentPageHTML.$shortCut; } @@ -1676,6 +1673,16 @@ } } + function render_sidebar() { + // Hook for adding new sidebars or removing existing + $sideBarHooks = $this->hooks_prepareObjectsArray('sideBarClass'); + foreach ($sideBarHooks as $hookObj) { + if (method_exists($hookObj, 'main_alterSideBar')) { + $hookObj->main_alterSideBar($this->sideBarObj, $this); + } + } + return $this->sideBarObj->render(); + }